X-Git-Url: https://git.pld-linux.org/?p=packages%2Fperl-Date-Manip.git;a=blobdiff_plain;f=perl-Date-Manip.spec;h=f7df3ca0f47d639d03abf38567b8c9b4259d3dce;hp=94ad71e4873a4ebb91beb5e72bc0eaefef7f645b;hb=HEAD;hpb=a932eade2bfbb46a7670053141fa7731fe0b3db0 diff --git a/perl-Date-Manip.spec b/perl-Date-Manip.spec index 94ad71e..f7df3ca 100644 --- a/perl-Date-Manip.spec +++ b/perl-Date-Manip.spec @@ -1,53 +1,80 @@ -%include /usr/lib/rpm/macros.perl -Summary: Date-Manip perl module -Summary(pl): Modu³ perla Date-Manip +# +# Conditional build: +%bcond_without tests # unit tests +# +%define pdir Date +%define pnam Manip +Summary: Date::Manip - date manipulation routines +Summary(pl.UTF-8): Date::Manip - procedury do operowania na datach Name: perl-Date-Manip -Version: 5.34 -Release: 3 -Copyright: GPL +Version: 6.89 +Release: 1 +# same as perl +License: GPL v1+ or Artistic Group: Development/Languages/Perl -Group(pl): Programowanie/Jêzyki/Perl -Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Date/DateManip-%{version}.tar.gz -BuildRequires: rpm-perlprov >= 3.0.3-16 -BuildRequires: perl >= 5.005_03-14 -%requires_eq perl -Requires: %{perl_sitearch} -BuildRoot: /tmp/%{name}-%{version}-root +Source0: http://www.cpan.org/modules/by-module/Date/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: f9fe372c7abaf90e9da2ee7c3a4d32ff +URL: https://metacpan.org/dist/Date-Manip +BuildRequires: perl-ExtUtils-MakeMaker >= 6.30 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildRequires: rpmbuild(macros) >= 1.745 +%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) %description -Date-Manip - date manipulation routines. +Perl module Date::Manip contains a set of routines designed to make +any common date/time manipulation easy to do. Operations such as +comparing two times, calculating a time a given amount of time from +another, or parsing international times are all easily done. -%description -l pl -Date-Manip - rutyny do operowania na dacie. +%description -l pl.UTF-8 +Moduł Perla Date::Manip zawiera zbiór procedur zaprojektowanych, aby +ułatwić często wykonywane operacje na datach/czasie. Operacje takie +jak porównywanie dwóch czasów, obliczanie czasu następującego po +zadanej ilości czasu od innego czasu, analiza czasów z podaną strefą +czasową - wszystkie łatwo wykonać. %prep -%setup -q -n DateManip-%{version} +%setup -q -n %{pdir}-%{pnam}-%{version} %build -perl Makefile.PL -make +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT -( - cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Date/Manip - sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new - mv .packlist.new .packlist -) +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \ - README TODO +%{__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,TODO}.gz *.cnf - -%{perl_sitelib}/Date/Manip.pm -%{perl_sitearch}/auto/Date/Manip - -%{_mandir}/man3/* +%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 +%{perl_vendorlib}/Date/Manip/Lang/*.pm +%dir %{perl_vendorlib}/Date/Manip/Offset +%{perl_vendorlib}/Date/Manip/Offset/*.pm +%dir %{perl_vendorlib}/Date/Manip/TZ +%{perl_vendorlib}/Date/Manip/TZ/*.pm +%{_mandir}/man1/dm_date.1* +%{_mandir}/man1/dm_zdump.1* +%{_mandir}/man3/Date::Manip*.3pm*