3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Date::Simple - a simple date object
9 Summary(pl.UTF-8): Date::Simple - prosty obiekt daty
10 Name: perl-Date-Simple
13 License: GPL v2+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 9a9559617ea27d518c282e5fb8367775
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This module may be used to create simple date objects. It only handles
24 dates within the range of Unix time. It will only allow the creation
25 of objects for valid dates. Attempting to create an invalid date will
28 %description -l pl.UTF-8
29 Ten moduł może być używany do tworzenia prostych obiektów daty.
30 Obsługuje tylko daty z uniksowego przedziału czasu. Pozwala stworzyć
31 obiekty tylko dla poprawnych dat - przy próbie stworzenia błędnej daty
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL noxs \
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/Date/Simple.pm
57 %{perl_vendorlib}/Date/Simple