]> git.pld-linux.org Git - packages/perl-Date-Simple.git/blame - perl-Date-Simple.spec
use generic url
[packages/perl-Date-Simple.git] / perl-Date-Simple.spec
CommitLineData
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 8Summary: Date::Simple - a simple date object
1e884570 9Summary(pl.UTF-8): Date::Simple - prosty obiekt daty
43555bae 10Name: perl-Date-Simple
94bcff8a 11Version: 3.03
12Release: 1
43555bae
JB
13License: GPL v2+ or Artistic
14Group: Development/Languages/Perl
ceb973c6 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
94bcff8a 16# Source0-md5: 436049dc2c7dfd8423d8bcc807248b31
a95e066f 17URL: http://search.cpan.org/dist/Date-Simple/
f2da8179 18BuildRequires: perl-devel >= 1:5.8.0
43555bae
JB
19BuildRequires: rpm-perlprov >= 4.1-13
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24This module may be used to create simple date objects. It only handles
25dates within the range of Unix time. It will only allow the creation
26of objects for valid dates. Attempting to create an invalid date will
27return undef.
28
5b6fe6d7
JR
29%description -l pl.UTF-8
30Ten moduł może być używany do tworzenia prostych obiektów daty.
31Obsługuje tylko daty z uniksowego przedziału czasu. Pozwala stworzyć
32obiekty tylko dla poprawnych dat - przy próbie stworzenia błędnej daty
33zwró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
46rm -rf $RPM_BUILD_ROOT
47
48%{__make} install \
49 DESTDIR=$RPM_BUILD_ROOT
50
51%clean
52rm -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/*
This page took 0.089939 seconds and 4 git commands to generate.