python-jsmin/python-jsmin.spec

59 lines
1.5 KiB
RPMSpec
Raw Permalink Normal View History

2018-10-31 18:34:21 +03:00
%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