[packages/supermin] package examples

glen glen at pld-linux.org
Sun Aug 25 14:38:29 CEST 2013


commit e785dc7e832cfdc041ab37e26cf4fa6f74396efe
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Aug 25 15:38:21 2013 +0300

    package examples

 supermin.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/supermin.spec b/supermin.spec
index 464e030..b0f4f22 100644
--- a/supermin.spec
+++ b/supermin.spec
@@ -80,10 +80,13 @@ Ten pakiet zawiera wsparcie uruchomieniowe dla narzędzia supermin.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+rm -vf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/Makefile*
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -92,6 +95,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc README TODO
 %attr(755,root,root) %{_bindir}/supermin
 %{_mandir}/man8/supermin.8*
+%{_examplesdir}/%{name}-%{version}
 
 %files helper
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/supermin.git/commitdiff/e785dc7e832cfdc041ab37e26cf4fa6f74396efe



More information about the pld-cvs-commit mailing list