f860523
# Created by pyp2rpm-2.0.0
f860523
%global pypi_name rjsmin
f860523
f860523
Name:           python-%{pypi_name}
f860523
Version:        1.0.12
0aad447
Release:        9%{?dist}
f860523
Summary:        Javascript Minifier
f860523
f860523
License:        ASL 2.0
f860523
URL:            http://opensource.perlig.de/rjsmin/
f860523
Source0:        https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
f860523
f860523
BuildRequires:  python2-devel
303813f
BuildRequires:  python2-setuptools
f860523
f860523
BuildRequires:  python3-devel
f860523
BuildRequires:  python3-setuptools
f860523
f860523
%description
f860523
rJSmin is a javascript minifier written in python.
f860523
f860523
The minifier is based on the semantics
f860523
of jsmin.c by Douglas Crockford.
f860523
f860523
The module is a re-implementation aiming
f860523
for speed, so it can be used at
f860523
runtime (rather than during a preprocessing
f860523
step). Usually it produces the
f860523
same results as the original jsmin.c.
f860523
f860523
%package -n     python2-%{pypi_name}
f860523
Summary:        Javascript Minifier
f860523
%{?python_provide:%python_provide python2-%{pypi_name}}
f860523
f860523
%description -n python2-%{pypi_name}
f860523
rJSmin is a javascript minifier written in python.
f860523
f860523
The minifier is based on the semantics
f860523
of jsmin.c by Douglas Crockford.
f860523
f860523
The module is a re-implementation aiming
f860523
for speed, so it can be used at
f860523
runtime (rather than during a preprocessing
f860523
step). Usually it produces the
f860523
same results as the original jsmin.c.
f860523
f860523
%package -n     python3-%{pypi_name}
f860523
Summary:        Javascript Minifier
f860523
%{?python_provide:%python_provide python3-%{pypi_name}}
f860523
f860523
%description -n python3-%{pypi_name}
f860523
rJSmin is a javascript minifier written in python.
f860523
f860523
The minifier is based on the semantics
f860523
of jsmin.c by Douglas Crockford.
f860523
f860523
The module is a re-implementation aiming
f860523
for speed, so it can be used at
f860523
runtime (rather than during a preprocessing
f860523
step). Usually it produces the
f860523
same results as the original jsmin.c.
f860523
f860523
%package docs
f860523
Summary:    Javascript Minifier - docs
f860523
%description docs
f860523
Docs for rJSmin, which is a javascript minifier written in python.
f860523
f860523
The minifier is based on the semantics
f860523
of jsmin.c by Douglas Crockford.
f860523
f860523
The module is a re-implementation aiming
f860523
for speed, so it can be used at
f860523
runtime (rather than during a preprocessing
f860523
step). Usually it produces the
f860523
same results as the original jsmin.c.
f860523
f860523
f860523
f860523
%prep
f860523
%autosetup -n %{pypi_name}-%{version}
f860523
f860523
# strip bang path from rjsmin.py
f860523
sed -i '1d' rjsmin.py
f860523
f860523
%build
f860523
%py2_build
f860523
%py3_build
f860523
f860523
%install
f860523
# Must do the subpackages' install first because the scripts in /usr/bin are
f860523
# overwritten with every setup.py install.
f860523
%py3_install
f860523
f860523
%py2_install
f860523
f860523
f860523
# remove upstream developer documentation
f860523
rm -r %{buildroot}/%{_docdir}/%{pypi_name}/
f860523
f860523
%files -n python2-%{pypi_name}
f860523
%doc README.rst
f860523
%license LICENSE
f860523
%{python2_sitearch}/%{pypi_name}.py
f860523
%{python2_sitearch}/%{pypi_name}.py[oc]
f860523
%{python2_sitearch}/_rjsmin.so
f860523
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
f860523
f860523
%files -n python3-%{pypi_name}
f860523
%doc README.rst
f860523
%license LICENSE
f860523
%{python3_sitearch}/%{pypi_name}.py
f860523
%{python3_sitearch}/_%{pypi_name}.cpython*
f860523
%{python3_sitearch}/__pycache__/rjsmin.*
f860523
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
f860523
f860523
%files docs
f860523
%doc README.rst docs
f860523
f860523
%changelog
0aad447
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-9
0aad447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0aad447
303813f
* Tue Jan 30 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.12-8
303813f
- Update Python 2 dependency declarations to new packaging standards
303813f
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
303813f
dff3b0b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-7
dff3b0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
dff3b0b
4fac5cb
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-6
4fac5cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4fac5cb
4f32c65
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-5
4f32c65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4f32c65
4bf6c47
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.0.12-4
4bf6c47
- Rebuild for Python 3.6
4bf6c47
bc58657
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.12-3
bc58657
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
bc58657
f860523
* Tue Mar 15 2016 Matthias Runge <mrunge@redhat.com> - 1.0.12-2
f860523
- split out -docs package, clean up description (rhbz#1312350)
f860523
f860523
* Fri Feb 26 2016 Matthias Runge <mrunge@redhat.com> - 1.0.12-1
f860523
- Initial package. (rhbz#1312350)