[perl-Object-InsideOut] clean spec, add correct filters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit c51b0ba17f784702e02720ec3d32d178b8f18c3d
Author: Marcela MaÅlÃÅovà <mmaslano@xxxxxxxxxx>
Date:   Tue Feb 15 17:52:21 2011 +0100

    clean spec, add correct filters

 perl-Object-InsideOut.spec |   42 ++++++++++++------------------------------
 1 files changed, 12 insertions(+), 30 deletions(-)
---
diff --git a/perl-Object-InsideOut.spec b/perl-Object-InsideOut.spec
index 4e71b24..0a8c70d 100644
--- a/perl-Object-InsideOut.spec
+++ b/perl-Object-InsideOut.spec
@@ -1,13 +1,12 @@
 Name:           perl-Object-InsideOut
 Version:        3.56
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Comprehensive inside-out object support module
 
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/Object-InsideOut
 Source0: http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/Object-InsideOut-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 BuildRequires:  perl(Exception::Class) >= 1.29
@@ -43,30 +42,16 @@ set as readonly to prevent accidental modifications to the ID. Object data
 (i.e., fields) are stored within the class's package in either arrays indexed
 by the object's ID, or hashes keyed to the object's ID.
 
-%prep
-%setup -q -n Object-InsideOut-%{version}
-
-# Filter unwanted Requires, have to break the loop
-cat << \EOF > %{name}-req
-#!/bin/sh
-%{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` |\
-  sed -e '/perl(Math::Random::MT::Auto)/d'
-EOF
+%{?filter_setup:
+%filter_from_requires /perl(t::Imp*/d
+%filter_from_requires /perl(Math::Random::MT::Auto)/d
+%filter_from_provides /perl(Object::InsideOut)/d
+%?perl_default_filter
+}
 
-%define __perl_requires %{_builddir}/Object-InsideOut-%{version}/%{name}-req
-chmod +x %{__perl_requires}
-
-# make sure doc/tests don't generate provides
-# note we first filter out the bits in _docdir...
-cat << \EOF > %{name}-prov
-#!/bin/sh
-%{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` |\
-    sed -e '/^perl(Object::InsideOut)$/d'
-EOF
-
-%define __perl_provides %{_builddir}/Object-InsideOut-%{version}/%{name}-prov
-chmod +x %{__perl_provides}
 
+%prep
+%setup -q -n Object-InsideOut-%{version}
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -74,8 +59,6 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf %{buildroot}
-
 make pure_install PERL_INSTALL_ROOT=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
 find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
@@ -87,10 +70,6 @@ find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
 make test
 
 
-%clean
-rm -rf %{buildroot}
-
-
 %files
 %defattr(-,root,root,-)
 %doc Changes README t/
@@ -99,6 +78,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Tue Feb 15 2011 Marcela MaÅlÃÅovà <mmaslano@xxxxxxxxxx> - 3.56-6
+- clean spec, add correct filters
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 3.56-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux