[packages/python3-rjsmin] - up to 1.2.4

baggins baggins at pld-linux.org
Tue Jun 3 23:30:52 CEST 2025


commit 82c0b8b63d6b0c5f7e79867f853c9a3616583802
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Jun 4 01:30:29 2025 +0200

    - up to 1.2.4

 python3-rjsmin.spec | 67 +++++++----------------------------------------------
 1 file changed, 9 insertions(+), 58 deletions(-)
---
diff --git a/python3-rjsmin.spec b/python3-rjsmin.spec
index 8910780..e2fcb6b 100644
--- a/python3-rjsmin.spec
+++ b/python3-rjsmin.spec
@@ -1,29 +1,21 @@
 #
 # Conditional build:
 %bcond_without	doc	# don't build doc
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 %define		module		rjsmin
 Summary:	rJSmin is a JavaScript minifier written in Python
-Name:		python3-%{pypi_name}
-Version:	1.0.12
-Release:	11
+Name:		python3-%{module}
+Version:	1.2.4
+Release:	1
 License:	Apache v2.0
 Group:		Libraries/Python
-Source0:	https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
-# Source0-md5:	9f67e133c88df5497d3da847603da9bf
+Source0:	https://pypi.python.org/packages/source/r/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5:	a20ad5596df006d9b94769e0405d5716
 URL:		http://opensource.perlig.de/rjsmin/
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-modules
-BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
 BuildRequires:	python3-modules
 BuildRequires:	python3-setuptools
-%endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -34,18 +26,6 @@ The module is a re-implementation aiming for speed, so it can be used
 at runtime (rather than during a preprocessing step). Usually it
 produces the same results as the original jsmin.c.
 
-%package -n python3-%{pypi_name}
-Summary:	rJSmin is a JavaScript minifier written in Python
-Group:		Libraries/Python
-
-%description -n python3-%{pypi_name}
-The minifier is based on the semantics of jsmin.c by Douglas
-Crockford.
-
-The module is a re-implementation aiming for speed, so it can be used
-at runtime (rather than during a preprocessing step). Usually it
-produces the same results as the original jsmin.c.
-
 %package apidocs
 Summary:	Javascript Minifier - docs
 Group:		Documentation
@@ -55,57 +35,28 @@ BuildArch:	noarch
 Docs for rJSmin
 
 %prep
-%setup -q -n %{pypi_name}-%{version}
-
-# strip bang path from rjsmin.py
-sed -i '1d' rjsmin.py
+%setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
 %py3_build
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
-%py_install
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
-
-rm -r $RPM_BUILD_ROOT%{_docdir}/%{module}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc README.rst LICENSE
-%{py_sitedir}/%{module}.py[co]
-%attr(755,root,root) %{py_sitedir}/_%{module}.so
-%{py_sitedir}/%{pypi_name}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{pypi_name}
-%defattr(644,root,root,755)
-%doc README.rst LICENSE
+%doc README.md LICENSE
 %{py3_sitedir}/%{module}.py
 %{py3_sitedir}/__pycache__/%{module}.*.pyc
 %attr(755,root,root) %{py3_sitedir}/_%{module}.*.so
-%{py3_sitedir}/%{egg_name}-%{version}-py*.egg-info
-%endif
+%{py3_sitedir}/%{module}-%{version}-py*.egg-info
 
 %if %{with doc}
 %files apidocs
 %defattr(644,root,root,755)
-%doc README.rst docs
+%doc docs
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-rjsmin.git/commitdiff/82c0b8b63d6b0c5f7e79867f853c9a3616583802



More information about the pld-cvs-commit mailing list