diff --git a/.gitignore b/.gitignore index b9b1284..390ad6b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/rcssmin-1.0.6.tar.gz +/rcssmin-*.tar.gz diff --git a/changelog b/changelog new file mode 100644 index 0000000..a455c75 --- /dev/null +++ b/changelog @@ -0,0 +1,82 @@ +* Fri Jul 22 2022 Fedora Release Engineering - 1.0.6-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.0.6-26 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.0.6-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.0.6-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 1.0.6-23 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.0.6-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.0.6-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 1.0.6-20 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.0.6-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 1.0.6-18 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 1.0.6-17 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.0.6-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0.6-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek - 1.0.6-14 +- Python2 binary package has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Jul 14 2018 Fedora Release Engineering - 1.0.6-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.0.6-12 +- Rebuilt for Python 3.7 + +* Tue Jun 19 2018 Miro Hrončok - 1.0.6-11 +- Rebuilt for Python 3.7 + +* Wed Feb 21 2018 Matthias Runge - 1.0.6-10 +- add gcc to buildrequires + +* Fri Feb 09 2018 Fedora Release Engineering - 1.0.6-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 29 2018 Iryna Shcherbina - 1.0.6-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.6-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.0.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.0.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 1.0.6-4 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 1.0.6-3 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Tue May 31 2016 Matthias Runge - 1.0.6-2 +- build python3 on only on Fedora + +* Fri Feb 26 2016 Matthias Runge - 1.0.6-1 +- Initial package. (rhbz#1312360) diff --git a/python-rcssmin.spec b/python-rcssmin.spec index 96b96e7..c73dec0 100644 --- a/python-rcssmin.spec +++ b/python-rcssmin.spec @@ -1,18 +1,5 @@ -# Created by pyp2rpm-2.0.0 %global pypi_name rcssmin - -Name: python-%{pypi_name} -Version: 1.0.6 -Release: 27%{?dist} -Summary: CSS Minifier - -License: ASL 2.0 -URL: http://opensource.perlig.de/rcssmin/ -Source0: https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz - -BuildRequires: gcc - -%description +%global desc %{expand: \ RCSSmin is a CSS minifier. The minifier is based on the semantics of the YUI compressor, which itself @@ -20,24 +7,29 @@ is based on the rule list by Isaac Schlueter. This module is a re-implementation aiming for speed instead of maximum compression, so it can be used at runtime (rather than during a preprocessing -step). +step).} -%package -n python3-%{pypi_name} -Summary: CSS Minifier -%{?python_provide:%python_provide python3-%{pypi_name}} -BuildRequires: python3-devel -BuildRequires: python3-setuptools +Name: python-%{pypi_name} +Version: 1.1.1 +Release: %autorelease +Summary: CSS Minifier +License: Apache-2.0 +URL: http://opensource.perlig.de/rcssmin/ +Source0: %{pypi_source} -%description -n python3-%{pypi_name} -RCSSmin is a CSS minifier. +BuildRequires: gcc +BuildRequires: python3-devel +BuildRequires: python3-pytest -The minifier is based on the semantics of the YUI compressor, which itself -is based on the rule list by Isaac Schlueter. +%description +%{desc} -This module is a re-implementation aiming for speed instead of maximum -compression, so it can be used at runtime (rather than during a preprocessing -step). +%package -n python3-%{pypi_name} +Summary: CSS Minifier + +%description -n python3-%{pypi_name} +%{desc} %prep %autosetup -n %{pypi_name}-%{version} @@ -45,104 +37,22 @@ step). # strip bang path from rcssmin.py sed -i '1d' rcssmin.py +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel + %install -# Must do the subpackages' install first because the scripts in /usr/bin are -# overwritten with every setup.py install. -%py3_install +%pyproject_install +%pyproject_save_files %{pypi_name} -# remove upstream developer documentation -rm -r %{buildroot}/%{_docdir}/%{pypi_name}/ +%check +%pytest -v -%files -n python3-%{pypi_name} -%doc README.rst -%license LICENSE bench/LICENSE.cssmin -%{python3_sitearch}/%{pypi_name}.py +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md %{python3_sitearch}/_%{pypi_name}.cpython* -%{python3_sitearch}/__pycache__/%{pypi_name}.cpython* -%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog -* Fri Jul 22 2022 Fedora Release Engineering - 1.0.6-27 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jun 13 2022 Python Maint - 1.0.6-26 -- Rebuilt for Python 3.11 - -* Fri Jan 21 2022 Fedora Release Engineering - 1.0.6-25 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Jul 23 2021 Fedora Release Engineering - 1.0.6-24 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jun 04 2021 Python Maint - 1.0.6-23 -- Rebuilt for Python 3.10 - -* Wed Jan 27 2021 Fedora Release Engineering - 1.0.6-22 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Wed Jul 29 2020 Fedora Release Engineering - 1.0.6-21 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue May 26 2020 Miro Hrončok - 1.0.6-20 -- Rebuilt for Python 3.9 - -* Thu Jan 30 2020 Fedora Release Engineering - 1.0.6-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Oct 03 2019 Miro Hrončok - 1.0.6-18 -- Rebuilt for Python 3.8.0rc1 (#1748018) - -* Mon Aug 19 2019 Miro Hrončok - 1.0.6-17 -- Rebuilt for Python 3.8 - -* Fri Jul 26 2019 Fedora Release Engineering - 1.0.6-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sat Feb 02 2019 Fedora Release Engineering - 1.0.6-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek - 1.0.6-14 -- Python2 binary package has been removed - See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal - -* Sat Jul 14 2018 Fedora Release Engineering - 1.0.6-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Tue Jun 19 2018 Miro Hrončok - 1.0.6-12 -- Rebuilt for Python 3.7 - -* Tue Jun 19 2018 Miro Hrončok - 1.0.6-11 -- Rebuilt for Python 3.7 - -* Wed Feb 21 2018 Matthias Runge - 1.0.6-10 -- add gcc to buildrequires - -* Fri Feb 09 2018 Fedora Release Engineering - 1.0.6-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Mon Jan 29 2018 Iryna Shcherbina - 1.0.6-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.6-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 1.0.6-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 1.0.6-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Mon Dec 19 2016 Miro Hrončok - 1.0.6-4 -- Rebuild for Python 3.6 - -* Tue Jul 19 2016 Fedora Release Engineering - 1.0.6-3 -- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages - -* Tue May 31 2016 Matthias Runge - 1.0.6-2 -- build python3 on only on Fedora - -* Fri Feb 26 2016 Matthias Runge - 1.0.6-1 -- Initial package. (rhbz#1312360) +%autochangelog diff --git a/sources b/sources index b7a3faf..bc7db1a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -467d56503ce386c0b0e52f69ac143a9a rcssmin-1.0.6.tar.gz +SHA512 (rcssmin-1.1.1.tar.gz) = 3439808f0e9165cac33756a2664fb4e3a314107422a952ebd42b28653519d91ba9e8f775cd499078c6d3faf103415c7c66eec05258f2dcfe85fee4f253399dfd