[packages/perl-Devel-OverrideGlobalRequire] - initial
arekm
arekm at pld-linux.org
Mon Mar 23 09:09:43 CET 2015
commit 2c347c461bf5c57c7d25ee9988951bd479454119
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Mar 23 09:09:30 2015 +0100
- initial
perl-Devel-OverrideGlobalRequire.spec | 53 +++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
---
diff --git a/perl-Devel-OverrideGlobalRequire.spec b/perl-Devel-OverrideGlobalRequire.spec
new file mode 100644
index 0000000..7da0dc9
--- /dev/null
+++ b/perl-Devel-OverrideGlobalRequire.spec
@@ -0,0 +1,53 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Devel
+%define pnam OverrideGlobalRequire
+%include /usr/lib/rpm/macros.perl
+Summary: Devel::OverrideGlobalRequire - Override CORE::GLOBAL::require safely
+Name: perl-Devel-OverrideGlobalRequire
+Version: 0.001
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Devel/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 9cc9b7c3e39629d2f3ae22d347c29f1a
+URL: http://search.cpan.org/dist/Devel-OverrideGlobalRequire/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module overrides CORE::GLOBAL::require with a code reference in a
+way that plays nice with any existing overloading and ensures the
+right calling package is in scope.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Devel/*.pm
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Devel-OverrideGlobalRequire.git/commitdiff/2c347c461bf5c57c7d25ee9988951bd479454119
More information about the pld-cvs-commit
mailing list