[packages/phplot] package contrib as examples

glen glen at pld-linux.org
Thu Aug 16 20:22:24 CEST 2012


commit 4ce2085743c07bab168173a5e6ce4ea8a26fb607
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Aug 16 21:22:22 2012 +0300

    package contrib as examples

 phplot.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/phplot.spec b/phplot.spec
index bfc7420..37bea38 100644
--- a/phplot.spec
+++ b/phplot.spec
@@ -8,7 +8,7 @@ Summary:	Class for creating esientific and business charts
 Summary(pl.UTF-8):	Klasa do tworzenia naukowych i biznesowych wykresów
 Name:		phplot
 Version:	5.8.0
-Release:	2
+Release:	3
 License:	LGPL v2.1, PHP
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/phplot/%{name}-%{version}.tar.gz
@@ -63,13 +63,17 @@ cp -a *.php $RPM_BUILD_ROOT%{php_data_dir}/%{name}
 install -d $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
 cp -a phplotdocs/* $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a contrib/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog NEWS* README* contrib
+%doc ChangeLog NEWS* README*
 %{php_data_dir}/%{name}
+%{_examplesdir}/%{name}-%{version}
 
 %files phpdoc
 %defattr(644,root,root,755)


More information about the pld-cvs-commit mailing list