|
|
ed25af8 |
# Created by pyp2rpm-2.0.0
|
|
|
ed25af8 |
%global pypi_name rcssmin
|
|
|
98e14f6 |
%if 0%{?fedora}
|
|
|
98e14f6 |
%global with_python3 1
|
|
|
98e14f6 |
%endif
|
|
|
ed25af8 |
|
|
|
ed25af8 |
Name: python-%{pypi_name}
|
|
|
ed25af8 |
Version: 1.0.6
|
|
|
da4f891 |
Release: 12%{?dist}
|
|
|
ed25af8 |
Summary: CSS Minifier
|
|
|
ed25af8 |
|
|
|
ed25af8 |
License: ASL 2.0
|
|
|
ed25af8 |
URL: http://opensource.perlig.de/rcssmin/
|
|
|
ed25af8 |
Source0: https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
ed25af8 |
|
|
|
ed25af8 |
BuildRequires: python2-devel
|
|
|
fc0a5ff |
BuildRequires: python2-setuptools
|
|
|
851f542 |
BuildRequires: gcc
|
|
|
ed25af8 |
|
|
|
ed25af8 |
%description
|
|
|
ed25af8 |
RCSSmin is a CSS minifier.
|
|
|
ed25af8 |
|
|
|
ed25af8 |
The minifier is based on the semantics of the YUI compressor, which itself
|
|
|
ed25af8 |
is based on the rule list by Isaac Schlueter.
|
|
|
ed25af8 |
|
|
|
ed25af8 |
This module is a re-implementation aiming for speed instead of maximum
|
|
|
ed25af8 |
compression, so it can be used at runtime (rather than during a preprocessing
|
|
|
ed25af8 |
step).
|
|
|
ed25af8 |
|
|
|
ed25af8 |
%package -n python2-%{pypi_name}
|
|
|
ed25af8 |
Summary: CSS Minifier
|
|
|
ed25af8 |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
ed25af8 |
|
|
|
ed25af8 |
%description -n python2-%{pypi_name}
|
|
|
ed25af8 |
RCSSmin is a CSS minifier.
|
|
|
ed25af8 |
|
|
|
ed25af8 |
The minifier is based on the semantics of the YUI compressor, which itself
|
|
|
ed25af8 |
is based on the rule list by Isaac Schlueter.
|
|
|
ed25af8 |
|
|
|
ed25af8 |
This module is a re-implementation aiming for speed instead of maximum
|
|
|
ed25af8 |
compression, so it can be used at runtime (rather than during a preprocessing
|
|
|
ed25af8 |
step).
|
|
|
ed25af8 |
|
|
|
98e14f6 |
%if 0%{?with_python3}
|
|
|
ed25af8 |
%package -n python3-%{pypi_name}
|
|
|
ed25af8 |
Summary: CSS Minifier
|
|
|
ed25af8 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
98e14f6 |
BuildRequires: python3-devel
|
|
|
98e14f6 |
BuildRequires: python3-setuptools
|
|
|
98e14f6 |
|
|
|
ed25af8 |
|
|
|
ed25af8 |
%description -n python3-%{pypi_name}
|
|
|
ed25af8 |
RCSSmin is a CSS minifier.
|
|
|
ed25af8 |
|
|
|
ed25af8 |
The minifier is based on the semantics of the YUI compressor, which itself
|
|
|
ed25af8 |
is based on the rule list by Isaac Schlueter.
|
|
|
ed25af8 |
|
|
|
ed25af8 |
This module is a re-implementation aiming for speed instead of maximum
|
|
|
ed25af8 |
compression, so it can be used at runtime (rather than during a preprocessing
|
|
|
ed25af8 |
step).
|
|
|
98e14f6 |
%endif
|
|
|
ed25af8 |
|
|
|
ed25af8 |
%prep
|
|
|
ed25af8 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
ed25af8 |
|
|
|
ed25af8 |
# strip bang path from rcssmin.py
|
|
|
ed25af8 |
sed -i '1d' rcssmin.py
|
|
|
ed25af8 |
|
|
|
ed25af8 |
%build
|
|
|
ed25af8 |
%py2_build
|
|
|
98e14f6 |
%if 0%{?with_python3}
|
|
|
ed25af8 |
%py3_build
|
|
|
98e14f6 |
%endif
|
|
|
ed25af8 |
%install
|
|
|
ed25af8 |
# Must do the subpackages' install first because the scripts in /usr/bin are
|
|
|
ed25af8 |
# overwritten with every setup.py install.
|
|
|
98e14f6 |
%if 0%{?with_python3}
|
|
|
ed25af8 |
%py3_install
|
|
|
98e14f6 |
%endif
|
|
|
ed25af8 |
|
|
|
ed25af8 |
%py2_install
|
|
|
ed25af8 |
|
|
|
ed25af8 |
# remove upstream developer documentation
|
|
|
ed25af8 |
rm -r %{buildroot}/%{_docdir}/%{pypi_name}/
|
|
|
ed25af8 |
|
|
|
ed25af8 |
%files -n python2-%{pypi_name}
|
|
|
ed25af8 |
%doc README.rst
|
|
|
ed25af8 |
%license LICENSE bench/LICENSE.cssmin
|
|
|
ed25af8 |
%{python2_sitearch}/_%{pypi_name}.so
|
|
|
ed25af8 |
%{python2_sitearch}/%{pypi_name}.py
|
|
|
ed25af8 |
%{python2_sitearch}/%{pypi_name}.py[oc]
|
|
|
ed25af8 |
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
ed25af8 |
|
|
|
98e14f6 |
%if 0%{?with_python3}
|
|
|
ed25af8 |
%files -n python3-%{pypi_name}
|
|
|
ed25af8 |
%doc README.rst
|
|
|
ed25af8 |
%license LICENSE bench/LICENSE.cssmin
|
|
|
ed25af8 |
%{python3_sitearch}/%{pypi_name}.py
|
|
|
ed25af8 |
%{python3_sitearch}/_%{pypi_name}.cpython*
|
|
|
ed25af8 |
%{python3_sitearch}/__pycache__/%{pypi_name}.cpython*
|
|
|
ed25af8 |
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
98e14f6 |
%endif
|
|
|
ed25af8 |
|
|
|
ed25af8 |
%changelog
|
|
|
da4f891 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.6-12
|
|
|
da4f891 |
- Rebuilt for Python 3.7
|
|
|
da4f891 |
|
|
|
5ce71ab |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.6-11
|
|
|
5ce71ab |
- Rebuilt for Python 3.7
|
|
|
5ce71ab |
|
|
|
851f542 |
* Wed Feb 21 2018 Matthias Runge <mrunge@redhat.com> - 1.0.6-10
|
|
|
851f542 |
- add gcc to buildrequires
|
|
|
851f542 |
|
|
|
09da14a |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-9
|
|
|
09da14a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
09da14a |
|
|
|
fc0a5ff |
* Mon Jan 29 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.6-8
|
|
|
fc0a5ff |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
fc0a5ff |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
fc0a5ff |
|
|
|
8f1952d |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-7
|
|
|
8f1952d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
8f1952d |
|
|
|
688f1b2 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-6
|
|
|
688f1b2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
688f1b2 |
|
|
|
31622c1 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-5
|
|
|
31622c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
31622c1 |
|
|
|
45914e9 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.6-4
|
|
|
45914e9 |
- Rebuild for Python 3.6
|
|
|
45914e9 |
|
|
|
81c6325 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-3
|
|
|
81c6325 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
81c6325 |
|
|
|
98e14f6 |
* Tue May 31 2016 Matthias Runge <mrunge@redhat.com> - 1.0.6-2
|
|
|
98e14f6 |
- build python3 on only on Fedora
|
|
|
98e14f6 |
|
|
|
ed25af8 |
* Fri Feb 26 2016 Matthias Runge <mrunge@redhat.com> - 1.0.6-1
|
|
|
ed25af8 |
- Initial package. (rhbz#1312360)
|