commit 3c757262c8720ade83f50e3b894bb65fc1bea4ea
Author: Paul Howarth <[email protected]>
Date: Wed Feb 8 14:14:30 2012 +0000
Reinstate compatibility with old distributions like EL-5
- Reinstate compatibility with old distributions like EL-5
- Add back buildroot definition and cleaning
- Add back %defattr
- Classify buildreqs by Build/Module/Tests/Runtime
- Make %files list more explicit
- Don't use macros for commands
.gitignore | 5 +----
perl-Module-Runtime.spec | 36 ++++++++++++++++++++++++++----------
2 files changed, 27 insertions(+), 14 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d34773c..c2480be 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1 @@
-/Module-Runtime-0.008.tar.gz
-/Module-Runtime-0.009.tar.gz
-/Module-Runtime-0.010.tar.gz
-/Module-Runtime-0.011.tar.gz
+/Module-Runtime-[0-9.]*.tar.gz
diff --git a/perl-Module-Runtime.spec b/perl-Module-Runtime.spec
index 05ac6e4..5d9823c 100644
--- a/perl-Module-Runtime.spec
+++ b/perl-Module-Runtime.spec
@@ -1,23 +1,26 @@
# This file is licensed under the terms of GNU GPLv2+.
Name: perl-Module-Runtime
Version: 0.011
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Runtime module handling
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Module-Runtime/
Source0:
http://www.cpan.org/authors/id/Z/ZE/ZEFRAM/Module-Runtime-%{version}.tar.gz
BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+# Build:
BuildRequires: perl(Module::Build)
-# Tests:
+# Module:
BuildRequires: perl(Exporter)
BuildRequires: perl(Params::Classify)
BuildRequires: perl(parent)
+# Tests:
BuildRequires: perl(Test::More)
-# Optional tests:
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
+# Runtime:
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Exporter)
%description
@@ -28,23 +31,36 @@ modules, which are normally handled at compile time.
%setup -q -n Module-Runtime-%{version}
%build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
./Build
%install
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-%{_fixperms} $RPM_BUILD_ROOT/*
+rm -rf %{buildroot}
+./Build install destdir=%{buildroot} create_packlist=0
+find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
+%{_fixperms} %{buildroot}
%check
./Build test
+%clean
+rm -rf %{buildroot}
+
%files
+%defattr(-,root,root,-)
%doc Changes README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%{perl_vendorlib}/Module/
+%{_mandir}/man3/Module::Runtime.3pm*
%changelog
+* Wed Feb 8 2012 Paul Howarth <[email protected]> - 0.011-3
+- Reinstate compatibility with old distributions like EL-5
+ - Add back buildroot definition and cleaning
+ - Add back %%defattr
+- Classify buildreqs by Build/Module/Tests/Runtime
+- Make %%files list more explicit
+- Don't use macros for commands
+
* Fri Jan 13 2012 Fedora Release Engineering <[email protected]>
- 0.011-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/perl-devel