[perl-Catalyst-Model-XMLRPC] clean up spec for modern rpmbuild

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

 



commit c9574c713adfe8051fdaf028fbd5da1046164cff
Author: Iain Arnell <iarnell@xxxxxxxxx>
Date:   Sat Aug 10 08:19:52 2013 -0600

    clean up spec for modern rpmbuild

 perl-Catalyst-Model-XMLRPC.spec |   30 +++++++-----------------------
 1 files changed, 7 insertions(+), 23 deletions(-)
---
diff --git a/perl-Catalyst-Model-XMLRPC.spec b/perl-Catalyst-Model-XMLRPC.spec
index 3bcbfd2..d7d38f1 100644
--- a/perl-Catalyst-Model-XMLRPC.spec
+++ b/perl-Catalyst-Model-XMLRPC.spec
@@ -1,12 +1,10 @@
 Name:           perl-Catalyst-Model-XMLRPC
 Version:        0.04
-Release:        16%{?dist}
+Release:        17%{?dist}
 Summary:        XMLRPC model class for Catalyst
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Catalyst-Model-XMLRPC/
 Source0:        http://www.cpan.org/authors/id/F/FM/FMERGES/Catalyst-Model-XMLRPC-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
@@ -24,8 +22,7 @@ BuildRequires:  perl(Test::Pod::Coverage)
 # not automagically picked up...
 Requires:       perl(Catalyst::Model)
 
-# keep rpmlint happy
-%define broot %{buildroot}
+%?perl_default_filter
 
 %description
 This model class uses RPC::XML::Client to invoke remote procedure calls
@@ -35,28 +32,15 @@ using XML-RPC.
 %setup -q -n Catalyst-Model-XMLRPC-%{version}
 %patch0 -p1
 
-# note we first filter out the bits in _docdir...
-cat << \EOF > %{name}-prov
-#!/bin/sh
-FOO=`perl -p -e 's|%{broot}%{_docdir}/%{name}-%{version}\S+||'`
-%{__perl_provides} $FOO 
-EOF
-
-%define __perl_provides %{_builddir}/Catalyst-Model-XMLRPC-%{version}/%{name}-prov
-chmod +x %{__perl_provides}
-
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
+make pure_install DESTDIR=%{buildroot}
 
 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
 
 %{_fixperms} %{buildroot}/*
 
@@ -64,16 +48,16 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
 # network tests will fail in the buildsys.
 %{?_with_network_tests: XMLRPC_TEST_LIVE=1} TEST_POD=1 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README t/
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Sat Aug 10 2013 Iain Arnell <iarnell@xxxxxxxxx> 0.04-17
+- clean up spec for modern rpmbuild
+- use perl_default_filter
+
 * Wed Aug 07 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 0.04-16
 - Perl 5.18 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