79247c
Name:           perl-HTTP-Daemon
79247c
Version:        6.01
78510b
Release:        8%{?dist}
79247c
Summary:        Simple HTTP server class
79247c
License:        GPL+ or Artistic
79247c
Group:          Development/Libraries
79247c
URL:            http://search.cpan.org/dist/HTTP-Daemon/
79247c
Source0:        http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Daemon-%{version}.tar.gz
79247c
# Support IPv6, bug #1413065, CPAN RT#91699, CPAN RT#71395,
79247c
# proposed to upstream
79247c
Patch0:         HTTP-Daemon-6.01-Add-IPv6-support.patch
79247c
# Accept undefined and empty-string LocalAddr as IO::Socket::INET does,
79247c
# CPAN RT#91699, CPAN RT#123069
79247c
Patch1:         HTTP-Daemon-6.01-Handle-undef-and-empty-LocalAddr.patch
78510b
# Fix formatting specific non-local addresses, bug #1578026, CPAN RT#125242
78510b
Patch2:         HTTP-Daemon-6.01-Resolve-specific-socket-addresses-correctly.patch
79247c
BuildArch:      noarch
79247c
BuildRequires:  perl(Carp)
79247c
BuildRequires:  perl(ExtUtils::MakeMaker)
79247c
BuildRequires:  perl(HTTP::Date) >= 6
79247c
BuildRequires:  perl(HTTP::Request) >= 6
79247c
BuildRequires:  perl(HTTP::Response) >= 6
79247c
BuildRequires:  perl(HTTP::Status) >= 6
79247c
BuildRequires:  perl(IO::Socket::IP)
79247c
BuildRequires:  perl(LWP::MediaTypes) >= 6
79247c
BuildRequires:  perl(Socket)
79247c
BuildRequires:  perl(Sys::Hostname)
79247c
# Tests only:
79247c
BuildRequires:  perl(Config)
79247c
# Do not depend on perl(LWP::UserAgent), perl(LWP::RobotUA) to break
79247c
# circural dependency, then only t/chunked.t is executed.
79247c
BuildRequires:  perl(Test::More)
79247c
BuildRequires:  perl(IO::Socket::INET)
79247c
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
79247c
Requires:       perl(HTTP::Date) >= 6
79247c
Requires:       perl(HTTP::Request) >= 6
79247c
Requires:       perl(HTTP::Response) >= 6
79247c
Requires:       perl(HTTP::Status) >= 6
79247c
Requires:       perl(LWP::MediaTypes) >= 6
79247c
Requires:       perl(Sys::Hostname)
79247c
Conflicts:      perl-libwww-perl < 6
79247c
79247c
# Remove underspecified dependencies
79247c
%filter_from_requires /^perl(HTTP::Date)\s*$/d;
79247c
%filter_from_requires /^perl(HTTP::Request)\s*$/d;
79247c
%filter_from_requires /^perl(HTTP::Response)\s*$/d;
79247c
%filter_from_requires /^perl(HTTP::Status)\s*$/d;
79247c
%filter_from_requires /^perl(LWP::MediaTypes)\s*$/d;
79247c
%filter_setup
79247c
79247c
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(HTTP::(Date|Request|Response|Status)|LWP::MediaTypes\\)$
79247c
79247c
%description
79247c
Instances of the HTTP::Daemon class are HTTP/1.1 servers that listen on a
79247c
socket for incoming requests. The HTTP::Daemon is a subclass of
79247c
IO::Socket::INET, so you can perform socket operations directly on it too.
79247c
79247c
%prep
79247c
%setup -q -n HTTP-Daemon-%{version}
79247c
%patch0 -p1
79247c
%patch1 -p1
78510b
%patch2 -p1
79247c
79247c
%build
79247c
perl Makefile.PL INSTALLDIRS=vendor
79247c
make %{?_smp_mflags}
79247c
79247c
%install
79247c
make pure_install DESTDIR=%{buildroot}
79247c
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
79247c
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
79247c
%{_fixperms} %{buildroot}/*
79247c
79247c
%check
79247c
make test
79247c
79247c
%files
79247c
%doc Changes README
79247c
%{perl_vendorlib}/*
79247c
%{_mandir}/man3/*
79247c
79247c
%changelog
78510b
* Thu May 24 2018 Petr Pisar <ppisar@redhat.com> - 6.01-8
78510b
- Fix formatting numerical non-local specific IPv6 addresses (bug #1578026)
78510b
79247c
* Mon Sep 18 2017 Petr Pisar <ppisar@redhat.com> - 6.01-7
79247c
- Accept undefined and empty-string LocalAddr as IO::Socket::INET does
79247c
  (bug #1413065)
79247c
79247c
* Tue Jan 17 2017 Petr Pisar <ppisar@redhat.com> - 6.01-6
79247c
- Support IPv6 (bug #1413065)
79247c
79247c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 6.01-5
79247c
- Mass rebuild 2013-12-27
79247c
79247c
* Tue Nov 13 2012 Petr Šabata <contyk@redhat.com> - 6.01-4
79247c
- Modernize the spec, fix dependencies, and drop command macros
79247c
79247c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-3
79247c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
79247c
79247c
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 6.01-2
79247c
- Perl 5.16 rebuild
79247c
79247c
* Mon Feb 20 2012 Petr Pisar <ppisar@redhat.com> - 6.01-1
79247c
- 6.01 bump
79247c
79247c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.00-4
79247c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
79247c
79247c
* Mon Jun 25 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.00-3
79247c
- add new filter
79247c
79247c
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.00-2
79247c
- Perl mass rebuild
79247c
79247c
* Thu Mar 17 2011 Petr Pisar <ppisar@redhat.com> 6.00-1
79247c
- Specfile autogenerated by cpanspec 1.78.
79247c
- Remove BuildRoot stuff
79247c
- Conflicts with perl-libwww-perl-5* and older