From ca2fd59151bce42b6f422ee0609d195e7107f4f7 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Wed, 14 Oct 2020 20:09:45 -0700 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/python-rjsmin#4dd6becce5af24ec72c6a680dc9014ca1bf0a79b --- .gitignore | 2 + python-rjsmin.spec | 157 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 160 insertions(+) create mode 100644 python-rjsmin.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..3267f31 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/rjsmin-1.0.12.tar.gz +/rjsmin-1.1.0.tar.gz diff --git a/python-rjsmin.spec b/python-rjsmin.spec new file mode 100644 index 0000000..c57c4d8 --- /dev/null +++ b/python-rjsmin.spec @@ -0,0 +1,157 @@ +# Created by pyp2rpm-2.0.0 +%global pypi_name rjsmin + +Name: python-%{pypi_name} +Version: 1.1.0 +Release: 1%{?dist} +Summary: Javascript Minifier + +License: ASL 2.0 +URL: http://opensource.perlig.de/rjsmin/ +Source0: https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +BuildRequires: gcc + +%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 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. + +%package -n python3-%{pypi_name} +Summary: Javascript Minifier +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +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 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. + +%package docs +Summary: Javascript Minifier - docs + +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme + +%description docs +Docs for rJSmin, which 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 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. + + + +%prep +%autosetup -n %{pypi_name}-%{version} + +# strip bang path from rjsmin.py +sed -i '1d' rjsmin.py + +%build +%py3_build + +sphinx-build -b html docs/_userdoc docs/_userdoc/html + +%install +# Must do the subpackages' install first because the scripts in /usr/bin are +# overwritten with every setup.py install. +%py3_install + +%files -n python3-%{pypi_name} +%doc README.md +%license LICENSE +%{python3_sitearch}/%{pypi_name}.py +%{python3_sitearch}/_%{pypi_name}.cpython* +%{python3_sitearch}/__pycache__/rjsmin.* +%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%files docs +%doc README.md docs/_userdoc/html + +%changelog +* Tue Sep 08 2020 Yatin Karel - 1.1.0-1 +- Update to 1.1.0 + +* Wed Jul 29 2020 Fedora Release Engineering - 1.0.12-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 1.0.12-19 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.0.12-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 1.0.12-17 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 1.0.12-16 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.0.12-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0.12-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jan 22 2019 Miro Hrončok - 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 - 1.0.12-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.0.12-11 +- Rebuilt for Python 3.7 + +* Wed Feb 21 2018 Matthias Runge - 1.0.12-10 +- add gcc build requirement + +* Fri Feb 09 2018 Fedora Release Engineering - 1.0.12-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Tue Jan 30 2018 Iryna Shcherbina - 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 - 1.0.12-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.0.12-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.0.12-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 1.0.12-4 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 1.0.12-3 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Tue Mar 15 2016 Matthias Runge - 1.0.12-2 +- split out -docs package, clean up description (rhbz#1312350) + +* Fri Feb 26 2016 Matthias Runge - 1.0.12-1 +- Initial package. (rhbz#1312350) diff --git a/sources b/sources new file mode 100644 index 0000000..19dcad9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rjsmin-1.1.0.tar.gz) = e89641666f4235e5125e33a8da727a204bd0f263c101833849d8368edb7522a184b0f6d87da39690b7e8c1dad0ae8a40508b019e971393a3ad99440ad8ccc3fc