Blame SPECS/python-rjsmin.spec

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