%define scl rh-python36 %{?scl:%scl_package %{name}} %{!?scl:%global pkg_name %{name}} %define name XStatic-jQuery %define version 3.3.1.1 %define unmangled_version 3.3.1.1 %define unmangled_version 3.3.1.1 %define release 1 Summary: jQuery 3.3.1 (XStatic packaging standard) %{?scl:Requires: %{scl}-runtime} %{?scl:BuildRequires: %{scl}-runtime} Name: %{?scl_prefix}XStatic-jQuery Version: %{version} Release: %{release} Source0: XStatic-jQuery-%{unmangled_version}.tar.gz License: (same as jQuery) Group: Development/Libraries BuildRoot: %{_tmppath}/XStatic-jQuery-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Vendor: Thomas Waldmann Packager: Martin Juhl Url: https://jquery.com/ %description XStatic-jQuery -------------- jQuery javascript library packaged for setuptools (easy_install) / pip. This package is intended to be used by **any** project that needs these files. It intentionally does **not** provide any extra code except some metadata **nor** has any extra requirements. You MAY use some minimal support code from the XStatic base package, if you like. You can find more info about the xstatic packaging way in the package `XStatic`. %prep %{?scl:scl enable %{scl} - << \EOF} set -ex %setup -n XStatic-jQuery-%{unmangled_version} -n XStatic-jQuery-%{unmangled_version} %{?scl:EOF} %build %{?scl:scl enable %{scl} - << \EOF} set -ex python3 setup.py build %{?scl:EOF} %install %{?scl:scl enable %{scl} - << \EOF} set -ex python3 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES %{?scl:EOF} %clean %{?scl:scl enable %{scl} - << \EOF} set -ex rm -rf $RPM_BUILD_ROOT %{?scl:EOF} %files -f INSTALLED_FILES %defattr(-,root,root)