Add %license.

- Modernize spec.
epel9
Ralf Corsépius 9 years ago
parent e4ada7a907
commit 1f1aa4336c

@ -1,6 +1,6 @@
Name: perl-Perl-MinimumVersion Name: perl-Perl-MinimumVersion
Version: 1.38 Version: 1.38
Release: 7%{?dist} Release: 8%{?dist}
Summary: Find a minimum required version of perl for Perl code Summary: Find a minimum required version of perl for Perl code
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
@ -33,7 +33,6 @@ BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Test::Script) >= 1.03 BuildRequires: perl(Test::Script) >= 1.03
%endif %endif
%{?perl_default_filter}
# Remove under-specified dependencies # Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(version\\)$ %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(version\\)$
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Params::Util\\)$ %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Params::Util\\)$
@ -46,12 +45,11 @@ Find a minimum required version of perl for Perl code
%setup -q -n Perl-MinimumVersion-%{version} %setup -q -n Perl-MinimumVersion-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
%check %check
@ -60,13 +58,18 @@ make test
%endif %endif
%files %files
%doc Changes LICENSE %doc Changes
%license LICENSE
%{_bindir}/* %{_bindir}/*
%{perl_vendorlib}/Perl %{perl_vendorlib}/Perl
%{_mandir}/man1/* %{_mandir}/man1/*
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Wed Jan 27 2016 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.38-8
- Add %%license.
- Modernize spec.
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.38-7 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.38-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

Loading…
Cancel
Save