|
 |
5f898a1 |
%global srcname templated-dictionary
|
|
 |
5f898a1 |
%global python3_pkgversion 3
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
%if 0%{?rhel} == 7
|
|
 |
5f898a1 |
%global python3_pkgversion 36
|
|
 |
5f898a1 |
%endif
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
Name: python-%{srcname}
|
|
 |
50e356c |
Version: 1.2
|
|
 |
e12ba7c |
Release: 2%{?dist}
|
|
 |
5f898a1 |
Summary: Dictionary with Jinja2 expansion
|
|
 |
5f898a1 |
|
|
 |
50e356c |
License: GPL-2.0-or-later
|
|
 |
5f898a1 |
URL: https://github.com/xsuchy/templated-dictionary
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
# Source is created by:
|
|
 |
5f898a1 |
# git clone https://github.com/xsuchy/templated-dictionary && cd templated-dictionary
|
|
 |
5f898a1 |
# tito build --tgz --tag %%name-%%version-%%release
|
|
 |
5f898a1 |
Source0: %name-%version.tar.gz
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
BuildArch: noarch
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
 |
5f898a1 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
 |
5f898a1 |
Requires: python%{python3_pkgversion}-jinja2
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
%global _description\
|
|
 |
5f898a1 |
Dictionary where __getitem__() is run through Jinja2 template.
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
%description %_description
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
%package -n python3-%{srcname}
|
|
 |
5f898a1 |
Summary: %{summary}
|
|
 |
5f898a1 |
%{?py_provides:%py_provides python3-%{srcname}}
|
|
 |
5f898a1 |
%description -n python3-%{srcname} %_description
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
%prep
|
|
 |
5f898a1 |
%setup -q
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
%build
|
|
 |
5f898a1 |
version="%version" %py3_build
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
%install
|
|
 |
5f898a1 |
version=%version %py3_install
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
%files -n python3-%{srcname}
|
|
 |
5f898a1 |
%license LICENSE
|
|
 |
5f898a1 |
%{python3_sitelib}/templated_dictionary-*.egg-info/
|
|
 |
5f898a1 |
%{python3_sitelib}/templated_dictionary/
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
%changelog
|
|
 |
e12ba7c |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
|
|
 |
e12ba7c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
 |
e12ba7c |
|
|
 |
50e356c |
* Wed Nov 30 2022 Miroslav Suchý <msuchy@redhat.com> 1.2-1
|
|
 |
50e356c |
- use spdx license
|
|
 |
50e356c |
|
|
 |
20498b2 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-7
|
|
 |
20498b2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
 |
20498b2 |
|
|
 |
351a40e |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.1-6
|
|
 |
351a40e |
- Rebuilt for Python 3.11
|
|
 |
351a40e |
|
|
 |
dc8af06 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-5
|
|
 |
dc8af06 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
 |
dc8af06 |
|
|
 |
8001926 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-4
|
|
 |
8001926 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
 |
8001926 |
|
|
 |
1b51583 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1-3
|
|
 |
1b51583 |
- Rebuilt for Python 3.10
|
|
 |
1b51583 |
|
|
 |
f8042bd |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
|
|
 |
f8042bd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
f8042bd |
|
|
 |
5f898a1 |
* Wed Dec 09 2020 Miroslav Suchý <msuchy@redhat.com> 1.1-1
|
|
 |
5f898a1 |
- require python3- variants and more specifis files section
|
|
 |
5f898a1 |
- remove python2 support
|
|
 |
5f898a1 |
|
|
 |
5f898a1 |
* Wed Nov 18 2020 Miroslav Suchý <msuchy@redhat.com> 1.0-1
|
|
 |
5f898a1 |
- new package
|