|
rdobuilder |
faa201 |
## START: Set by rpmautospec
|
|
rdobuilder |
faa201 |
## (rpmautospec version 0.3.1)
|
|
rdobuilder |
faa201 |
## RPMAUTOSPEC: autorelease, autochangelog
|
|
rdobuilder |
faa201 |
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
rdobuilder |
faa201 |
release_number = 2;
|
|
rdobuilder |
faa201 |
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
rdobuilder |
faa201 |
print(release_number + base_release_number - 1);
|
|
rdobuilder |
faa201 |
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
rdobuilder |
faa201 |
## END: Set by rpmautospec
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%global pypi_name rjsmin
|
|
rdobuilder |
faa201 |
%global desc %{expand: \
|
|
rdobuilder |
faa201 |
The minifier is based on the semantics of jsmin.c by Douglas Crockford.
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
The module is a re-implementation aiming for speed, so it can be used at
|
|
rdobuilder |
faa201 |
runtime (rather than during a preprocessing step). Usually it produces the
|
|
rdobuilder |
faa201 |
same results as the original jsmin.c.}
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
Name: python-%{pypi_name}
|
|
rdobuilder |
faa201 |
Version: 1.2.1
|
|
rdobuilder |
faa201 |
Release: %autorelease
|
|
rdobuilder |
faa201 |
Summary: Javascript Minifier
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
License: Apache-2.0
|
|
rdobuilder |
faa201 |
URL: http://opensource.perlig.de/rjsmin/
|
|
rdobuilder |
faa201 |
Source0: https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
BuildRequires: gcc
|
|
rdobuilder |
faa201 |
BuildRequires: python3-devel
|
|
rdobuilder |
faa201 |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
faa201 |
BuildRequires: python3-pytest
|
|
rdobuilder |
faa201 |
BuildRequires: python3-sphinx
|
|
rdobuilder |
faa201 |
BuildRequires: python3-sphinx_rtd_theme
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%description %{desc}
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%package -n python3-%{pypi_name}
|
|
rdobuilder |
faa201 |
Summary: Javascript Minifier
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%description -n python3-%{pypi_name}
|
|
rdobuilder |
faa201 |
%{desc}
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%package docs
|
|
rdobuilder |
faa201 |
Summary: Javascript Minifier - docs
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%description docs
|
|
rdobuilder |
faa201 |
%{desc}
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%prep
|
|
rdobuilder |
faa201 |
%autosetup -n %{pypi_name}-%{version}
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
# strip bang path from rjsmin.py
|
|
rdobuilder |
faa201 |
sed -i '1d' rjsmin.py
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%generate_buildrequires
|
|
rdobuilder |
faa201 |
%pyproject_buildrequires
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%build
|
|
rdobuilder |
faa201 |
%pyproject_wheel
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
sphinx-build -b html docs/_userdoc docs/_userdoc/html
|
|
rdobuilder |
faa201 |
# Remove the sphinx-build leftovers.
|
|
rdobuilder |
faa201 |
rm -rf docs/_userdoc/html/.{doctrees,buildinfo}
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%install
|
|
rdobuilder |
faa201 |
%pyproject_install
|
|
rdobuilder |
faa201 |
%pyproject_save_files %{pypi_name}
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%check
|
|
rdobuilder |
faa201 |
%pytest -v
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
rdobuilder |
faa201 |
%doc README.md
|
|
rdobuilder |
faa201 |
%{python3_sitearch}/_%{pypi_name}.cpython*
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%files docs
|
|
rdobuilder |
faa201 |
%license LICENSE
|
|
rdobuilder |
faa201 |
%doc README.md docs/_userdoc/html
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
%changelog
|
|
rdobuilder |
faa201 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
|
|
rdobuilder |
faa201 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
|
rdobuilder |
faa201 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Wed Jul 06 2022 Armando Neto <abiagion@redhat.com> - 1.2.0-1
|
|
rdobuilder |
faa201 |
- Update to 1.2.0
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.1.0-6
|
|
rdobuilder |
faa201 |
- Rebuilt for Python 3.11
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
|
|
rdobuilder |
faa201 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Thu Aug 05 2021 Matthias Runge <mrunge@redhat.com> - 1.1.0-4
|
|
rdobuilder |
faa201 |
- Fix FTBFS, skip docs build. (rhbz#1977642)
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.0-3
|
|
rdobuilder |
faa201 |
- Rebuilt for Python 3.10
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
rdobuilder |
faa201 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Tue Sep 08 2020 Yatin Karel <ykarel@redhat.com> - 1.1.0-1
|
|
rdobuilder |
faa201 |
- Update to 1.1.0
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-20
|
|
rdobuilder |
faa201 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-19
|
|
rdobuilder |
faa201 |
- Rebuilt for Python 3.9
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-18
|
|
rdobuilder |
faa201 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-17
|
|
rdobuilder |
faa201 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-16
|
|
rdobuilder |
faa201 |
- Rebuilt for Python 3.8
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-15
|
|
rdobuilder |
faa201 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-14
|
|
rdobuilder |
faa201 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Tue Jan 22 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-13
|
|
rdobuilder |
faa201 |
- Subpackage python2-rjsmin has been removed
|
|
rdobuilder |
faa201 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-12
|
|
rdobuilder |
faa201 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-11
|
|
rdobuilder |
faa201 |
- Rebuilt for Python 3.7
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Wed Feb 21 2018 Matthias Runge <mrunge@redhat.com> - 1.0.12-10
|
|
rdobuilder |
faa201 |
- add gcc build requirement
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-9
|
|
rdobuilder |
faa201 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Tue Jan 30 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.12-8
|
|
rdobuilder |
faa201 |
- Update Python 2 dependency declarations to new packaging standards
|
|
rdobuilder |
faa201 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-7
|
|
rdobuilder |
faa201 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-6
|
|
rdobuilder |
faa201 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-5
|
|
rdobuilder |
faa201 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-4
|
|
rdobuilder |
faa201 |
- Rebuild for Python 3.6
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.12-3
|
|
rdobuilder |
faa201 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Tue Mar 15 2016 Matthias Runge <mrunge@redhat.com> - 1.0.12-2
|
|
rdobuilder |
faa201 |
- split out -docs package, clean up description (rhbz#1312350)
|
|
rdobuilder |
faa201 |
|
|
rdobuilder |
faa201 |
* Fri Feb 26 2016 Matthias Runge <mrunge@redhat.com> - 1.0.12-1
|
|
rdobuilder |
faa201 |
- Initial package. (rhbz#1312350)
|
|
rdobuilder |
faa201 |
|