[packages/perl-Mock-Config] - new
qboosh
qboosh at pld-linux.org
Fri Jul 7 18:43:22 CEST 2017
commit 011cbe677741a4b1e3b9d06bb3c979dd7145a0ee
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Jul 7 18:44:46 2017 +0200
- new
perl-Mock-Config.spec | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
---
diff --git a/perl-Mock-Config.spec b/perl-Mock-Config.spec
new file mode 100644
index 0000000..60795a1
--- /dev/null
+++ b/perl-Mock-Config.spec
@@ -0,0 +1,56 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Mock
+%define pnam Config
+%include /usr/lib/rpm/macros.perl
+Summary: Mock::Config - temporarily set Config or XSConfig values
+Summary(pl.UTF-8): Mock::Config - tymczasowe ustawianie wartości Config lub XSConfig
+Name: perl-Mock-Config
+Version: 0.03
+Release: 1
+License: Artistic v2
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/R/RU/RURBAN/Mock-Config-%{version}.tar.gz
+# Source0-md5: 27d250fb893974ba713d0d9c8e730729
+URL: http://search.cpan.org/dist/Mock-Config/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Test-Simple
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Mock::Config allows to temporarily set Config or XSConfig values.
+
+%description -l pl.UTF-8
+Mock::Config pozwala na tymczasowe ustawianie wartości Config lub
+XSConfig.
+
+%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
+%{perl_vendorlib}/Mock/Config.pm
+%{_mandir}/man3/Mock::Config.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Mock-Config.git/commitdiff/011cbe677741a4b1e3b9d06bb3c979dd7145a0ee
More information about the pld-cvs-commit
mailing list