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