Modernize spec file
This commit is contained in:
parent
fc4436530c
commit
3c7f2df3f8
@ -10,9 +10,15 @@ Source0: http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Daemon-%{version}.
|
|||||||
# proposed to upstream
|
# proposed to upstream
|
||||||
Patch0: HTTP-Daemon-6.01-Add-IPv6-support.patch
|
Patch0: HTTP-Daemon-6.01-Add-IPv6-support.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
BuildRequires: findutils
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: perl
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: perl(Carp)
|
BuildRequires: perl(:VERSION) >= 5.8.1
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
# Run-time:
|
||||||
|
BuildRequires: perl(Carp)
|
||||||
BuildRequires: perl(HTTP::Date) >= 6
|
BuildRequires: perl(HTTP::Date) >= 6
|
||||||
BuildRequires: perl(HTTP::Request) >= 6
|
BuildRequires: perl(HTTP::Request) >= 6
|
||||||
BuildRequires: perl(HTTP::Response) >= 6
|
BuildRequires: perl(HTTP::Response) >= 6
|
||||||
@ -21,12 +27,16 @@ BuildRequires: perl(IO::Socket::IP)
|
|||||||
BuildRequires: perl(LWP::MediaTypes) >= 6
|
BuildRequires: perl(LWP::MediaTypes) >= 6
|
||||||
BuildRequires: perl(Socket)
|
BuildRequires: perl(Socket)
|
||||||
BuildRequires: perl(Sys::Hostname)
|
BuildRequires: perl(Sys::Hostname)
|
||||||
|
BuildRequires: perl(vars)
|
||||||
# Tests only:
|
# Tests only:
|
||||||
BuildRequires: perl(Config)
|
BuildRequires: perl(Config)
|
||||||
# Do not depend on perl(LWP::UserAgent), perl(LWP::RobotUA) to break
|
# IO::Socket not used
|
||||||
# circural dependency, then only t/chunked.t is executed.
|
# LWP::RobotUA not used
|
||||||
|
# LWP::UserAgent not used
|
||||||
|
# Test not used
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
BuildRequires: perl(IO::Socket::INET)
|
# URI not used
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
Requires: perl(HTTP::Date) >= 6
|
Requires: perl(HTTP::Date) >= 6
|
||||||
Requires: perl(HTTP::Request) >= 6
|
Requires: perl(HTTP::Request) >= 6
|
||||||
@ -37,14 +47,7 @@ Requires: perl(Sys::Hostname)
|
|||||||
Conflicts: perl-libwww-perl < 6
|
Conflicts: perl-libwww-perl < 6
|
||||||
|
|
||||||
# Remove underspecified dependencies
|
# Remove underspecified dependencies
|
||||||
%filter_from_requires /^perl(HTTP::Date)\s*$/d;
|
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(HTTP::(Date|Request|Response|Status)|LWP::MediaTypes\\)$
|
||||||
%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
|
|
||||||
|
|
||||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(HTTP::(Date|Request|Response|Status)|LWP::MediaTypes\\)$
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Instances of the HTTP::Daemon class are HTTP/1.1 servers that listen on a
|
Instances of the HTTP::Daemon class are HTTP/1.1 servers that listen on a
|
||||||
@ -61,8 +64,7 @@ make %{?_smp_mflags}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
make pure_install DESTDIR=%{buildroot}
|
make pure_install DESTDIR=%{buildroot}
|
||||||
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
find %{buildroot} -type f -name .packlist -delete
|
||||||
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
||||||
%{_fixperms} %{buildroot}/*
|
%{_fixperms} %{buildroot}/*
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
Loading…
Reference in New Issue
Block a user