[perl-IO-AIO: 9/9] Spec cleanup

Paul Howarth pghmcfc at fedoraproject.org
Thu Mar 10 14:51:01 UTC 2011


commit 7f710a09b642d54e474d6908d7f3756d29823296
Author: Paul Howarth <paul at city-fan.org>
Date:   Thu Mar 10 14:49:14 2011 +0000

    Spec cleanup
    
    - General spec file cleanup
    - Use %{?perl_default_filter} instead of our own custom provides filter

 perl-IO-AIO.spec |   52 ++++++++++++++++++++++------------------------------
 1 files changed, 22 insertions(+), 30 deletions(-)
---
diff --git a/perl-IO-AIO.spec b/perl-IO-AIO.spec
index ac447c5..229f592 100644
--- a/perl-IO-AIO.spec
+++ b/perl-IO-AIO.spec
@@ -1,50 +1,38 @@
-%global libname IO-AIO
-%global _use_internal_dependency_generator 0
-
-Name:           perl-%{libname}
+Name:           perl-IO-AIO
 Version:        3.71
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Asynchronous Input/Output
 License:        GPL+ or Artistic
 Group:          Development/Libraries
-URL:            http://search.cpan.org/dist/%{libname}/
-Source0:        http://www.cpan.org/modules/by-module/IO/%{libname}-%{version}.tar.gz
-
-BuildRequires:  perl(ExtUtils::MakeMaker), perl(common::sense)
+URL:            http://search.cpan.org/dist/IO-AIO/
+Source0:        http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/IO-AIO-%{version}.tar.gz
+BuildRequires:  perl(common::sense)
+BuildRequires:  perl(ExtUtils::MakeMaker)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
+%{?perl_default_filter}
+
 %description
 This module implements asynchronous I/O using whatever means your operating
 system supports.
 
 %prep
-%setup -q -n %{libname}-%{version}
-
-# filter unwanted Provides
-cat << \EOF > %{name}-prov
-#!/bin/sh
-%{__find_provides} $* |\
-grep -v AIO.so
-EOF
-
-%global __find_provides %{_builddir}/%{libname}-%{version}/%{name}-prov
-chmod +x %{__find_provides}
-
+%setup -q -n IO-AIO-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
 make %{?_smp_mflags}
 
 %install
 make pure_install PERL_INSTALL_ROOT=%{buildroot}
 
+# Remove script we don't want packaged
+rm %{buildroot}%{_bindir}/treescan
+
 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
 find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} %{buildroot}/*
-
-rm -v %{buildroot}%{_bindir}/treescan
+find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
+%{_fixperms} %{buildroot}
 
 %check
 make test
@@ -52,11 +40,15 @@ make test
 %files
 %defattr(-,root,root,-)
 %doc Changes COPYING README
-%{perl_vendorarch}/auto/IO
-%{perl_vendorarch}/IO
-%{_mandir}/man3/IO::AIO.*
+%{perl_vendorarch}/auto/IO/
+%{perl_vendorarch}/IO/
+%{_mandir}/man3/IO::AIO.3pm*
 
 %changelog
+* Thu Mar 10 2011 Paul Howarth <paul at city-fan.org> - 3.71-2
+- Spec cleanup
+- Use %%{?perl_default_filter} instead of our own custom provides filter
+
 * Wed Feb  9 2011 Ruben Kerkhof <ruben at rubenkerkhof.com> - 3.71-1
 - Upstream released new version
 


More information about the scm-commits mailing list