2011-03-21 17:21:48 +00:00
|
|
|
Name: perl-HTTP-Daemon
|
2012-02-20 10:22:44 +00:00
|
|
|
Version: 6.01
|
2015-06-06 04:54:03 +00:00
|
|
|
Release: 10%{?dist}
|
2011-03-21 17:21:48 +00:00
|
|
|
Summary: Simple HTTP server class
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/HTTP-Daemon/
|
|
|
|
Source0: http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Daemon-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
2012-11-13 15:33:25 +00:00
|
|
|
BuildRequires: perl(Carp)
|
2011-03-21 17:21:48 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(HTTP::Date) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Request) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Response) >= 6
|
|
|
|
BuildRequires: perl(HTTP::Status) >= 6
|
|
|
|
BuildRequires: perl(IO::Socket)
|
|
|
|
BuildRequires: perl(LWP::MediaTypes) >= 6
|
|
|
|
BuildRequires: perl(Sys::Hostname)
|
|
|
|
# Tests only:
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
# Do not depend on perl(LWP::UserAgent), perl(LWP::RobotUA) to break
|
|
|
|
# circural dependency, then only t/chunked.t is executed.
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Socket)
|
|
|
|
BuildRequires: perl(IO::Socket::INET)
|
2012-11-13 15:33:25 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
2011-03-21 17:21:48 +00:00
|
|
|
Requires: perl(HTTP::Date) >= 6
|
|
|
|
Requires: perl(HTTP::Request) >= 6
|
|
|
|
Requires: perl(HTTP::Response) >= 6
|
|
|
|
Requires: perl(HTTP::Status) >= 6
|
|
|
|
Requires: perl(LWP::MediaTypes) >= 6
|
|
|
|
Requires: perl(Sys::Hostname)
|
|
|
|
Conflicts: perl-libwww-perl < 6
|
|
|
|
|
|
|
|
# Remove underspecified dependencies
|
|
|
|
%filter_from_requires /^perl(HTTP::Date)\s*$/d;
|
|
|
|
%filter_from_requires /^perl(HTTP::Request)\s*$/d;
|
|
|
|
%filter_from_requires /^perl(HTTP::Response)\s*$/d;
|
|
|
|
%filter_from_requires /^perl(HTTP::Status)\s*$/d;
|
|
|
|
%filter_from_requires /^perl(LWP::MediaTypes)\s*$/d;
|
|
|
|
%filter_setup
|
|
|
|
|
2011-07-25 10:24:23 +00:00
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(HTTP::(Date|Request|Response|Status)|LWP::MediaTypes\\)$
|
|
|
|
|
2011-03-21 17:21:48 +00:00
|
|
|
%description
|
|
|
|
Instances of the HTTP::Daemon class are HTTP/1.1 servers that listen on a
|
|
|
|
socket for incoming requests. The HTTP::Daemon is a subclass of
|
|
|
|
IO::Socket::INET, so you can perform socket operations directly on it too.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n HTTP-Daemon-%{version}
|
|
|
|
|
|
|
|
%build
|
2012-11-13 15:33:25 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2011-03-21 17:21:48 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2012-11-13 15:33:25 +00:00
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
%{_fixperms} %{buildroot}/*
|
2011-03-21 17:21:48 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc Changes README
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2015-06-06 04:54:03 +00:00
|
|
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-10
|
|
|
|
- Perl 5.22 rebuild
|
|
|
|
|
2014-08-28 07:49:06 +00:00
|
|
|
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-9
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-06-07 05:20:01 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-03 21:50:32 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-22 04:53:30 +00:00
|
|
|
* Mon Jul 22 2013 Petr Pisar <ppisar@redhat.com> - 6.01-6
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-02-14 12:50:59 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-11-13 15:33:25 +00:00
|
|
|
* Tue Nov 13 2012 Petr Šabata <contyk@redhat.com> - 6.01-4
|
|
|
|
- Modernize the spec, fix dependencies, and drop command macros
|
|
|
|
|
2012-07-20 15:57:28 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-12 15:37:13 +00:00
|
|
|
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 6.01-2
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-02-20 10:22:44 +00:00
|
|
|
* Mon Feb 20 2012 Petr Pisar <ppisar@redhat.com> - 6.01-1
|
|
|
|
- 6.01 bump
|
|
|
|
|
2012-01-13 14:13:03 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.00-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-07-25 10:24:23 +00:00
|
|
|
* Mon Jun 25 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.00-3
|
|
|
|
- add new filter
|
|
|
|
|
2011-06-21 11:41:11 +00:00
|
|
|
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.00-2
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-03-21 17:21:48 +00:00
|
|
|
* Thu Mar 17 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
|