[packages/MathJax] - updated to 2.7.8 - cleaned up docs: "unpacked" moved to -source subpackage, "test" to examplesdir

qboosh qboosh at pld-linux.org
Mon May 18 18:08:51 CEST 2020


commit 97e1286cc2204e7e9a1b751777b7a58c637c2cd8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon May 18 18:09:21 2020 +0200

    - updated to 2.7.8
    - cleaned up docs: "unpacked" moved to -source subpackage, "test" to examplesdir

 MathJax.spec | 50 +++++++++++++++++++++++++++++++++++---------------
 1 file changed, 35 insertions(+), 15 deletions(-)
---
diff --git a/MathJax.spec b/MathJax.spec
index 8d81908..cd1c2ba 100644
--- a/MathJax.spec
+++ b/MathJax.spec
@@ -1,16 +1,15 @@
 Summary:	JavaScript display engine for mathematics
 Summary(pl.UTF-8):	Oparty na JavaScripcie silnik wyświetlania wzorów matematycznych
 Name:		MathJax
-Version:	1.1a
-Release:	3
+Version:	2.7.8
+Release:	1
 License:	Apache v2.0
 Group:		Applications/WWW
-# https://github.com/mathjax/MathJax/zipball/v1.1a
-Source0:	%{name}-%{version}.zip
-# Source0-md5:	63a0401cbf84bbeb173072d77c127299
+#Source0Download: https://github.com/mathjax/MathJax/releases
+Source0:	https://github.com/mathjax/MathJax/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	6cea1e2445ba7ab478be07463bca539c
 URL:		https://www.mathjax.org/
 BuildRequires:	rpmbuild(macros) >= 1.268
-BuildRequires:	unzip
 Requires:	webapps
 Requires:	webserver(access)
 Requires:	webserver(alias)
@@ -32,8 +31,19 @@ MathJax to mający otwarte źródła, oparty na JavaScripcie silnik
 wyświetlania wzorów matematycznych, działający we wszystkich
 współczesnych przeglądarkach.
 
+%package source
+Summary:	Unpacked source code of MathJax engine
+Summary(pl.UTF-8):	Rozpakowany kod źródłowy silnika MathJax
+Group:		Documentation
+
+%description source
+Unpacked source code of MathJax engine.
+
+%description source -l pl.UTF-8
+Rozpakowany kod źródłowy silnika MathJax.
+
 %prep
-%setup -q -n mathjax-MathJax-f5cd294
+%setup -q
 
 cat > apache.conf <<'EOF'
 Alias /%{name} %{_appdir}
@@ -59,11 +69,18 @@ EOF
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
 
-cp -a MathJax.js config extensions fonts jax $RPM_BUILD_ROOT%{_appdir}
+cp -pr MathJax.js config extensions fonts jax $RPM_BUILD_ROOT%{_appdir}
 
-cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
-cp -a lighttpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
+cp -p apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -p apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+cp -p lighttpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}
+cp -pr unpacked $RPM_BUILD_ROOT%{_prefix}/src/%{name}
+cp -pr test $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %triggerin -- apache1 < 1.3.37-3, apache1-base
 %webapp_register apache %{_webapp}
@@ -83,14 +100,17 @@ cp -a lighttpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
 %triggerun -- lighttpd
 %webapp_unregister lighttpd %{_webapp}
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
-%doc README.* docs test unpacked
+%doc README.* docs
 %dir %attr(750,root,http) %{_sysconfdir}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
 %{_appdir}
+%{_examplesdir}/%{name}-%{version}
+
+%files source
+%defattr(644,root,root,755)
+# move to some common "unpacked" or "js-unpacked", "javascript-unpacked" subdir?
+%{_prefix}/src/%{name}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/MathJax.git/commitdiff/97e1286cc2204e7e9a1b751777b7a58c637c2cd8



More information about the pld-cvs-commit mailing list