%define scl rh-python36 %define _unpackaged_files_terminate_build 0 %{?scl:%scl_package %{name}} %{!?scl:%global pkg_name %{name}} %define name jaraco.collections %define version 2.1 %define unmangled_version 2.1 %define unmangled_version 2.1 %define release 1 Summary: jaraco.collections %{?scl:Requires: %{scl}-runtime} %{?scl:BuildRequires: %{scl}-runtime} Name: %{?scl_prefix}%{pkg_name} Version: %{version} Release: %{release} Source0: jaraco.collections-%{unmangled_version}.tar.gz License: UNKNOWN Group: Development/Libraries BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Vendor: Jason R. Coombs Packager: Martin Juhl Url: https://github.com/jaraco/jaraco.collections %description .. image:: https://img.shields.io/pypi/v/jaraco.collections.svg :target: https://pypi.io/project/jaraco.collections .. image:: https://img.shields.io/pypi/pyversions/jaraco.collections.svg .. image:: https://img.shields.io/travis/jaraco/jaraco.collections/master.svg :target: https://travis-ci.org/jaraco/jaraco.collections .. .. image:: https://img.shields.io/appveyor/ci/jaraco/skeleton/master.svg .. :target: https://ci.appveyor.com/project/jaraco/skeleton/branch/master .. image:: https://readthedocs.org/projects/jaracocollections/badge/?version=latest :target: https://jaracocollections.readthedocs.io/en/latest/?badge=latest Models and classes to supplement the stdlib 'collections' module. RangeMap -------- A dictionary-like object that maps a range of values to a given value. %prep %{?scl:scl enable %{scl} - << \EOF} set -ex %setup -n jaraco.collections-%{unmangled_version} -n jaraco.collections-%{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} cat INSTALLED_FILES | grep -v "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/jaraco/__pycache__/__init__" |grep -v "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/jaraco/__init__.py" > INSTALLED_FILES_WITHOUT_PYCACHE %clean %{?scl:scl enable %{scl} - << \EOF} set -ex rm -rf $RPM_BUILD_ROOT %{?scl:EOF} %files -f INSTALLED_FILES_WITHOUT_PYCACHE %defattr(-,root,root)