[perl-Inline-Files] Modernize the spec a bit
Petr Šabata
psabata at fedoraproject.org
Thu Nov 15 10:55:02 UTC 2012
commit 7e3320b2fc52fcd430356adda5f50f319d3ea188
Author: Petr Šabata <contyk at redhat.com>
Date: Thu Nov 15 11:54:58 2012 +0100
Modernize the spec a bit
perl-Inline-Files.spec | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/perl-Inline-Files.spec b/perl-Inline-Files.spec
index b3c3910..a53982f 100644
--- a/perl-Inline-Files.spec
+++ b/perl-Inline-Files.spec
@@ -1,6 +1,6 @@
Name: perl-Inline-Files
Version: 0.68
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Allows for multiple inline files in a single perl file
Group: Development/Libraries
License: GPL+ or Artistic
@@ -13,10 +13,11 @@ BuildRequires: perl(Cwd)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(File::Copy)
BuildRequires: perl(Filter::Util::Call)
+BuildRequires: perl(lib)
BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
Requires: perl(Data::Dumper)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
Inline::Files generalizes the notion of the `__DATA__' marker and the
@@ -29,14 +30,13 @@ chmod -R a-x demo/* README Changes lib/Inline/Files.pm \
lib/Inline/Files/Virtual.pm
%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 -depth -type d -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
@@ -47,6 +47,11 @@ make test
%{_mandir}/man3/*.3*
%changelog
+* Thu Nov 15 2012 Petr Šabata <contyk at redhat.com> - 0.68-5
+- Modernize the spec a bit
+- Update the dep list
+- Drop command macros
+
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.68-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list