f860523
# Created by pyp2rpm-2.0.0
f860523
%global pypi_name rjsmin
f860523
f860523
Name:           python-%{pypi_name}
4dd6bec
Version:        1.1.0
743796f
Release:        4%{?dist}
f860523
Summary:        Javascript Minifier
f860523
f860523
License:        ASL 2.0
f860523
URL:            http://opensource.perlig.de/rjsmin/
f860523
Source0:        https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
f860523
f860523
BuildRequires:  python3-devel
f860523
BuildRequires:  python3-setuptools
f860523
ef7dc27
BuildRequires:  gcc
ef7dc27
f860523
%description
f860523
rJSmin is a javascript minifier written in python.
f860523
f860523
The minifier is based on the semantics
f860523
of jsmin.c by Douglas Crockford.
f860523
f860523
The module is a re-implementation aiming
f860523
for speed, so it can be used at
f860523
runtime (rather than during a preprocessing
f860523
step). Usually it produces the
f860523
same results as the original jsmin.c.
f860523
f860523
%package -n     python3-%{pypi_name}
f860523
Summary:        Javascript Minifier
f860523
%{?python_provide:%python_provide python3-%{pypi_name}}
f860523
f860523
%description -n python3-%{pypi_name}
f860523
rJSmin is a javascript minifier written in python.
f860523
f860523
The minifier is based on the semantics
f860523
of jsmin.c by Douglas Crockford.
f860523
f860523
The module is a re-implementation aiming
f860523
for speed, so it can be used at
f860523
runtime (rather than during a preprocessing
f860523
step). Usually it produces the
f860523
same results as the original jsmin.c.
f860523
f860523
%package docs
f860523
Summary:    Javascript Minifier - docs
4dd6bec
4dd6bec
BuildRequires: python3-sphinx
4dd6bec
BuildRequires: python3-sphinx_rtd_theme
4dd6bec
f860523
%description docs
f860523
Docs for rJSmin, which is a javascript minifier written in python.
f860523
f860523
The minifier is based on the semantics
f860523
of jsmin.c by Douglas Crockford.
f860523
f860523
The module is a re-implementation aiming
f860523
for speed, so it can be used at
f860523
runtime (rather than during a preprocessing
f860523
step). Usually it produces the
f860523
same results as the original jsmin.c.
f860523
f860523
f860523
f860523
%prep
f860523
%autosetup -n %{pypi_name}-%{version}
f860523
f860523
# strip bang path from rjsmin.py
f860523
sed -i '1d' rjsmin.py
f860523
f860523
%build
f860523
%py3_build
f860523
4dd6bec
sphinx-build -b html docs/_userdoc docs/_userdoc/html
4dd6bec
f860523
%install
f860523
# Must do the subpackages' install first because the scripts in /usr/bin are
f860523
# overwritten with every setup.py install.
f860523
%py3_install
f860523
f860523
%files -n python3-%{pypi_name}
4dd6bec
%doc README.md
f860523
%license LICENSE
f860523
%{python3_sitearch}/%{pypi_name}.py
f860523
%{python3_sitearch}/_%{pypi_name}.cpython*
f860523
%{python3_sitearch}/__pycache__/rjsmin.*
f21f233
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
f860523
f860523
%files docs
4dd6bec
%doc README.md docs/_userdoc/html
f860523
f860523
%changelog
743796f
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
743796f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
743796f
0da285a
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.0-3
0da285a
- Rebuilt for Python 3.10
0da285a
1ac3a7d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
1ac3a7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1ac3a7d
4dd6bec
* Tue Sep 08 2020 Yatin Karel <ykarel@redhat.com> - 1.1.0-1
4dd6bec
- Update to 1.1.0
4dd6bec
dea104f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-20
dea104f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dea104f
d0f465d
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-19
d0f465d
- Rebuilt for Python 3.9
d0f465d
74e3b51
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-18
74e3b51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
74e3b51
dc0f93e
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-17
dc0f93e
- Rebuilt for Python 3.8.0rc1 (#1748018)
dc0f93e
af9d80c
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-16
af9d80c
- Rebuilt for Python 3.8
af9d80c
bf03025
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-15
bf03025
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bf03025
0eb6014
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-14
0eb6014
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0eb6014
db49540
* Tue Jan 22 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-13
db49540
- Subpackage python2-rjsmin has been removed
db49540
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
db49540
ef751f0
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-12
ef751f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ef751f0
839ce18
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-11
839ce18
- Rebuilt for Python 3.7
839ce18
ef7dc27
* Wed Feb 21 2018 Matthias Runge <mrunge@redhat.com> - 1.0.12-10
ef7dc27
- add gcc build requirement
ef7dc27
0aad447
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-9
0aad447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0aad447
303813f
* Tue Jan 30 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.12-8
303813f
- Update Python 2 dependency declarations to new packaging standards
303813f
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
303813f
dff3b0b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-7
dff3b0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
dff3b0b
4fac5cb
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-6
4fac5cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4fac5cb
4f32c65
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-5
4f32c65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4f32c65
4bf6c47
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-4
4bf6c47
- Rebuild for Python 3.6
4bf6c47
bc58657
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.12-3
bc58657
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
bc58657
f860523
* Tue Mar 15 2016 Matthias Runge <mrunge@redhat.com> - 1.0.12-2
f860523
- split out -docs package, clean up description (rhbz#1312350)
f860523
f860523
* Fri Feb 26 2016 Matthias Runge <mrunge@redhat.com> - 1.0.12-1
f860523
- Initial package. (rhbz#1312350)