[packages/perl-constant-defer] adapter, no examples subdir
glen
glen at pld-linux.org
Tue Jun 9 23:12:27 CEST 2015
commit e546ccbd4e138b96286b7786b517e2928faaf66f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Jun 10 00:12:22 2015 +0300
adapter, no examples subdir
perl-constant-defer.spec | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/perl-constant-defer.spec b/perl-constant-defer.spec
index 854964d..019fc51 100644
--- a/perl-constant-defer.spec
+++ b/perl-constant-defer.spec
@@ -1,7 +1,7 @@
#
# Conditional build:
%bcond_without tests # do not perform "make test"
-#
+
%define pdir constant
%define pnam defer
%include /usr/lib/rpm/macros.perl
@@ -20,10 +20,10 @@ BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-constant::defer creates a subroutine which on the first call runs given
-code to calculate its value, and on any subsequent calls just returns that
-value, like a constant. The value code is discarded once run, allowing it
-to be garbage collected.
+constant::defer creates a subroutine which on the first call runs
+given code to calculate its value, and on any subsequent calls just
+returns that value, like a constant. The value code is discarded once
+run, allowing it to be garbage collected.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
@@ -37,12 +37,11 @@ to be garbage collected.
%install
rm -rf $RPM_BUILD_ROOT
-
%{__make} pure_install \
DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -52,5 +51,5 @@ rm -rf $RPM_BUILD_ROOT
%doc Changes README
%dir %{perl_vendorlib}/constant
%{perl_vendorlib}/constant/defer.pm
-%{_mandir}/man3/*
+%{_mandir}/man3/constant::defer.3pm*
%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-constant-defer.git/commitdiff/e546ccbd4e138b96286b7786b517e2928faaf66f
More information about the pld-cvs-commit
mailing list