[packages/perl-Parser-MGC] cleanup installed files
glen
glen at pld-linux.org
Tue Mar 8 21:18:31 CET 2016
commit 148ba1b94305f79471209a7e193a96a0b15d02af
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Mar 8 22:18:25 2016 +0200
cleanup installed files
perl-Parser-MGC.spec | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/perl-Parser-MGC.spec b/perl-Parser-MGC.spec
index 5a9837c..92a00ae 100644
--- a/perl-Parser-MGC.spec
+++ b/perl-Parser-MGC.spec
@@ -33,6 +33,8 @@ m//gc regexps used to implement the token parsing behaviour.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+mv lib/Parser/MGC/Examples/EvaluateExpression.pm examples
+
%build
%{__perl} Build.PL \
destdir=$RPM_BUILD_ROOT \
@@ -46,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT
./Build install
+# already as man
+rm $RPM_BUILD_ROOT%{perl_vendorlib}/Parser/MGC/Tutorial.pod
+
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@ -55,7 +60,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc Changes README
-%{perl_vendorlib}/Parser/*.pm
-%{perl_vendorlib}/Parser/MGC
-%{_mandir}/man3/*
+%{perl_vendorlib}/Parser/MGC.pm
+%{_mandir}/man3/Parser::MGC.3pm*
+%{_mandir}/man3/Parser::MGC::Tutorial.3pm*
%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Parser-MGC.git/commitdiff/148ba1b94305f79471209a7e193a96a0b15d02af
More information about the pld-cvs-commit
mailing list