]> git.pld-linux.org Git - packages/perl-Cookie-Baker.git/blob - perl-Cookie-Baker.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Cookie-Baker.git] / perl-Cookie-Baker.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Cookie
6 %define         pnam    Baker
7 Summary:        Cookie::Baker - Cookie string generator / parser
8 Name:           perl-Cookie-Baker
9 Version:        0.11
10 Release:        1
11 # same as perl
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Cookie/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  bc8f95893d6ec3093a62d1957e1908f2
16 URL:            http://search.cpan.org/dist/Cookie-Baker/
17 BuildRequires:  perl-Module-Build
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-URI
22 BuildRequires:  perl(Test::Time)
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Cookie::Baker provides simple cookie string generator and parser.
29
30 %prep
31 %setup -q -n %{pdir}-%{pnam}-%{version}
32
33 %build
34 %{__perl} Build.PL \
35         --destdir=$RPM_BUILD_ROOT \
36         --installdirs=vendor
37 ./Build
38
39 %{?with_tests:./Build test}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43
44 ./Build install
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc Changes
52 %dir %{perl_vendorlib}/Cookie
53 %{perl_vendorlib}/Cookie/*.pm
54 %{_mandir}/man3/*
This page took 0.090915 seconds and 4 git commands to generate.