[perl-HTTP-Cookies] Import

Petr Pisar ppisar at fedoraproject.org
Mon Mar 21 17:15:21 UTC 2011


commit 05ddc947b9d15453ee4cf132de742cfaee418cfe
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Mar 21 18:14:55 2011 +0100

    Import

 .gitignore             |    1 +
 perl-HTTP-Cookies.spec |   63 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..991281f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/HTTP-Cookies-6.00.tar.gz
diff --git a/perl-HTTP-Cookies.spec b/perl-HTTP-Cookies.spec
new file mode 100644
index 0000000..59aeb38
--- /dev/null
+++ b/perl-HTTP-Cookies.spec
@@ -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 at redhat.com> 6.00-1
+- Specfile autogenerated by cpanspec 1.78.
+- Remove BuildRoot stuff
+- Conflicts with perl-libwww-perl-5* and older
diff --git a/sources b/sources
index e69de29..e5d0dd9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+21bed72b30a46604c152b7e25cf1cb45  HTTP-Cookies-6.00.tar.gz



More information about the perl-devel mailing list