# # Conditional build: %bcond_with tests # do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir DateTime Summary: DateTime - representation of date/time combinations Summary(pl): DateTime - reprezentacja kombinacji daty i czasu Name: perl-DateTime Version: 0.25 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz # Source0-md5: 8db1dba051b074db0845851de3896b95 URL: http://datetime.perl.org/ %if %{with tests} BuildRequires: perl-Class-Factory BuildRequires: perl-DateTime-Locale BuildRequires: perl-DateTime-TimeZone BuildRequires: perl-Params-Validate %endif BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 Requires: perl-DateTime-TimeZone BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description DateTime is a class for the representation of date/time combinations, and is part of the Perl DateTime project. For details on this project please see . The DateTime site has a FAQ which may help answer many "how do I do X?" questions. The FAQ is at . %description -l pl DateTime to klasa do reprezentowania kombinacji daty i czasu, będąca częścią perlowego projektu DateTime. Szczegóły dotyczące tego projektu można znaleźć pod adresem . Serwis ten ma swoje FAQ, gdzie można znaleźć odpowiedzi na wiele pytań - dostępne pod . %prep %setup -q -n %{pdir}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} \ OPTIMIZE="%{rpmcflags}" %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README CREDITS TODO leaptab.txt %{perl_vendorarch}/DateTime*pm %dir %{perl_vendorarch}/DateTime %{perl_vendorarch}/DateTime/*.pm %{perl_vendorarch}/auto/DateTime/DateTime.bs %attr(755,root,root) %{perl_vendorarch}/auto/DateTime/DateTime.so %{_mandir}/man3/*