]>
Commit | Line | Data |
---|---|---|
43555bae JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
a95e066f | 4 | |
4da6cd0c | 5 | %define pdir Date |
6 | %define pnam Simple | |
a95e066f | 7 | %include /usr/lib/rpm/macros.perl |
43555bae | 8 | Summary: Date::Simple - a simple date object |
1e884570 | 9 | Summary(pl.UTF-8): Date::Simple - prosty obiekt daty |
43555bae | 10 | Name: perl-Date-Simple |
94bcff8a | 11 | Version: 3.03 |
12 | Release: 1 | |
43555bae JB |
13 | License: GPL v2+ or Artistic |
14 | Group: Development/Languages/Perl | |
ceb973c6 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
94bcff8a | 16 | # Source0-md5: 436049dc2c7dfd8423d8bcc807248b31 |
a95e066f | 17 | URL: http://search.cpan.org/dist/Date-Simple/ |
f2da8179 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
43555bae JB |
19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | This module may be used to create simple date objects. It only handles | |
25 | dates within the range of Unix time. It will only allow the creation | |
26 | of objects for valid dates. Attempting to create an invalid date will | |
27 | return undef. | |
28 | ||
5b6fe6d7 JR |
29 | %description -l pl.UTF-8 |
30 | Ten moduł może być używany do tworzenia prostych obiektów daty. | |
31 | Obsługuje tylko daty z uniksowego przedziału czasu. Pozwala stworzyć | |
32 | obiekty tylko dla poprawnych dat - przy próbie stworzenia błędnej daty | |
33 | zwróci undef. | |
43555bae JB |
34 | |
35 | %prep | |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
37 | ||
38 | %build | |
b6aca80a | 39 | %{__perl} Makefile.PL noxs \ |
aab6e656 | 40 | INSTALLDIRS=vendor |
43555bae JB |
41 | |
42 | %{__make} | |
43555bae JB |
43 | %{?with_tests:%{__make} test} |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %{__make} install \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc README | |
57 | %{perl_vendorlib}/Date/Simple.pm | |
b6aca80a | 58 | %{perl_vendorlib}/Date/Simple |
43555bae | 59 | %{_mandir}/man3/* |