[perl-DateTime-Format-DateManip] Modernize spec file

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

 



commit 32a1c2123f29d177a95d18c7fce361639b1d46da
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Wed Mar 11 14:27:42 2015 +0100

    Modernize spec file

 .rpmlint                            |  2 ++
 perl-DateTime-Format-DateManip.spec | 31 ++++++++++++++-----------------
 2 files changed, 16 insertions(+), 17 deletions(-)
---
diff --git a/.rpmlint b/.rpmlint
new file mode 100644
index 0000000..705dd8a
--- /dev/null
+++ b/.rpmlint
@@ -0,0 +1,2 @@
+from Config import *
+addFilter("spelling-error .* (durations|Manip|versa)");
diff --git a/perl-DateTime-Format-DateManip.spec b/perl-DateTime-Format-DateManip.spec
index b3d939c..8319788 100644
--- a/perl-DateTime-Format-DateManip.spec
+++ b/perl-DateTime-Format-DateManip.spec
@@ -10,17 +10,20 @@ Source0:        http://www.cpan.org/authors/id/B/BB/BBENNETT/dt-fmt-datemanip/Da
 Patch0:         DateTime-Format-DateManip-01conversion.patch
 # Pass test with Date-Manip-6.49, bug #1199969, CPAN RT#102670
 Patch1:         DateTime-Format-DateManip-0.04-Set-system-time-zone-in-test.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
-BuildRequires:  perl(Class::ISA)
+BuildRequires:  perl
+BuildRequires:  perl(Module::Build)
+# Run-time
+BuildRequires:  perl(bytes)
+BuildRequires:  perl(Carp)
 BuildRequires:  perl(Date::Manip)
 BuildRequires:  perl(DateTime)
-BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(DateTime::Duration)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+# Tests:
 BuildRequires:  perl(Test::More)
-#Requires:       perl(Date::Manip)
-#Requires:       perl(DateTime)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 DateTime::Format::DateManip is a class that knows how to convert between
@@ -33,32 +36,26 @@ objects. Recurrences are note yet supported.
 %patch1 -p1
 
 %build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
 ./Build
 
 %install
-rm -rf %{buildroot}
-
 ./Build install destdir=%{buildroot} create_packlist=0
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
 %{_fixperms} %{buildroot}/*
 
 %check
 ./Build test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
-%doc Changes LICENSE README t/
+%license LICENSE
+%doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
 * Wed Mar 11 2015 Petr Pisar <ppisar@xxxxxxxxxx> - 0.04-18
 - Pass test with Date-Manip-6.49 (bug #1199969)
+- Modernize spec file
 
 * Fri Aug 29 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 0.04-17
 - Perl 5.20 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