summaryrefslogtreecommitdiff
path: root/python-templated-dictionary.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-28 03:14:44 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-28 03:14:44 +0000
commit8f01ceee7d44f45de7e38b2ae8e8e2b94321485a (patch)
tree7c7d3be892bf6ca79e3e27ebc4501f1cfb4a6c4a /python-templated-dictionary.spec
parenta9dffc8dec70042b1fae929da95ef910252db1a4 (diff)
automatic import of python-templated-dictionaryopeneuler20.03
Diffstat (limited to 'python-templated-dictionary.spec')
-rw-r--r--python-templated-dictionary.spec62
1 files changed, 62 insertions, 0 deletions
diff --git a/python-templated-dictionary.spec b/python-templated-dictionary.spec
new file mode 100644
index 0000000..a7c79cd
--- /dev/null
+++ b/python-templated-dictionary.spec
@@ -0,0 +1,62 @@
+%global srcname templated-dictionary
+%global python3_pkgversion 3
+
+%if 0%{?rhel} == 7
+%global python3_pkgversion 36
+%endif
+
+Name: python-%{srcname}
+Version: 1.1
+Release: 1%{?dist}
+Summary: Dictionary with Jinja2 expansion
+
+License: GPLv2+
+URL: https://github.com/xsuchy/templated-dictionary
+
+# Source is created by:
+# git clone https://github.com/xsuchy/templated-dictionary && cd templated-dictionary
+# tito build --tgz --tag %%name-%%version-%%release
+Source0: %name-%version.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python%{python3_pkgversion}-devel
+BuildRequires: python%{python3_pkgversion}-setuptools
+Requires: python%{python3_pkgversion}-jinja2
+
+%global _description\
+Dictionary where __getitem__() is run through Jinja2 template.
+
+%description %_description
+
+
+%package -n python3-%{srcname}
+Summary: %{summary}
+%{?py_provides:%py_provides python3-%{srcname}}
+%description -n python3-%{srcname} %_description
+
+
+%prep
+%setup -q
+
+
+%build
+version="%version" %py3_build
+
+%install
+version=%version %py3_install
+
+
+%files -n python3-%{srcname}
+%license LICENSE
+%{python3_sitelib}/templated_dictionary-*.egg-info/
+%{python3_sitelib}/templated_dictionary/
+
+
+%changelog
+* Wed Dec 09 2020 Miroslav Suchý <msuchy@redhat.com> 1.1-1
+- require python3- variants and more specifis files section
+- remove python2 support
+
+* Wed Nov 18 2020 Miroslav Suchý <msuchy@redhat.com> 1.0-1
+- new package