]> git.pld-linux.org Git - packages/perl-Date-Manip.git/blobdiff - perl-Date-Manip.spec
- versioned ExtUtils::MakeMaker BR
[packages/perl-Date-Manip.git] / perl-Date-Manip.spec
index c2895ac961e34125e6a1266cbf747923733c7ac8..df225c707bca485228e89d2f82887935f2ddc8e6 100644 (file)
@@ -1,5 +1,6 @@
-# TODO:
-# - Deal with unpackaged pod files
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
 #
 %include       /usr/lib/rpm/macros.perl
 %define                pdir    Date
@@ -7,15 +8,21 @@
 Summary:       Date::Manip - date manipulation routines
 Summary(pl.UTF-8):     Date::Manip - procedury do operowania na datach
 Name:          perl-Date-Manip
-Version:       6.20
+Version:       6.48
 Release:       1
 # same as perl
 License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 196076af3aa50fee294551e67b42d9e3
+Source0:       http://www.cpan.org/modules/by-module/Date/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: fc1629f119072fa723ff89133d6f9a2d
+URL:           http://search.cpan.org/dist/Date-Manip/
+BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Test-Inter
+BuildRequires: perl-YAML-Syck
+%endif
 Obsoletes:     perl-DateManip
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -41,19 +48,25 @@ czasową - wszystkie łatwo wykonać.
        INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Date/{Manip,Manip/*,Manip/Lang/*}.pod
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README
-%{perl_vendorlib}/Date/*.pm
+%doc Changes LICENSE README.first
+%attr(755,root,root) %{_bindir}/dm_date
+%attr(755,root,root) %{_bindir}/dm_zdump
+%{perl_vendorlib}/Date/Manip.pm
 %dir %{perl_vendorlib}/Date/Manip
 %{perl_vendorlib}/Date/Manip/*.pm
 %dir %{perl_vendorlib}/Date/Manip/Lang
@@ -62,4 +75,6 @@ rm -rf $RPM_BUILD_ROOT
 %{perl_vendorlib}/Date/Manip/Offset/*.pm
 %dir %{perl_vendorlib}/Date/Manip/TZ
 %{perl_vendorlib}/Date/Manip/TZ/*.pm
-%{_mandir}/man3/*
+%{_mandir}/man1/dm_date.1p.gz
+%{_mandir}/man1/dm_zdump.1p.gz
+%{_mandir}/man3/Date::Manip*.3pm*
This page took 0.336626 seconds and 4 git commands to generate.