Remove %defattr.

- Modernize spec.
- Add %license.
This commit is contained in:
Ralf Corsépius 2016-01-26 19:05:44 +01:00
parent f7efe62a2b
commit ec13eef8df

View File

@ -1,6 +1,6 @@
Name: perl-Params-Util
Version: 1.07
Release: 13%{?dist}
Release: 14%{?dist}
Summary: Simple standalone parameter-checking functions
License: GPL+ or Artistic
Group: Development/Libraries
@ -39,12 +39,11 @@ makes checking parameters a hell of a lot easier.
%setup -q -n Params-Util-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
@ -53,14 +52,19 @@ chmod -R u+w $RPM_BUILD_ROOT/*
make test AUTOMATED_TESTING=1
%files
%defattr(-,root,root,-)
%doc Changes LICENSE
%doc Changes
%license LICENSE
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Params
%{_mandir}/man3/*
%changelog
* Tue Jan 26 2016 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.07-14
- Remove %defattr.
- Modernize spec.
- Add %%license.
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild