2016-03-16 08:13:19 +00:00
|
|
|
# Created by pyp2rpm-2.0.0
|
|
|
|
%global pypi_name rjsmin
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Version: 1.0.12
|
2018-06-19 09:17:57 +00:00
|
|
|
Release: 11%{?dist}
|
2016-03-16 08:13:19 +00:00
|
|
|
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: python2-devel
|
2018-01-30 00:03:03 +00:00
|
|
|
BuildRequires: python2-setuptools
|
2016-03-16 08:13:19 +00:00
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
2018-02-21 07:03:47 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
|
2016-03-16 08:13:19 +00:00
|
|
|
%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 python2-%{pypi_name}
|
|
|
|
Summary: Javascript Minifier
|
|
|
|
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
|
|
|
|
|
%description -n python2-%{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 -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
|
|
|
|
%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
|
|
|
|
%py2_build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
# Must do the subpackages' install first because the scripts in /usr/bin are
|
|
|
|
# overwritten with every setup.py install.
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
%py2_install
|
|
|
|
|
|
|
|
|
|
|
|
# remove upstream developer documentation
|
|
|
|
rm -r %{buildroot}/%{_docdir}/%{pypi_name}/
|
|
|
|
|
|
|
|
%files -n python2-%{pypi_name}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python2_sitearch}/%{pypi_name}.py
|
|
|
|
%{python2_sitearch}/%{pypi_name}.py[oc]
|
|
|
|
%{python2_sitearch}/_rjsmin.so
|
|
|
|
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python3_sitearch}/%{pypi_name}.py
|
|
|
|
%{python3_sitearch}/_%{pypi_name}.cpython*
|
|
|
|
%{python3_sitearch}/__pycache__/rjsmin.*
|
|
|
|
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
%files docs
|
|
|
|
%doc README.rst docs
|
|
|
|
|
|
|
|
%changelog
|
2018-06-19 09:17:57 +00:00
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-11
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-02-21 07:03:47 +00:00
|
|
|
* Wed Feb 21 2018 Matthias Runge <mrunge@redhat.com> - 1.0.12-10
|
|
|
|
- add gcc build requirement
|
|
|
|
|
2018-02-09 10:36:24 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-30 00:03:03 +00:00
|
|
|
* Tue Jan 30 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.12-8
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2017-08-03 06:58:01 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 11:42:39 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 10:21:45 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-19 17:20:38 +00:00
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.12-4
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-07-19 11:30:48 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.12-3
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-03-16 08:13:19 +00:00
|
|
|
* Tue Mar 15 2016 Matthias Runge <mrunge@redhat.com> - 1.0.12-2
|
|
|
|
- split out -docs package, clean up description (rhbz#1312350)
|
|
|
|
|
|
|
|
* Fri Feb 26 2016 Matthias Runge <mrunge@redhat.com> - 1.0.12-1
|
|
|
|
- Initial package. (rhbz#1312350)
|