Modernize the spec a bit
This commit is contained in:
parent
6d82579c33
commit
f527092842
@ -1,6 +1,6 @@
|
||||
Name: perl-IO-String
|
||||
Version: 1.08
|
||||
Release: 17%{?dist}
|
||||
Release: 18%{?dist}
|
||||
Summary: Emulate file interface for in-core strings
|
||||
Group: Development/Libraries
|
||||
License: GPL+ or Artistic
|
||||
@ -13,7 +13,7 @@ BuildRequires: perl(Data::Dumper)
|
||||
BuildRequires: perl(IO::Handle)
|
||||
# Tests:
|
||||
BuildRequires: perl(Test)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Data::Dumper)
|
||||
Requires: perl(IO::Handle)
|
||||
|
||||
@ -35,23 +35,18 @@ the code backwards compatible with older versions of Perl.
|
||||
%prep
|
||||
%setup -q -n IO-String-%{version}
|
||||
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||
chmod -R u+w %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
|
||||
%files
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/IO/
|
||||
@ -59,6 +54,10 @@ make test
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Nov 15 2012 Petr Šabata <contyk@redhat.com> - 1.08-18
|
||||
- Modernize the spec a bit
|
||||
- Drop command macros
|
||||
|
||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user