Modernize spec file
This commit is contained in:
parent
d6e5ddc98a
commit
617b8c6160
@ -1,21 +1,31 @@
|
||||
Name: perl-libxml-perl
|
||||
Version: 0.08
|
||||
Release: 29%{?dist}
|
||||
Release: 30%{?dist}
|
||||
Summary: A collection of Perl modules for working with XML
|
||||
Group: Development/Libraries
|
||||
License: (GPL+ or Artistic) and Public Domain
|
||||
URL: http://search.cpan.org/dist/libxml-perl/
|
||||
Source0: http://www.cpan.org/authors/id/K/KM/KMACLEOD/libxml-perl-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: make
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
# Run-time:
|
||||
BuildRequires: perl(:VERSION) >= 5.5.0
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(IO::File)
|
||||
BuildRequires: perl(XML::Parser)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(UNIVERSAL)
|
||||
BuildRequires: perl(vars)
|
||||
BuildRequires: perl(XML::Parser) >= 2.19
|
||||
# Tests:
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(XML::Parser) >= 2.19
|
||||
|
||||
# Filter out unversioned provides
|
||||
%global __provides_exclude %{?__provides_exclude?__provides_exclude|}^perl\\(Data::Grove\\)$
|
||||
%global __provides_exclude %{?__provides_exclude:__provides_exclude|}^perl\\(Data::Grove\\)$
|
||||
# Remove under-specified dependencies
|
||||
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(XML::Parser\\)$
|
||||
|
||||
%description
|
||||
libxml-perl is a collection of smaller Perl modules, scripts, and
|
||||
@ -27,12 +37,11 @@ others.
|
||||
%setup -q -n libxml-perl-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||
chmod -R u+w %{buildroot}/*
|
||||
|
||||
%check
|
||||
@ -45,6 +54,9 @@ make test
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
%changelog
|
||||
* Tue Jun 06 2017 Petr Pisar <ppisar@redhat.com> - 0.08-30
|
||||
- Modernize spec file
|
||||
|
||||
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-29
|
||||
- Perl 5.26 rebuild
|
||||
|
||||
@ -166,7 +178,7 @@ make test
|
||||
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
||||
- automated rebuild
|
||||
|
||||
* Thu Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 0.07-5
|
||||
* Wed Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 0.07-5
|
||||
- imported from mandrake. tweaked man path.
|
||||
|
||||
* Sun Jun 17 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.07-4mdk
|
||||
|
Loading…
Reference in New Issue
Block a user