rpms/php-pear-Image-Graph/FC-6 php-pear-Image-Graph.spec,1.1,1.2

Christopher Stone (xulchris) fedora-extras-commits at redhat.com
Tue Mar 13 23:18:01 UTC 2007


Author: xulchris

Update of /cvs/extras/rpms/php-pear-Image-Graph/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26984/FC-6

Modified Files:
	php-pear-Image-Graph.spec 
Log Message:
put optional requires in sub packages


Index: php-pear-Image-Graph.spec
===================================================================
RCS file: /cvs/extras/rpms/php-pear-Image-Graph/FC-6/php-pear-Image-Graph.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- php-pear-Image-Graph.spec	12 Mar 2007 19:02:02 -0000	1.1
+++ php-pear-Image-Graph.spec	13 Mar 2007 23:17:28 -0000	1.2
@@ -3,7 +3,7 @@
 
 Name:           php-pear-Image-Graph
 Version:        0.7.2
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Displays numerical data as a graph/chart/plot
 
 Group:          Development/Languages
@@ -16,7 +16,6 @@
 BuildRequires:  php-pear >= 1:1.4.9-1.2
 Requires:       php-pear(PEAR)
 Requires:       php-pear(Image_Canvas) >= 0.3.0
-Requires(hint): php-pear(Numbers_Roman) php-pear(Numbers_Words)
 Requires(post): %{__pear}
 Requires(postun): %{__pear}
 Provides:       php-pear(%{pear_name}) = %{version}
@@ -36,6 +35,24 @@
 many different output formats, amongst others, GD (PNG, JPEG, GIF, WBMP),
 PDF (using PDFLib), Scalable Vector Graphics (SVG).
 
+%package roman
+Summary:        Numbers_Roman extension
+Group:          Development/Languages
+Requires:       php-pear(Numbers_Roman)
+Requires:       %{name} = %{version}-%{release}
+
+%description roman
+%{summary}.
+
+%package words
+Summary:        Numbers_Words extension
+Group:          Development/Languages
+Requires:       php-pear(Numbers_Words)
+Requires:       %{name} = %{version}-%{release}
+
+%description words
+%{summary}.
+
 
 %prep
 %setup -qc
@@ -87,9 +104,41 @@
 %doc %{pear_name}-%{version}/docdir/%{pear_name}/docs/*
 %{pear_xmldir}/%{pear_name}.xml
 %{pear_testdir}/%{pear_name}
-%{pear_phpdir}/Image/Graph*
+%{pear_phpdir}/Image/Graph.php
+%dir %{pear_phpdir}/Image/Graph
+%{pear_phpdir}/Image/Graph/*.php
+%{pear_phpdir}/Image/Graph/Axis
+%{pear_phpdir}/Image/Graph/DataSelector
+%{pear_phpdir}/Image/Graph/Dataset
+%{pear_phpdir}/Image/Graph/Figure
+%{pear_phpdir}/Image/Graph/Fill
+%{pear_phpdir}/Image/Graph/Grid
+%{pear_phpdir}/Image/Graph/Images
+%{pear_phpdir}/Image/Graph/Layout
+%{pear_phpdir}/Image/Graph/Line
+%{pear_phpdir}/Image/Graph/Marker
+%{pear_phpdir}/Image/Graph/Plot
+%{pear_phpdir}/Image/Graph/Plotarea
+%dir %{pear_phpdir}/Image/Graph/DataPreprocessor
+%{pear_phpdir}/Image/Graph/DataPreprocessor/Array.php
+%{pear_phpdir}/Image/Graph/DataPreprocessor/Currency.php
+%{pear_phpdir}/Image/Graph/DataPreprocessor/Date.php
+%{pear_phpdir}/Image/Graph/DataPreprocessor/Formatted.php
+%{pear_phpdir}/Image/Graph/DataPreprocessor/Function.php
+%{pear_phpdir}/Image/Graph/DataPreprocessor/Sequential.php
+
+%files roman
+%defattr(-,root,root,-)
+%{pear_phpdir}/Image/Graph/DataPreprocessor/RomanNumerals.php
+
+%files words
+%defattr(-,root,root,-)
+%{pear_phpdir}/Image/Graph/DataPreprocessor/NumberText.php
 
 
 %changelog
+* Tue Mar 13 2007 Christopher Stone <chris.stone at gmail.com> 0.7.2-2
+- Make subpackages for optional pear packages
+
 * Sun Jan 14 2007 Christopher Stone <chris.stone at gmail.com> 0.7.2-1
 - Initial Fedora release




More information about the scm-commits mailing list