]> git.pld-linux.org Git - SPECS.git/blob - perl-Rose-DateTime.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / perl-Rose-DateTime.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Rose
6 %define pnam    DateTime
7 Summary:        Rose::DateTime - DateTime helper functions and objects.
8 #Summary(pl.UTF-8):     
9 Name:           perl-Rose-DateTime
10 Version:        0.537
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Rose/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  3215b1185f8668f257a324efb464853e
17 URL:            http://search.cpan.org/dist/Rose-DateTime/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 # FAIL: circular dependency
22 #BuildRequires: perl(Rose::Object) >= 0.82
23 BuildRequires:  perl-DateTime
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 The Rose::DateTime::* modules provide a few convenience functions
30 and objects for use with DateTime dates.
31
32 Rose::DateTime::Util contains a simple date parser and a slightly
33 customized date formatter.
34
35 Rose::DateTime::Parser encapsulates a date parser with an associated
36 default time zone.
37
38 # %description -l pl.UTF-8
39 # TODO
40
41 %prep
42 %setup -q -n %{pdir}-%{pnam}-%{version}
43
44 %build
45 %{__perl} Makefile.PL \
46         INSTALLDIRS=vendor
47 %{__make}
48
49 # the "||:" added due to the circular dependency with perl-Rose-Object
50 %{?with_tests:%{__make} test ||:}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} pure_install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc Changes
64 %{perl_vendorlib}/Rose/*.pm
65 %{perl_vendorlib}/Rose/DateTime
66 %{_mandir}/man3/*
This page took 0.531013 seconds and 3 git commands to generate.