[perl-Time-modules] Clean up spec file

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

 



commit 6c24992e84278b3d3f1d9cddaaa8a0c0560030ae
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Thu Jul 7 11:00:32 2011 +0200

    Clean up spec file

 perl-Time-modules.spec |   31 +++++++++++++++----------------
 1 files changed, 15 insertions(+), 16 deletions(-)
---
diff --git a/perl-Time-modules.spec b/perl-Time-modules.spec
index 4762c66..45c36ae 100644
--- a/perl-Time-modules.spec
+++ b/perl-Time-modules.spec
@@ -1,15 +1,18 @@
-Name: perl-Time-modules
-Version: 2011.0517
-Release: 1%{?dist}
-Summary: Perl modules for parsing dates and times       
-Group: Development/Libraries
-License: Copyright only and Public Domain
-URL: http://search.cpan.org/dist/Time-modules/
-Source0: http://www.cpan.org/authors/id/M/MU/MUIR/modules/Time-modules-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch: noarch
+Name:       perl-Time-modules
+Version:    2011.0517
+Release:    1%{?dist}
+Summary:    Perl modules for parsing dates and times       
+Group:      Development/Libraries
+License:    Copyright only and Public Domain
+URL:        http://search.cpan.org/dist/Time-modules/
+Source0:    http://www.cpan.org/authors/id/M/MU/MUIR/modules/Time-modules-%{version}.tar.gz
+BuildArch:  noarch
 BuildRequires:  perl(ExtUtils::MakeMaker)
-Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# Tests:
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(POSIX)
+BuildRequires:  perl(Test::More)
+Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 Time-modules provides several Perl modules, including Time::CTime,
@@ -24,7 +27,6 @@ These modules can be useful for parsing and manipulating dates and times.
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
@@ -33,11 +35,7 @@ chmod -R u+w $RPM_BUILD_ROOT/*
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc CHANGELOG README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*.3*
@@ -45,6 +43,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Thu Jul 07 2011 Petr Pisar <ppisar@xxxxxxxxxx> - 2011.0517-1
 - 2011.0517 bump
+- Clean up spec file
 
 * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@xxxxxxxxxx> - 2006.0814-10
 - Perl 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