Summary: A PHP class oriented framework Name: php-pChart Version: 1.27d Release: 7%{?dist} License: GPL+ URL: http://pchart.sourceforge.net Group: Applications/Publishing # pChart came packaged in a RAR file which we cannot ship in a RPM. The # following file was used to create the tar.gz file used as source. Further # a font was removed from the source. The following script was used to build Source0 # http://flip-edesign.com/source/php-pChart/generate-tarball.sh Source0: http://flip-edesign.com/source/%{name}/%{name}-%{version}.tar.gz # Patch needed to correct bug: # https://sourceforge.net/projects/pchart/forums/forum/822589/topic/3946548 Patch300: php-pChart-1.27d_uninitialized-string-offset.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch %description pChart is a PHP class oriented framework designed to create aliased charts. %prep %setup -q %patch300 -p1 -b .pData.class %build %install %{__rm} -rf %{buildroot} %{__install} -d -m0755 %{buildroot}%{_datadir}/php/%{name} %{__install} -d -m0755 %{buildroot}%{_datadir}/doc/%{name} %{__cp} -av pChart/* %{buildroot}%{_datadir}/php/%{name} # Needed to resolve wrong-file-end-of-line-encoding # http://fedoraproject.org/wiki/PackageMaintainers/Common_Rpmlint_Issues#wrong-file-end-of-line-encoding %{__sed} -i 's/\r//' Example*.php # Needed to resolve file-not-utf8 # http://fedoraproject.org/wiki/PackageMaintainers/Common_Rpmlint_Issues#file-not-utf8 iconv -f iso8859-1 -t utf-8 Example23.php > Example23.php.conv && mv -f Example23.php.conv Example23.php iconv -f iso8859-1 -t utf-8 Example21.php > Example21.php.conv && mv -f Example21.php.conv Example21.php iconv -f iso8859-1 -t utf-8 Example1.php > Example1.php.conv && mv -f Example1.php.conv Example1.php iconv -f iso8859-1 -t utf-8 Example25.php > Example25.php.conv && mv -f Example25.php.conv Example25.php %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc Example*.php %{_datadir}/php/%{name} %changelog * Wed Jan 12 2011 Jeffrey Ness - 1.27d-7 - Removed Fonts directory from tarball due to license * Tue Jan 11 2011 Jeffrey Ness - 1.27d-6 - Changes to correct issues posted in, https://bugzilla.redhat.com/show_bug.cgi?id=668542 * Sun Jan 09 2011 Jeffrey Ness - 1.27-5 - Added Patch300: php-pChart-1.26_uninitialized-string-offset.patch - Added %%{?dist} to Release - Modified generate-tarball.sh to not modify upstream source - Added Example PHP files to doc dir - Used sed to remove wrong-file-end-of-line-encoding rpmlint warn * Tue Dec 08 2010 Jeffrey Ness - 1.27-4 - Taking over package dev from https://bugzilla.redhat.com/show_bug.cgi?id=549590 * Tue Nov 11 2010 Jeffrey Ness - 1.27-3 - Removed version number from datadir path * Tue Nov 11 2010 Jeffrey Ness - 1.27-2 - Applied patch found at http://d.hatena.ne.jp/yhino/20100831/1283269513 to resolve PHP Notice * Tue Nov 11 2010 Jeffrey Ness - 1.27-1 - Creating package.