From 1f35836d3803f53cf31357e5f34e133a24594562 Mon Sep 17 00:00:00 2001 From: User Date: Wed, 31 Oct 2018 18:34:21 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ python-jsmin.spec | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .abf.yml create mode 100644 python-jsmin.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..b16065c --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + jsmin-2.2.2.tar.gz: f5afe991f10fdcf8703fc9c6d4819f87b373ef20 diff --git a/python-jsmin.spec b/python-jsmin.spec new file mode 100644 index 0000000..71dfb6a --- /dev/null +++ b/python-jsmin.spec @@ -0,0 +1,58 @@ +%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