Import
This commit is contained in:
parent
662d38c72d
commit
05ddc947b9
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/HTTP-Cookies-6.00.tar.gz
|
||||
63
perl-HTTP-Cookies.spec
Normal file
63
perl-HTTP-Cookies.spec
Normal file
@ -0,0 +1,63 @@
|
||||
Name: perl-HTTP-Cookies
|
||||
Version: 6.00
|
||||
Release: 1%{?dist}
|
||||
Summary: HTTP cookie jars
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/HTTP-Cookies/
|
||||
Source0: http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Cookies-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(HTTP::Date) >= 6
|
||||
BuildRequires: perl(HTTP::Headers::Util) >= 6
|
||||
# Tests only:
|
||||
BuildRequires: perl(HTTP::Request)
|
||||
BuildRequires: perl(HTTP::Response)
|
||||
BuildRequires: perl(Test)
|
||||
BuildRequires: perl(URI)
|
||||
# Time::Local needed on MacOS only
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(HTTP::Date) >= 6
|
||||
Requires: perl(HTTP::Headers::Util) >= 6
|
||||
Conflicts: perl-libwww-perl < 6
|
||||
|
||||
# Remove underspecified dependencies
|
||||
%filter_from_requires /^perl(HTTP::Date)\s*$/d
|
||||
%filter_from_requires /^perl(HTTP::Headers::Util)\s*$/d
|
||||
# One function of provided HTTP::Cookies::Microsoft works on Win32 only, other
|
||||
# function do not need it. This keep the module, but remove dependency.
|
||||
%filter_from_requires /^perl(Win32)/d
|
||||
%filter_setup
|
||||
|
||||
%description
|
||||
This class is for objects that represent a "cookie jar" -- that is, a
|
||||
database of all the HTTP cookies that a given LWP::UserAgent object
|
||||
knows about.
|
||||
|
||||
%prep
|
||||
%setup -q -n HTTP-Cookies-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Wed Mar 16 2011 Petr Pisar <ppisar@redhat.com> 6.00-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
- Remove BuildRoot stuff
|
||||
- Conflicts with perl-libwww-perl-5* and older
|
||||
Loading…
Reference in New Issue
Block a user