78f5e7
Name:           perl-HTTP-Daemon
78f5e7
Version:        6.01
78f5e7
Release:        23%{?dist}
78f5e7
Summary:        Simple HTTP server class
78f5e7
License:        GPL+ or Artistic
78f5e7
URL:            http://search.cpan.org/dist/HTTP-Daemon/
78f5e7
Source0:        http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Daemon-%{version}.tar.gz
78f5e7
# Support IPv6, bug #1413065, CPAN RT#91699, CPAN RT#71395,
78f5e7
# proposed to upstream
78f5e7
Patch0:         HTTP-Daemon-6.01-Add-IPv6-support.patch
78f5e7
# Accept undefined and empty-string LocalAddr as IO::Socket::INET does,
78f5e7
# CPAN RT#91699, CPAN RT#123069
78f5e7
Patch1:         HTTP-Daemon-6.01-Handle-undef-and-empty-LocalAddr.patch
78f5e7
# Fix formatting specific non-local addresses, bug #1578026, CPAN RT#125242
78f5e7
Patch2:         HTTP-Daemon-6.01-Resolve-specific-socket-addresses-correctly.patch
78f5e7
BuildArch:      noarch
78f5e7
BuildRequires:  make
78f5e7
BuildRequires:  perl-generators
78f5e7
BuildRequires:  perl-interpreter
78f5e7
BuildRequires:  perl(:VERSION) >= 5.8.1
78f5e7
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
78f5e7
BuildRequires:  perl(strict)
78f5e7
# Run-time:
78f5e7
BuildRequires:  perl(Carp)
78f5e7
BuildRequires:  perl(HTTP::Date) >= 6
78f5e7
BuildRequires:  perl(HTTP::Request) >= 6
78f5e7
BuildRequires:  perl(HTTP::Response) >= 6
78f5e7
BuildRequires:  perl(HTTP::Status) >= 6
78f5e7
BuildRequires:  perl(IO::Socket::IP)
78f5e7
BuildRequires:  perl(LWP::MediaTypes) >= 6
78f5e7
BuildRequires:  perl(Socket)
78f5e7
BuildRequires:  perl(Sys::Hostname)
78f5e7
BuildRequires:  perl(vars)
78f5e7
# Tests only:
78f5e7
BuildRequires:  perl(Config)
78f5e7
# IO::Socket not used
78f5e7
# LWP::RobotUA not used
78f5e7
# LWP::UserAgent not used
78f5e7
# Test not used
78f5e7
BuildRequires:  perl(Test::More)
78f5e7
# URI not used
78f5e7
BuildRequires:  perl(warnings)
78f5e7
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
78f5e7
Requires:       perl(HTTP::Date) >= 6
78f5e7
Requires:       perl(HTTP::Request) >= 6
78f5e7
Requires:       perl(HTTP::Response) >= 6
78f5e7
Requires:       perl(HTTP::Status) >= 6
78f5e7
Requires:       perl(LWP::MediaTypes) >= 6
78f5e7
Requires:       perl(Sys::Hostname)
78f5e7
Conflicts:      perl-libwww-perl < 6
78f5e7
78f5e7
# Remove underspecified dependencies
78f5e7
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(HTTP::(Date|Request|Response|Status)|LWP::MediaTypes\\)$
78f5e7
78f5e7
%description
78f5e7
Instances of the HTTP::Daemon class are HTTP/1.1 servers that listen on a
78f5e7
socket for incoming requests. The HTTP::Daemon is a subclass of
78f5e7
IO::Socket::IP, so you can perform socket operations directly on it too.
78f5e7
78f5e7
%prep
78f5e7
%setup -q -n HTTP-Daemon-%{version}
78f5e7
%patch0 -p1
78f5e7
%patch1 -p1
78f5e7
%patch2 -p1
78f5e7
78f5e7
%build
78f5e7
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
78f5e7
make %{?_smp_mflags}
78f5e7
78f5e7
%install
78f5e7
make pure_install DESTDIR=%{buildroot}
78f5e7
%{_fixperms} %{buildroot}/*
78f5e7
78f5e7
%check
78f5e7
make test
78f5e7
78f5e7
%files
78f5e7
%doc Changes README
78f5e7
%{perl_vendorlib}/*
78f5e7
%{_mandir}/man3/*
78f5e7
78f5e7
%changelog
78f5e7
* Wed May 23 2018 Petr Pisar <ppisar@redhat.com> - 6.01-23
78f5e7
- Fix formatting numerical non-local specific IPv6 addresses (bug #1578026)
78f5e7
78f5e7
* Tue May 15 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-22
78f5e7
- Call "sockhostname" method on correct class object (bug #1578026)
78f5e7
78f5e7
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-21
78f5e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
78f5e7
78f5e7
* Wed Jan 24 2018 Petr Pisar <ppisar@redhat.com> - 6.01-20
78f5e7
- Correct the package description
78f5e7
78f5e7
* Mon Sep 18 2017 Petr Pisar <ppisar@redhat.com> - 6.01-19
78f5e7
- Correct a typo in the undefined and empty-string LocalAddr patch
78f5e7
  (bug #1413065)
78f5e7
78f5e7
* Mon Sep 18 2017 Petr Pisar <ppisar@redhat.com> - 6.01-18
78f5e7
- Accept undefined and empty-string LocalAddr as IO::Socket::INET does
78f5e7
  (bug #1413065)
78f5e7
78f5e7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-17
78f5e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
78f5e7
78f5e7
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-16
78f5e7
- Perl 5.26 rebuild
78f5e7
78f5e7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-15
78f5e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
78f5e7
78f5e7
* Tue Jan 17 2017 Petr Pisar <ppisar@redhat.com> - 6.01-14
78f5e7
- Support IPv6 (bug #1413065)
78f5e7
78f5e7
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-13
78f5e7
- Perl 5.24 rebuild
78f5e7
78f5e7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.01-12
78f5e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
78f5e7
78f5e7
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-11
78f5e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
78f5e7
78f5e7
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-10
78f5e7
- Perl 5.22 rebuild
78f5e7
78f5e7
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 6.01-9
78f5e7
- Perl 5.20 rebuild
78f5e7
78f5e7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-8
78f5e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
78f5e7
78f5e7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-7
78f5e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
78f5e7
78f5e7
* Mon Jul 22 2013 Petr Pisar <ppisar@redhat.com> - 6.01-6
78f5e7
- Perl 5.18 rebuild
78f5e7
78f5e7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-5
78f5e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
78f5e7
78f5e7
* Tue Nov 13 2012 Petr Šabata <contyk@redhat.com> - 6.01-4
78f5e7
- Modernize the spec, fix dependencies, and drop command macros
78f5e7
78f5e7
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-3
78f5e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
78f5e7
78f5e7
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 6.01-2
78f5e7
- Perl 5.16 rebuild
78f5e7
78f5e7
* Mon Feb 20 2012 Petr Pisar <ppisar@redhat.com> - 6.01-1
78f5e7
- 6.01 bump
78f5e7
78f5e7
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.00-4
78f5e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
78f5e7
78f5e7
* Mon Jul 25 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.00-3
78f5e7
- add new filter
78f5e7
78f5e7
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.00-2
78f5e7
- Perl mass rebuild
78f5e7
78f5e7
* Thu Mar 17 2011 Petr Pisar <ppisar@redhat.com> 6.00-1
78f5e7
- Specfile autogenerated by cpanspec 1.78.
78f5e7
- Remove BuildRoot stuff
78f5e7
- Conflicts with perl-libwww-perl-5* and older