mirror of
https://abf.rosa.ru/djam/python-jsmin.git
synced 2025-02-23 08:52:49 +00:00
59 lines
1.5 KiB
RPMSpec
59 lines
1.5 KiB
RPMSpec
![]() |
%global srcname jsmin
|
||
|
|
||
|
Name: python-%{srcname}
|
||
|
Version: 2.2.2
|
||
|
Release: 1
|
||
|
Summary: Javascript minifier
|
||
|
License: MIT
|
||
|
Group: Development/Python
|
||
|
URL: https://pypi.python.org/pypi/%{srcname}
|
||
|
Source0: https://pypi.python.org/packages/source/j/%{srcname}/%{srcname}-%{version}.tar.gz
|
||
|
BuildArch: noarch
|
||
|
BuildRequires: python-devel
|
||
|
BuildRequires: python-setuptools
|
||
|
BuildRequires: python3-devel
|
||
|
BuildRequires: python3-setuptools
|
||
|
|
||
|
%description
|
||
|
Javascript minifier
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{srcname}-%{version}
|
||
|
|
||
|
|
||
|
%build
|
||
|
#{__python} setup.py build
|
||
|
|
||
|
%install
|
||
|
#{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||
|
#{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||
|
%{__python2} setup.py install --root $RPM_BUILD_ROOT
|
||
|
%{__python3} setup.py install --root $RPM_BUILD_ROOT
|
||
|
|
||
|
#-------------------------------------------------------------------------------
|
||
|
|
||
|
%package -n python2-%{srcname}
|
||
|
|
||
|
%description -n python2-%{srcname}
|
||
|
Javascript minifier library for python2
|
||
|
|
||
|
%files -n python2-%{srcname}
|
||
|
%doc README.rst LICENSE.txt
|
||
|
%{python2_sitelib}/%{srcname}
|
||
|
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
|
||
|
|
||
|
#-------------------------------------------------------------------------------
|
||
|
|
||
|
%package -n python3-%{srcname}
|
||
|
|
||
|
%description -n python3-%{srcname}
|
||
|
Javascript minifier library for python3
|
||
|
|
||
|
%files -n python3-%{srcname}
|
||
|
%doc README.rst LICENSE.txt
|
||
|
%{python3_sitelib}/%{srcname}
|
||
|
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
|
||
|
|
||
|
%changelog
|