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