%global srcname plaster %global sum Application configuration settings abstraction layer %global desc plaster is a loader interface around multiple \ configuration file formats. It exists to define a common API for \ applications to use when they wish to load configuration. The library \ itself does not aim to handle anything except a basic API that \ applications may use to find and load configuration settings. Any \ specific constraints should be implemented in a loader which can be \ registered via an entry point. Name: python-%{srcname} Version: 1.0 Release: 6%{?dist} BuildArch: noarch License: MIT Summary: %{sum} URL: https://github.com/Pylons/%{srcname} Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildRequires: make BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-setuptools BuildRequires: python3-sphinx %description %{desc} %package doc Summary: Documentation for %{name} %description doc Contains the documentation for %{name}. %package -n python3-%{srcname} Summary: %{sum} Requires: python3-setuptools %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{desc} %prep %autosetup -n %{srcname}-%{version} # The plaster docs upstream only build if plaster is installed. Since we are building plaster docs # from a source checkout, let's insert plaster into the path. sed -i "s:import plaster:sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'src'))\nimport plaster:" docs/conf.py # Related to the above, upstream plaster gets the version for the docs by using pkg_resources which # can only work if plaster is installed. Let's just substitute the version in since we know what it # is. sed -i "s/version = pkg_resources.*/version = '%{version}'/" docs/conf.py # Upstream docs use pylons_sphinx_themes, which isn't packaged for Fedora yet. Let's just convert it # to use the standard sphinx theme for now. sed -i "/import pylons_sphinx_themes/d" docs/conf.py sed -i "/html_theme_path =.*/d" docs/conf.py sed -i "/html_theme =.*/d" docs/conf.py sed -i "/.*github_url.*/d" docs/conf.py %build make %{?_smp_mflags} -C docs html rm -rf docs/_build/html/.buildinfo %py3_build %install %py3_install %check PYTHONPATH="./src" py.test-3 %files doc %license LICENSE.txt %doc docs/_build/html %doc CHANGES.rst %doc README.rst %files -n python3-%{srcname} %license LICENSE.txt %doc README.rst %{python3_sitelib}/%{srcname} %{python3_sitelib}/*.egg-info %changelog * Fri Jul 22 2022 Fedora Release Engineering - 1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.0-5 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 03 2021 Python Maint - 1.0-2 - Rebuilt for Python 3.10 * Sat May 22 2021 Kevin Fenzi - 1.0-1 - Upgrade to 1.0. Fixes rhbz#1505131 * Wed Jan 27 2021 Fedora Release Engineering - 0.5-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.5-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat May 23 2020 Miro Hrončok - 0.5-11 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Sep 09 2019 Miro Hrončok - 0.5-9 - Subpackage python2-plaster has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Fri Aug 16 2019 Miro Hrončok - 0.5-8 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Jun 17 2018 Miro Hrončok - 0.5-4 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jul 03 2017 Randy Barlow - 0.5-1 - Initial release.