[perl-Module-Extract-VERSION] Initial import (perl-Module-Extract-VERSION-1.01-3)
Paul Howarth
pghmcfc at fedoraproject.org
Fri Aug 12 12:54:19 UTC 2011
commit 9d8959e3d423dc6557be3ea83824e95db3346fe9
Author: Paul Howarth <paul at city-fan.org>
Date: Fri Aug 12 13:52:44 2011 +0100
Initial import (perl-Module-Extract-VERSION-1.01-3)
This module lets you pull out of module source code the version number for the
module. It assumes that there is only one $VERSION in the file.
.gitignore | 1 +
perl-Module-Extract-VERSION.spec | 65 ++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..84d0559 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Module-Extract-VERSION-[0-9.]*.tar.gz
diff --git a/perl-Module-Extract-VERSION.spec b/perl-Module-Extract-VERSION.spec
new file mode 100644
index 0000000..b4b841b
--- /dev/null
+++ b/perl-Module-Extract-VERSION.spec
@@ -0,0 +1,65 @@
+Name: perl-Module-Extract-VERSION
+Version: 1.01
+Release: 3%{?dist}
+Summary: Extract a module version without running code
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/Module-Extract-VERSION/
+Source0: http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Module-Extract-VERSION-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildArch: noarch
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Pod) >= 1.00
+BuildRequires: perl(Test::Pod::Coverage) >= 1.00
+%if "%{?rhel}" != "4"
+BuildRequires: perl(Test::Prereq)
+%endif
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+# Filter bogus provide for perl(ExtUtils::MakeMaker::_version) (rpm 4.9 onwards)
+%global __provides_exclude ^perl\\(ExtUtils::MakeMaker::_version\\)
+
+%description
+This module lets you pull out of module source code the version number for the
+module. It assumes that there is only one $VERSION in the file.
+
+%prep
+%setup -q -n Module-Extract-VERSION-%{version}
+
+# Filter bogus provide for perl(ExtUtils::MakeMaker::_version) (prior to rpm 4.9)
+%global provfilt /bin/sh -c "%{__perl_provides} | grep -Fvx 'perl(ExtUtils::MakeMaker::_version)'"
+%define __perl_provides %{provfilt}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
+%{_fixperms} %{buildroot}
+
+%check
+make test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc Changes LICENSE README
+%{perl_vendorlib}/Module/
+%{_mandir}/man3/Module::Extract::VERSION.3pm*
+
+%changelog
+* Fri Aug 12 2011 Paul Howarth <paul at city-fan.org> - 1.01-3
+- Filter bogus provide for perl(ExtUtils::MakeMaker::_version) (#728286)
+
+* Thu Aug 4 2011 Paul Howarth <paul at city-fan.org> - 1.01-2
+- Sanitize for Fedora submission
+
+* Wed Aug 3 2011 Paul Howarth <paul at city-fan.org> - 1.01-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..e4ca9b5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2e0530aa2e92a4df27c62a13032ae8ee Module-Extract-VERSION-1.01.tar.gz
More information about the scm-commits
mailing list