From 16e7ac2b6d0323e0692f05ed90822cc60e41c17857ff990eec123002eab56028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 16 Apr 2025 11:45:20 +0000 Subject: [PATCH] - Update to 1.2.4 * Update Benchmarks * Update doc theme * Update project boilerplate - from version 1.2.3 * Add support for Python 3.13 * Update project boilerplate - Drop docs/CHANGES from %doc section, removed upstream OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rjsmin?expand=0&rev=27 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + python-rjsmin.changes | 94 +++++++++++++++++++++++++++++++++++++++++++ python-rjsmin.spec | 68 +++++++++++++++++++++++++++++++ rjsmin-1.2.2.tar.gz | 3 ++ rjsmin-1.2.4.tar.gz | 3 ++ 6 files changed, 192 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-rjsmin.changes create mode 100644 python-rjsmin.spec create mode 100644 rjsmin-1.2.2.tar.gz create mode 100644 rjsmin-1.2.4.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-rjsmin.changes b/python-rjsmin.changes new file mode 100644 index 0000000..01e17e9 --- /dev/null +++ b/python-rjsmin.changes @@ -0,0 +1,94 @@ +------------------------------------------------------------------- +Wed Apr 16 11:05:16 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 1.2.4 + * Update Benchmarks + * Update doc theme + * Update project boilerplate +- from version 1.2.3 + * Add support for Python 3.13 + * Update project boilerplate +- Drop docs/CHANGES from %doc section, removed upstream + +------------------------------------------------------------------- +Mon Jan 8 06:38:41 UTC 2024 - Bernhard Wiedemann + +- Build without devel-instrumentation +- Get reproducible builds + +------------------------------------------------------------------- +Tue Jan 2 21:59:41 UTC 2024 - Dirk Müller + +- update to 1.2.2: + * Add musllinux wheels + * Add support for Python 3.12 + * Update project boilerplate +- drop reproducible.patch (upstream) + +------------------------------------------------------------------- +Wed Jun 21 05:53:48 UTC 2023 - Andreas Schneider + +- Use sle15_python_module_pythons + +------------------------------------------------------------------- +Fri Oct 7 15:08:45 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 1.2.1 + *) Add support for Python 3.11 + *) Removed debug print from setup.py + *) Update project boilerplate + +------------------------------------------------------------------- +Thu Apr 14 08:35:15 UTC 2022 - pgajdos@suse.com + +- version update to 1.2.0 + *) Improve regex detection. Fixes #17, #23 + *) Add aarch64 wheels (issue #24, #25, contributed by odidev) + *) Add tests to source distribution (issue #20, contributed by dvzrv) + *) bytearray input now produces bytearray output + *) Update python support: 2.7, 3.6+ + *) Emit the correct env var name in the warning message if the compilation of + the C implementation fails. +- modified patches + % reproducible.patch (refreshed) + +------------------------------------------------------------------- +Mon Apr 20 09:44:09 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +------------------------------------------------------------------- +Mon Mar 9 09:45:29 UTC 2020 - Tomáš Chvátal + +- Update reproducible.patch to also remove Werror from flags + +------------------------------------------------------------------- +Sun Jun 2 20:54:38 UTC 2019 - Jan Engelhardt + +- Avoid name repetition in summary. + +------------------------------------------------------------------- +Sat May 18 02:29:20 UTC 2019 - Bernhard Wiedemann + +- Add reproducible.patch to build without profiling (boo#1040589) + +------------------------------------------------------------------- +Wed May 15 18:27:39 UTC 2019 - Ethan Apodaca + +- Update to 1.1.0 + + See changes file for changes +- Add check phase to spec +- Remove documentation subpackage + +------------------------------------------------------------------- +Wed Nov 15 17:45:23 UTC 2017 - buschmann23@opensuse.org + +- spec file + + convert to single spec file + + move docs into separate package + +------------------------------------------------------------------- +Tue Jul 5 08:31:28 UTC 2016 - aplanas@suse.com + +- Add initial rJSmin version 1.0.12 + diff --git a/python-rjsmin.spec b/python-rjsmin.spec new file mode 100644 index 0000000..0340092 --- /dev/null +++ b/python-rjsmin.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-rjsmin +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define mod_name rjsmin +%{?sle15_python_module_pythons} +Name: python-%{mod_name} +Version: 1.2.4 +Release: 0 +Summary: A JavaScript minifier written in Python +License: Apache-2.0 +URL: http://opensource.perlig.de/rjsmin/ +Source: https://github.com/ndparker/rjsmin/archive/refs/tags/%{version}.tar.gz#/rjsmin-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Obsoletes: %{name}-doc +%python_subpackages + +%description +rJSmin is a Javascript minifier written in Python. + +The minifier is based on the semantics of jsmin.c by Douglas Crockford. + +The module is a re-implementation targeting speed, so it can be used +at runtime (rather than during a preprocessing step). + +%prep +%autosetup -p1 -n %{mod_name}-%{version} + +%build +export CFLAGS="%optflags" # must be defined to build without -ftest-coverage instrumentation +%pyproject_wheel + +%install +%pyproject_install +rm -rf %{buildroot}%{_datadir}/doc/rjsmin + +%check +%pytest_arch + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitearch}/rjsmin.py +%{python_sitearch}/_rjsmin* +%pycache_only %{python_sitearch}/__pycache__/rjsmin* +%{python_sitearch}/rjsmin-%{version}.dist-info + +%changelog diff --git a/rjsmin-1.2.2.tar.gz b/rjsmin-1.2.2.tar.gz new file mode 100644 index 0000000..22578d4 --- /dev/null +++ b/rjsmin-1.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65910c8dc93b285cb765194220dae3827dec1e281eb9a6acf373413135747a21 +size 448271 diff --git a/rjsmin-1.2.4.tar.gz b/rjsmin-1.2.4.tar.gz new file mode 100644 index 0000000..3957060 --- /dev/null +++ b/rjsmin-1.2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffcbe04e0dfac39cea8fbbcb41c38b2e07235ce2188bca15e998da1d348a7860 +size 422289