You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
199 lines
6.6 KiB
199 lines
6.6 KiB
1 month ago
|
## START: Set by rpmautospec
|
||
|
## (rpmautospec version 0.6.5)
|
||
|
## RPMAUTOSPEC: autochangelog
|
||
|
## END: Set by rpmautospec
|
||
|
|
||
|
%global pypi_name rjsmin
|
||
|
%global desc %{expand: \
|
||
|
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.}
|
||
|
|
||
|
Name: python-%{pypi_name}
|
||
|
Version: 1.2.1
|
||
|
Release: 10%{?dist}
|
||
|
Summary: Javascript Minifier
|
||
|
|
||
|
License: Apache-2.0
|
||
|
URL: http://opensource.perlig.de/rjsmin/
|
||
|
Source0: https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||
|
|
||
|
BuildRequires: gcc
|
||
|
BuildRequires: python3-devel
|
||
|
BuildRequires: python3-pytest
|
||
|
BuildRequires: python3-sphinx
|
||
|
BuildRequires: python3-sphinx_rtd_theme
|
||
|
|
||
|
%description %{desc}
|
||
|
|
||
|
%package -n python3-%{pypi_name}
|
||
|
Summary: Javascript Minifier
|
||
|
|
||
|
%description -n python3-%{pypi_name}
|
||
|
%{desc}
|
||
|
|
||
|
%package docs
|
||
|
Summary: Javascript Minifier - docs
|
||
|
|
||
|
%description docs
|
||
|
%{desc}
|
||
|
|
||
|
%prep
|
||
|
%autosetup -n %{pypi_name}-%{version}
|
||
|
|
||
|
# strip bang path from rjsmin.py
|
||
|
sed -i '1d' rjsmin.py
|
||
|
|
||
|
%generate_buildrequires
|
||
|
%pyproject_buildrequires
|
||
|
|
||
|
%build
|
||
|
%pyproject_wheel
|
||
|
|
||
|
sphinx-build -b html docs/_userdoc docs/_userdoc/html
|
||
|
# Remove the sphinx-build leftovers.
|
||
|
rm -rf docs/_userdoc/html/.{doctrees,buildinfo}
|
||
|
|
||
|
%install
|
||
|
%pyproject_install
|
||
|
%pyproject_save_files %{pypi_name}
|
||
|
|
||
|
%check
|
||
|
%pytest -v
|
||
|
|
||
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
||
|
%doc README.md
|
||
|
%{python3_sitearch}/_%{pypi_name}.cpython*
|
||
|
|
||
|
%files docs
|
||
|
%license LICENSE
|
||
|
%doc README.md docs/_userdoc/html
|
||
|
|
||
|
%changelog
|
||
|
* Tue Dec 17 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.2.1-10
|
||
|
- Rebuilt for MSVSphere 10
|
||
|
|
||
|
## START: Generated by rpmautospec
|
||
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.2.1-12
|
||
|
- Bump release for October 2024 mass rebuild:
|
||
|
|
||
|
* Wed Jun 26 2024 Antonio Torres <antorres@redhat.com> - 1.2.1-11
|
||
|
- Add gating.yaml
|
||
|
|
||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.2.1-10
|
||
|
- Bump release for June 2024 mass rebuild
|
||
|
|
||
|
* Wed Apr 03 2024 Antonio Torres <antorres@redhat.com> - 1.2.1-9
|
||
|
- Add missing %%{dist} to Release
|
||
|
|
||
|
* Tue Apr 02 2024 Antonio Torres <antorres@redhat.com> - 1.2.1-8
|
||
|
- Bump release number
|
||
|
|
||
|
* Tue Apr 02 2024 Antonio Torres <antorres@redhat.com> - 1.2.1-7
|
||
|
- Remove benchmarking files from package
|
||
|
|
||
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-6
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||
|
|
||
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-5
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||
|
|
||
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-4
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||
|
|
||
|
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 1.2.1-3
|
||
|
- Rebuilt for Python 3.12
|
||
|
|
||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||
|
|
||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||
|
|
||
|
* Wed Jul 06 2022 Armando Neto <abiagion@redhat.com> - 1.2.0-1
|
||
|
- Update to 1.2.0
|
||
|
|
||
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.1.0-6
|
||
|
- Rebuilt for Python 3.11
|
||
|
|
||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||
|
|
||
|
* Thu Aug 05 2021 Matthias Runge <mrunge@redhat.com> - 1.1.0-4
|
||
|
- Fix FTBFS, skip docs build. (rhbz#1977642)
|
||
|
|
||
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.0-3
|
||
|
- Rebuilt for Python 3.10
|
||
|
|
||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||
|
|
||
|
* Tue Sep 08 2020 Yatin Karel <ykarel@redhat.com> - 1.1.0-1
|
||
|
- Update to 1.1.0
|
||
|
|
||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-20
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||
|
|
||
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-19
|
||
|
- Rebuilt for Python 3.9
|
||
|
|
||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-18
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||
|
|
||
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-17
|
||
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||
|
|
||
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-16
|
||
|
- Rebuilt for Python 3.8
|
||
|
|
||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-15
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||
|
|
||
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-14
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||
|
|
||
|
* Tue Jan 22 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-13
|
||
|
- Subpackage python2-rjsmin has been removed
|
||
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||
|
|
||
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-12
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||
|
|
||
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-11
|
||
|
- Rebuilt for Python 3.7
|
||
|
|
||
|
* Wed Feb 21 2018 Matthias Runge <mrunge@redhat.com> - 1.0.12-10
|
||
|
- add gcc build requirement
|
||
|
|
||
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-9
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||
|
|
||
|
* Tue Jan 30 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.12-8
|
||
|
- Update Python 2 dependency declarations to new packaging standards
|
||
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
||
|
|
||
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-7
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||
|
|
||
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-6
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||
|
|
||
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-5
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||
|
|
||
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-4
|
||
|
- Rebuild for Python 3.6
|
||
|
|
||
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.12-3
|
||
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||
|
|
||
|
* Tue Mar 15 2016 Matthias Runge <mrunge@redhat.com> - 1.0.12-2
|
||
|
- split out -docs package, clean up description (rhbz#1312350)
|
||
|
|
||
|
* Fri Feb 26 2016 Matthias Runge <mrunge@redhat.com> - 1.0.12-1
|
||
|
- Initial package. (rhbz#1312350)
|
||
|
|
||
|
## END: Generated by rpmautospec
|