# # Conditional build: %bcond_without tests # do not perform "make test" %define pdir Time %define pnam modules Summary: Various Time:: Perl modules Summary(pl.UTF-8): Różne moduły Perla Time:: Name: perl-Time-modules Version: 2013.0912 Release: 1 License: free (see manuals) Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: a4330144e24c356ca4c925d14e5ab06b URL: http://search.cpan.org/dist/Time-modules/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Time-modules package contains the following modules: Time::CTime, Time::JulianDay, Time::ParseDate, Time::Timezone, Time::DaysInMonth. %description -l pl.UTF-8 Pakiet Time-modules zawiera nastepujące moduły: Time::CTime, Time::JulianDay, Time::ParseDate, Time::Timezone, Time::DaysInMonth. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?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 README CHANGELOG %{perl_vendorlib}/Time/*.pm %{_mandir}/man3/*