[perl-PlRPC] Modernize spec file

Petr Pisar ppisar at fedoraproject.org
Thu Jan 26 15:40:51 UTC 2012


commit 69ac69ab3b17e42591a00fa1ceb234010a609212
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Jan 26 16:40:40 2012 +0100

    Modernize spec file

 .rpmlint        |    2 ++
 perl-PlRPC.spec |   51 +++++++++++++++++++++++++--------------------------
 2 files changed, 27 insertions(+), 26 deletions(-)
---
diff --git a/.rpmlint b/.rpmlint
new file mode 100644
index 0000000..6f40582
--- /dev/null
+++ b/.rpmlint
@@ -0,0 +1,2 @@
+from Config import *
+addFilter("spelling-error .* (PlClient|PlServer)");
diff --git a/perl-PlRPC.spec b/perl-PlRPC.spec
index 3df2c47..daca325 100644
--- a/perl-PlRPC.spec
+++ b/perl-PlRPC.spec
@@ -1,27 +1,31 @@
 Name:       perl-PlRPC 
 Version:    0.2020 
-Release:    8%{?dist}
+Release:    9%{?dist}
 License:    GPL+ or Artistic
 Group:      Development/Libraries
-Summary:    Interface for building pServer Clients 
+Summary:    Interface for writing PlRPC clients and servers
 Source:     http://search.cpan.org/CPAN/authors/id/M/MN/MNOONING/PlRPC/PlRPC-%{version}.tar.gz 
 Url:        http://search.cpan.org/dist/PlRPC
-BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
-Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 BuildArch:  noarch
-
-BuildRequires: perl(ExtUtils::MakeMaker)
-BuildRequires: perl(Net::Daemon) >= 0.13
-BuildRequires: perl(Storable)
-# tests
-BuildRequires: perl(Compress::Zlib)
-BuildRequires: perl(Crypt::DES)
-
-# the better to compress you with, my dear
-Requires:      perl(Compress::Zlib)
-Requires:      perl(MD5)
-Requires:      perl(Crypt::DES)
-
+BuildRequires:  perl(ExtUtils::MakeMaker)
+# Run-time
+BuildRequires:  perl(Compress::Zlib)
+BuildRequires:  perl(IO::Socket)
+BuildRequires:  perl(Net::Daemon) >= 0.13
+BuildRequires:  perl(Net::Daemon::Log)
+BuildRequires:  perl(Net::Daemon::Test)
+BuildRequires:  perl(Storable)
+# Tests
+BuildRequires:  perl(Net::Daemon::Test)
+# Optionable tests
+BuildRequires:  perl(Crypt::DES)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# Compress::Zlib is needed for optional compression
+Requires:       perl(Compress::Zlib)
+Requires:       perl(Net::Daemon) >= 0.13
+
+# Remove undespecified dependencies
+%global __requires_exclude %{?__requires_exclude|%__requires_exclude|}^perl\\(Net::Daemon\\)$
 
 %description
 PlRPC (Perl RPC) is a package that simplifies the writing of Perl based
@@ -37,28 +41,23 @@ defining a set of methods that may be executed by the client.
 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} -depth -type d -exec rmdir {} 2>/dev/null ';'
-
 %{_fixperms} %{buildroot}/*
 
 %check
-# tests fail in buildsys/mock
-%{?_with_tests: make test }
-
-%clean
-rm -rf %{buildroot} 
+make test
 
 %files
-%defattr(-,root,root,-)
 %doc ChangeLog README 
 %{perl_vendorlib}/*
 %{_mandir}/man3/*.3*
 
 %changelog
+* Thu Jan 26 2012 Petr Pisar <ppisar at redhat.com> - 0.2020-9
+- Modernize spec file
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2020-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list