Author: glen                         Date: Thu Sep  4 11:10:53 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- separate examples

---- Files affected:
SPECS:
   jpgraph.spec (1.23 -> 1.24) 

---- Diffs:

================================================================
Index: SPECS/jpgraph.spec
diff -u SPECS/jpgraph.spec:1.23 SPECS/jpgraph.spec:1.24
--- SPECS/jpgraph.spec:1.23     Fri Aug  8 17:32:19 2008
+++ SPECS/jpgraph.spec  Thu Sep  4 13:10:48 2008
@@ -3,13 +3,15 @@
 Summary(pl.UTF-8):     Klasa do tworzenia naukowych i biznesowych wykresów
 Name:          jpgraph
 Version:       1.26
-Release:       1
+Release:       2
 License:       QPL
 Group:         Libraries
 Source0:       http://hem.bredband.net/jpgraph/%{name}-%{version}.tar.gz
 # Source0-md5: 13bd871fb1a405ae1bbf9c02ae5a35ac
 Patch0:                %{name}-config.patch
 URL:           http://www.aditus.nu/jpgraph/
+BuildRequires: rpmbuild(macros) >= 1.461
+BuildRequires: sed >= 4.0
 BuildRequires: unzip
 Requires:      %{_datadir}/fonts/TTF
 Requires:      php(gd)
@@ -17,7 +19,7 @@
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _phpsharedir    %{_datadir}/php
+%define                _appdir                 %{php_data_dir}/%{name}
 
 %description
 JpGraph is a fully OO graph library which makes it easy to both draw a
@@ -43,11 +45,17 @@
 %setup  -q
 %patch0 -p1
 
+mv src/*.txt .
+mv src/Examples .
+
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_phpsharedir}/%{name}
-
-install src/*.*                $RPM_BUILD_ROOT%{_phpsharedir}/%{name}
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
+cp -a src/* $RPM_BUILD_ROOT%{_appdir}
+cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -55,7 +63,8 @@
 %files
 %defattr(644,root,root,755)
 %doc README* docs/*
-%{_phpsharedir}/%{name}
+%{_appdir}
+%{_examplesdir}/%{name}-%{version}
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -63,6 +72,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.24  2008/09/04 11:10:48  glen
+- separate examples
+
 Revision 1.23  2008/08/08 15:32:19  arekm
 - up to 1.26
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/jpgraph.spec?r1=1.23&r2=1.24&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to