[packages/php-jpgraph] Up to 4.4.4
arekm
arekm at pld-linux.org
Sat Nov 28 18:23:02 CET 2026
commit 06518b18551ca1207ababcf2f5fef2bdef9755d9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 17:30:16 2026 +0100
Up to 4.4.4
Source0 moved to jpgraph.net, the old hem.bredband.net URL is dead.
jpgraph-config.patch | 9 ++++-----
php-jpgraph.spec | 39 ++++++++++++++++-----------------------
2 files changed, 20 insertions(+), 28 deletions(-)
---
diff --git a/php-jpgraph.spec b/php-jpgraph.spec
index 428f5cc..40af470 100644
--- a/php-jpgraph.spec
+++ b/php-jpgraph.spec
@@ -1,15 +1,15 @@
Summary: Class for creating esientific and business charts, works with php5
Summary(pl.UTF-8): Klasa do tworzenia naukowych i biznesowych wykresów, działa z php5
Name: php-jpgraph
-Version: 3.0.7
-Release: 5
+Version: 4.4.4
+Release: 1
License: QPL 1.0
Group: Libraries
-# Source0Download: http://www.aditus.nu/jpgraph/jpdownload.php
-Source0: http://hem.bredband.net/jpgraph2/jpgraph-%{version}.tar.bz2
-# Source0-md5: 63acd2f8ec5ad5f7408b07d1098d5508
+# Source0Download: https://jpgraph.net/download/
+Source0: https://jpgraph.net/download/download.php?p=61#/jpgraph-%{version}.tar.gz
+# Source0-md5: a8a631607996017de10070c152548802
Patch0: jpgraph-config.patch
-URL: http://www.aditus.nu/jpgraph/
+URL: https://jpgraph.net/
BuildRequires: sed >= 4.0
Requires: php(core) >= 5.1.0
Requires: php(gd)
@@ -17,7 +17,7 @@ Obsoletes: jpgraph2
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _noautoreq_pear jpgraph_.* imgdata_.* gd_image.inc.php jpg-config.inc.php
+%define _noautoreq_pear jpgraph/.* jpgraph_.* imgdata_.* gd_image.inc.php jpg-config.inc.php imageSmoothArc.php
%define _appdir %{php_data_dir}/jpgraph
%define _phpdocdir %{_docdir}/phpdoc
@@ -63,52 +63,45 @@ Samples for jpgraph.
Pliki demonstracyjne i przykłady dla pakietu jpgraph.
%prep
-%setup -q -c
+%setup -q -n jpgraph-%{version}
%patch -P0 -p1
-# avoid 1970 in file dates
-find -newer README -o -print | xargs touch --reference %{SOURCE0}
-
mv src/Examples .
-# rm? some test code?
-mv src/contour_dev Examples
-
-%{__sed} -i -e 's,include ("../\(.*\)");,require_once "jpgraph/\1";,' Examples/*.php
-%{__sed} -i -e "s,require_once ('../\(.*\)');,require_once 'jpgraph/\1';," Examples/*.php
-
-# 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%{_appdir}
cp -a src/* $RPM_BUILD_ROOT%{_appdir}
+rm -r $RPM_BUILD_ROOT%{_appdir}/{README,barcode}
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
install -d $RPM_BUILD_ROOT%{_phpdocdir}
-cp -a docportal $RPM_BUILD_ROOT%{_phpdocdir}/jpgraph
+cp -a docs $RPM_BUILD_ROOT%{_phpdocdir}/jpgraph
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README*
+%doc src/README
%dir %{_appdir}
-%dir %{_appdir}/lang
+%{_appdir}/fonts
+%{_appdir}/html
+%{_appdir}/themes
%{_appdir}/jpgraph.php
%{_appdir}/jpgraph_*.php
%{_appdir}/jpg-config.inc.php
%{_appdir}/gd_image.inc.php
+%{_appdir}/imageSmoothArc.php
%{_appdir}/imgdata_*.inc.php
%{_appdir}/flag_mapping
%{_appdir}/flags.dat
%{_appdir}/flags_*.dat
+%dir %{_appdir}/lang
%lang(de) %{_appdir}/lang/de.inc.php
%lang(en) %{_appdir}/lang/en.inc.php
%{_appdir}/lang/prod.inc.php
diff --git a/jpgraph-config.patch b/jpgraph-config.patch
index 4d5d032..9edb1d8 100644
--- a/jpgraph-config.patch
+++ b/jpgraph-config.patch
@@ -1,12 +1,12 @@
---- jpgraph-2.3.4/src/jpg-config.inc.php~ 2009-06-15 17:35:46.000000000 +0300
-+++ jpgraph-2.3.4/src/jpg-config.inc.php 2009-06-15 17:36:32.632029137 +0300
+--- jpgraph-4.4.4/src/jpg-config.inc.php
++++ jpgraph-4.4.4/src/jpg-config.inc.php
@@ -36,7 +36,7 @@
//
//------------------------------------------------------------------------
// define('CACHE_DIR','/tmp/jpgraph_cache/');
--// define('TTF_DIR','/usr/share/fonts/truetype/');
+-// define('TTF_DIR','/usr/share/fonts/TrueType/');
+define('TTF_DIR','/usr/share/fonts/TTF/');
- // define('MBTTF_DIR','/usr/share/fonts/truetype/');
+ // define('MBTTF_DIR','/usr/share/fonts/TrueType/');
//-------------------------------------------------------------------------
@@ -123,7 +123,7 @@
@@ -18,4 +18,3 @@
// What permissions should the cached file have
// (Set to '' will give the default persmissions for the 'PHP-user')
-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-jpgraph.git/commitdiff/06518b18551ca1207ababcf2f5fef2bdef9755d9
More information about the pld-cvs-commit
mailing list