Modernize the spec, fix dependencies, and drop command macros

This commit is contained in:
Petr Šabata 2012-11-13 16:33:25 +01:00
parent 0fe828fd67
commit 0976bf0108

View File

@ -1,12 +1,13 @@
Name: perl-HTTP-Daemon Name: perl-HTTP-Daemon
Version: 6.01 Version: 6.01
Release: 3%{?dist} Release: 4%{?dist}
Summary: Simple HTTP server class Summary: Simple HTTP server class
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/HTTP-Daemon/ URL: http://search.cpan.org/dist/HTTP-Daemon/
Source0: http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Daemon-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Daemon-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(HTTP::Date) >= 6 BuildRequires: perl(HTTP::Date) >= 6
BuildRequires: perl(HTTP::Request) >= 6 BuildRequires: perl(HTTP::Request) >= 6
@ -22,7 +23,7 @@ BuildRequires: perl(Config)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
BuildRequires: perl(Socket) BuildRequires: perl(Socket)
BuildRequires: perl(IO::Socket::INET) BuildRequires: perl(IO::Socket::INET)
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
Requires: perl(HTTP::Response) >= 6 Requires: perl(HTTP::Response) >= 6
@ -50,25 +51,27 @@ IO::Socket::INET, so you can perform socket operations directly on it too.
%setup -q -n HTTP-Daemon-%{version} %setup -q -n HTTP-Daemon-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT make pure_install DESTDIR=%{buildroot}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} %{buildroot}/*
%check %check
make test make test
%files %files
%defattr(-,root,root,-)
%doc Changes README %doc Changes README
%{perl_vendorlib}/* %{perl_vendorlib}/*
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Tue Nov 13 2012 Petr Šabata <contyk@redhat.com> - 6.01-4
- Modernize the spec, fix dependencies, and drop command macros
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-3 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild