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