Name: python-tinycss Summary: CSS parser for Python Version: 0.3 Release: 27%{?dist} License: BSD URL: http://pythonhosted.org/tinycss/ Source0: https://github.com/SimonSapin/tinycss/archive/v%{version}.tar.gz BuildRequires: dos2unix BuildRequires: gcc BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-Cython # Do not check .so files in the python_sitelib directory # or any files in the application's directory for provides %global __provides_exclude_from ^(%{python_sitearch}|%{python3_sitearch})/.*\\.so$ %global _description\ tinycss is a complete yet simple CSS parser for Python. It supports\ the full syntax and error handling for CSS 2.1 as well as some CSS 3\ modules. It is designed to be easy to extend for new CSS modules and\ syntax, and integrates well with cssselect for Selectors 3 support. %description %_description %package -n python3-tinycss Summary: CSS parser for Python %{?python_provide:%python_provide python3-tinycss} %description -n python3-tinycss tinycss is a complete yet simple CSS parser for Python. It supports the full syntax and error handling for CSS 2.1 as well as some CSS 3 modules. It is designed to be easy to extend for new CSS modules and syntax, and integrates well with cssselect for Selectors 3 support. %prep %setup -q -n tinycss-%{version} dos2unix LICENSE find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|' # do not continue if the extension module cannot be built sed -i 's/build_ext=ve_build_ext/build_ext=build_ext/' setup.py %build %py3_build %install %py3_install %files -n python3-tinycss %license LICENSE %doc README.rst %{python3_sitearch}/tinycss/ %{python3_sitearch}/tinycss-%{version}-py%{python3_version}.egg-info/ %changelog * Tue May 26 2020 Miro Hrončok - 0.3-27 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.3-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.3-25 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.3-24 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.3-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.3-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Dec 27 2018 Miro Hrončok - 0.3-21 - Subpackage python2-tinycss has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 0.3-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.3-19 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Iryna Shcherbina - 0.3-18 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.3-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.3-16 - Python 2 binary package renamed to python2-tinycss See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Aug 03 2017 Fedora Release Engineering - 0.3-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.3-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.3-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.3-12 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.3-11 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 0.3-9 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Aug 26 2014 Eric Smith 0.3-7 - No Python 3 in EL7. * Sun Aug 17 2014 Fedora Release Engineering - 0.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Kalev Lember - 0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Sun Aug 04 2013 Fedora Release Engineering - 0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jul 23 2013 Eric Smith 0.3-2 - Added Python 3 support. * Sat Jul 20 2013 Eric Smith 0.3-1 - initial version