15
0
forked from pool/python-rjsmin

- 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
This commit is contained in:
2025-04-16 11:45:20 +00:00
committed by Git OBS Bridge
commit 16e7ac2b6d
6 changed files with 192 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

94
python-rjsmin.changes Normal file
View File

@@ -0,0 +1,94 @@
-------------------------------------------------------------------
Wed Apr 16 11:05:16 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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 <bwiedemann@suse.de>
- Build without devel-instrumentation
- Get reproducible builds
-------------------------------------------------------------------
Tue Jan 2 21:59:41 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <asn@cryptomilk.org>
- Use sle15_python_module_pythons
-------------------------------------------------------------------
Fri Oct 7 15:08:45 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- 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 <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Mon Mar 9 09:45:29 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update reproducible.patch to also remove Werror from flags
-------------------------------------------------------------------
Sun Jun 2 20:54:38 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Avoid name repetition in summary.
-------------------------------------------------------------------
Sat May 18 02:29:20 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add reproducible.patch to build without profiling (boo#1040589)
-------------------------------------------------------------------
Wed May 15 18:27:39 UTC 2019 - Ethan Apodaca <eapodaca@suse.com>
- 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

68
python-rjsmin.spec Normal file
View File

@@ -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

3
rjsmin-1.2.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:65910c8dc93b285cb765194220dae3827dec1e281eb9a6acf373413135747a21
size 448271

3
rjsmin-1.2.4.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ffcbe04e0dfac39cea8fbbcb41c38b2e07235ce2188bca15e998da1d348a7860
size 422289