[packages/perl-Cwd-Guard] - new

baggins baggins at pld-linux.org
Thu Sep 18 23:13:49 CEST 2014


commit f1240557e27ba8ebacac1fafc0d4e817d5c5353b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Sep 18 23:13:21 2014 +0200

    - new

 perl-Cwd-Guard.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
---
diff --git a/perl-Cwd-Guard.spec b/perl-Cwd-Guard.spec
new file mode 100644
index 0000000..0c72764
--- /dev/null
+++ b/perl-Cwd-Guard.spec
@@ -0,0 +1,53 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Cwd
+%define		pnam	Guard
+%include	/usr/lib/rpm/macros.perl
+Summary:	Cwd::Guard - Temporary changing working directory (chdir)
+Name:		perl-Cwd-Guard
+Version:	0.04
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Cwd/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	26d12d3e4313943c7754afeec0f6462c
+URL:		http://search.cpan.org/dist/Cwd-Guard/
+BuildRequires:	perl-Module-Build
+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
+CORE::chdir Cwd:: Guard can change the current directory (chdir)
+using a limited scope.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+	destdir=$RPM_BUILD_ROOT \
+	installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/Cwd/*.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Cwd-Guard.git/commitdiff/f1240557e27ba8ebacac1fafc0d4e817d5c5353b



More information about the pld-cvs-commit mailing list