commit 3b7bd01a942a2fdebd329eb3d3e998cf5c4077a8 Author: Petr PÃsaÅ <ppisar@xxxxxxxxxx> Date: Mon Mar 21 11:09:15 2011 +0100 Import .gitignore | 1 + perl-HTTP-Message.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 90 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..5c8b0cb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/HTTP-Message-6.01.tar.gz diff --git a/perl-HTTP-Message.spec b/perl-HTTP-Message.spec new file mode 100644 index 0000000..dbb4012 --- /dev/null +++ b/perl-HTTP-Message.spec @@ -0,0 +1,88 @@ +Name: perl-HTTP-Message +Version: 6.01 +Release: 1%{?dist} +Summary: HTTP style message +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/HTTP-Message/ +Source0: http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Message-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(Compress::Raw::Zlib) +BuildRequires: perl(Encode) >= 2.12 +BuildRequires: perl(Encode::Locale) >= 1 +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(HTML::Parser) >= 3.33 +BuildRequires: perl(HTTP::Date) >= 6 +BuildRequires: perl(IO::Compress::Bzip2) +BuildRequires: perl(IO::Compress::Deflate) +BuildRequires: perl(IO::Compress::Gzip) +BuildRequires: perl(IO::Uncompress::Bunzip2) +BuildRequires: perl(IO::Uncompress::Gunzip) +BuildRequires: perl(IO::Uncompress::Inflate) +BuildRequires: perl(IO::Uncompress::RawInflate) +BuildRequires: perl(LWP::MediaTypes) >= 6 +BuildRequires: perl(MIME::Base64) >= 2.1 +BuildRequires: perl(MIME::QuotedPrint) +BuildRequires: perl(URI) >= 1.10 +# Tests only: +BuildRequires: perl(Test) +BuildRequires: perl(Test::More) +# Testing requires Time::Local used on MasOS only +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(Compress::Raw::Zlib) +Requires: perl(Encode) >= 2.12 +Requires: perl(Encode::Locale) >= 1 +Requires: perl(HTML::Parser) >= 3.33 +Requires: perl(HTTP::Date) >= 6 +Requires: perl(IO::Compress::Bzip2) +Requires: perl(IO::Compress::Deflate) +Requires: perl(IO::Compress::Gzip) +Requires: perl(IO::Uncompress::Bunzip2) +Requires: perl(IO::Uncompress::Gunzip) +Requires: perl(IO::Uncompress::Inflate) +Requires: perl(IO::Uncompress::RawInflate) +Requires: perl(LWP::MediaTypes) >= 6 +Requires: perl(MIME::Base64) >= 2.1 +Requires: perl(MIME::QuotedPrint) +Requires: perl(URI) >= 1.10 +Conflicts: perl-libwww-perl < 6 + +# Remove underspecified dependencies +%filter_from_requires /^perl(HTTP::Date)\s*$/d +%filter_from_requires /^perl(URI)\s*$/d +%filter_from_provides /^perl(HTTP::Headers)\s*$/d +%filter_setup + +%description +The HTTP-Message distribution contains classes useful for representing the +messages passed in HTTP style communication. These are classes representing +requests, responses and the headers contained within them. + +%prep +%setup -q -n HTTP-Message-%{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 +* Thu Mar 17 2011 Petr Pisar <ppisar@xxxxxxxxxx> 6.01-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..6048b54 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +186d35ca521858cd661c54504ad73f0a HTTP-Message-6.01.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel