Blame SPECS/python-rcssmin.spec

cbfef7
# Created by pyp2rpm-2.0.0
cbfef7
%global pypi_name rcssmin
cbfef7
cbfef7
Name:           python-%{pypi_name}
cbfef7
Version:        1.0.6
cbfef7
Release:        22%{?dist}
cbfef7
Summary:        CSS Minifier
cbfef7
cbfef7
License:        ASL 2.0
cbfef7
URL:            http://opensource.perlig.de/rcssmin/
cbfef7
Source0:        https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
cbfef7
cbfef7
BuildRequires:  gcc
cbfef7
cbfef7
%description
cbfef7
RCSSmin is a CSS minifier.
cbfef7
cbfef7
The minifier is based on the semantics of the YUI compressor, which itself
cbfef7
is based on the rule list by Isaac Schlueter.
cbfef7
cbfef7
This module is a re-implementation aiming for speed instead of maximum
cbfef7
compression, so it can be used at runtime (rather than during a preprocessing
cbfef7
step).
cbfef7
cbfef7
%package -n     python3-%{pypi_name}
cbfef7
Summary:        CSS Minifier
cbfef7
%{?python_provide:%python_provide python3-%{pypi_name}}
cbfef7
BuildRequires:  python3-devel
cbfef7
BuildRequires:  python3-setuptools
cbfef7
cbfef7
cbfef7
%description -n python3-%{pypi_name}
cbfef7
RCSSmin is a CSS minifier.
cbfef7
cbfef7
The minifier is based on the semantics of the YUI compressor, which itself
cbfef7
is based on the rule list by Isaac Schlueter.
cbfef7
cbfef7
This module is a re-implementation aiming for speed instead of maximum
cbfef7
compression, so it can be used at runtime (rather than during a preprocessing
cbfef7
step).
cbfef7
cbfef7
%prep
cbfef7
%autosetup -n %{pypi_name}-%{version}
cbfef7
cbfef7
# strip bang path from rcssmin.py
cbfef7
sed -i '1d' rcssmin.py
cbfef7
cbfef7
%build
cbfef7
%py3_build
cbfef7
%install
cbfef7
# Must do the subpackages' install first because the scripts in /usr/bin are
cbfef7
# overwritten with every setup.py install.
cbfef7
%py3_install
cbfef7
cbfef7
# remove upstream developer documentation
cbfef7
rm -r %{buildroot}/%{_docdir}/%{pypi_name}/
cbfef7
cbfef7
%files -n python3-%{pypi_name}
cbfef7
%doc README.rst
cbfef7
%license LICENSE bench/LICENSE.cssmin
cbfef7
%{python3_sitearch}/%{pypi_name}.py
cbfef7
%{python3_sitearch}/_%{pypi_name}.cpython*
cbfef7
%{python3_sitearch}/__pycache__/%{pypi_name}.cpython*
cbfef7
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
cbfef7
cbfef7
%changelog
cbfef7
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-22
cbfef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cbfef7
cbfef7
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-21
cbfef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cbfef7
cbfef7
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.6-20
cbfef7
- Rebuilt for Python 3.9
cbfef7
cbfef7
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-19
cbfef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cbfef7
cbfef7
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.6-18
cbfef7
- Rebuilt for Python 3.8.0rc1 (#1748018)
cbfef7
cbfef7
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.6-17
cbfef7
- Rebuilt for Python 3.8
cbfef7
cbfef7
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-16
cbfef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cbfef7
cbfef7
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-15
cbfef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cbfef7
cbfef7
* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.6-14
cbfef7
- Python2 binary package has been removed
cbfef7
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
cbfef7
cbfef7
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-13
cbfef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cbfef7
cbfef7
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.6-12
cbfef7
- Rebuilt for Python 3.7
cbfef7
cbfef7
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.6-11
cbfef7
- Rebuilt for Python 3.7
cbfef7
cbfef7
* Wed Feb 21 2018 Matthias Runge <mrunge@redhat.com> - 1.0.6-10
cbfef7
- add gcc to buildrequires
cbfef7
cbfef7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-9
cbfef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cbfef7
cbfef7
* Mon Jan 29 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.6-8
cbfef7
- Update Python 2 dependency declarations to new packaging standards
cbfef7
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
cbfef7
cbfef7
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-7
cbfef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
cbfef7
cbfef7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-6
cbfef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cbfef7
cbfef7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-5
cbfef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cbfef7
cbfef7
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.6-4
cbfef7
- Rebuild for Python 3.6
cbfef7
cbfef7
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-3
cbfef7
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
cbfef7
cbfef7
* Tue May 31 2016 Matthias Runge <mrunge@redhat.com> - 1.0.6-2
cbfef7
- build python3 on only on Fedora
cbfef7
cbfef7
* Fri Feb 26 2016 Matthias Runge <mrunge@redhat.com> - 1.0.6-1
cbfef7
- Initial package. (rhbz#1312360)