source: spec/trunk/SPECS/perl-HTTP-Cookies.spec@ 1566

Last change on this file since 1566 was 1309, checked in by Silvan Scherrer, 8 years ago

spec: perl-HTTP-Cookies: Release version 6.04-1.

File size: 2.2 KB
Line 
1Name: perl-HTTP-Cookies
2Version: 6.04
3Release: 1%{?dist}
4Summary: HTTP cookie jars
5License: GPL+ or Artistic
6URL: http://search.cpan.org/dist/HTTP-Cookies/
7Vendor: bww bitwise works GmbH
8Source0: http://www.cpan.org/authors/id/O/OA/OALDERS/HTTP-Cookies-%{version}.tar.gz
9BuildArch: noarch
10BuildRequires: make
11BuildRequires: perl-generators
12#BuildRequires: perl-interpreter
13#BuildRequires: perl(:VERSION) >= 5.8.1
14BuildRequires: perl(ExtUtils::MakeMaker)
15BuildRequires: perl(strict)
16BuildRequires: perl(warnings)
17# Run-time:
18BuildRequires: perl(Carp)
19BuildRequires: perl(HTTP::Date) >= 6
20BuildRequires: perl(HTTP::Headers::Util) >= 6
21BuildRequires: perl(HTTP::Request)
22BuildRequires: perl(locale)
23# Time::Local needed on MacOS only
24BuildRequires: perl(vars)
25# Win32 not supported
26# Tests:
27BuildRequires: perl(File::Spec)
28BuildRequires: perl(HTTP::Response)
29BuildRequires: perl(Test)
30BuildRequires: perl(Test::More)
31BuildRequires: perl(URI)
32Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
33Requires: perl(Carp)
34Requires: perl(HTTP::Date) >= 6
35Requires: perl(HTTP::Headers::Util) >= 6
36Conflicts: perl-libwww-perl < 6
37
38# Remove underspecified dependencies.
39# One function of provided HTTP::Cookies::Microsoft works on Win32 only, other
40# function do not need it. We keep the module, but remove the dependency.
41%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\((HTTP::Date|HTTP::Headers::Util|Win32)\\)$
42
43%description
44This class is for objects that represent a "cookie jar" -- that is, a
45database of all the HTTP cookies that a given LWP::UserAgent object
46knows about.
47
48%prep
49%setup -q -n HTTP-Cookies-%{version}
50
51%build
52perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
53make %{?_smp_mflags}
54make manifypods
55
56%install
57make pure_install DESTDIR=%{buildroot}
58find %{buildroot} -type f -name .packlist -exec rm -f {} \;
59%{_fixperms} %{buildroot}/*
60
61%check
62#make test
63
64%files
65%license LICENSE
66%doc Changes CONTRIBUTORS README.md
67%{perl_vendorlib}/*
68%{_mandir}/man3/*
69
70%changelog
71* Fri Feb 23 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 6.04-1
72- initial version
Note: See TracBrowser for help on using the repository browser.