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 | ||||
| Patch0:         HTTP-Daemon-6.01-Add-IPv6-support.patch | ||||
| BuildArch:      noarch | ||||
| BuildRequires:  findutils | ||||
| BuildRequires:  make | ||||
| BuildRequires:  perl | ||||
| BuildRequires:  perl-generators | ||||
| BuildRequires:  perl(Carp) | ||||
| BuildRequires:  perl(:VERSION) >= 5.8.1 | ||||
| BuildRequires:  perl(ExtUtils::MakeMaker) | ||||
| BuildRequires:  perl(strict) | ||||
| # Run-time: | ||||
| BuildRequires:  perl(Carp) | ||||
| BuildRequires:  perl(HTTP::Date) >= 6 | ||||
| BuildRequires:  perl(HTTP::Request) >= 6 | ||||
| BuildRequires:  perl(HTTP::Response) >= 6 | ||||
| @ -21,12 +27,16 @@ BuildRequires:  perl(IO::Socket::IP) | ||||
| BuildRequires:  perl(LWP::MediaTypes) >= 6 | ||||
| BuildRequires:  perl(Socket) | ||||
| BuildRequires:  perl(Sys::Hostname) | ||||
| BuildRequires:  perl(vars) | ||||
| # 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. | ||||
| # IO::Socket not used | ||||
| # LWP::RobotUA not used | ||||
| # LWP::UserAgent not used | ||||
| # Test not used | ||||
| 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(HTTP::Date) >= 6 | ||||
| Requires:       perl(HTTP::Request) >= 6 | ||||
| @ -37,14 +47,7 @@ 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 | ||||
| 
 | ||||
| %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(HTTP::(Date|Request|Response|Status)|LWP::MediaTypes\\)$ | ||||
| %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(HTTP::(Date|Request|Response|Status)|LWP::MediaTypes\\)$ | ||||
| 
 | ||||
| %description | ||||
| Instances of the HTTP::Daemon class are HTTP/1.1 servers that listen on a | ||||
| @ -61,8 +64,7 @@ make %{?_smp_mflags} | ||||
| 
 | ||||
| %install | ||||
| make pure_install DESTDIR=%{buildroot} | ||||
| find %{buildroot} -type f -name .packlist -exec rm -f {} \; | ||||
| find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; | ||||
| find %{buildroot} -type f -name .packlist -delete | ||||
| %{_fixperms} %{buildroot}/* | ||||
| 
 | ||||
| %check | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user