diff --git a/python-uri-template.spec b/python-uri-template.spec new file mode 100644 index 0000000..8fddbc3 --- /dev/null +++ b/python-uri-template.spec @@ -0,0 +1,64 @@ +%global _empty_manifest_terminate_build 0 +Name: python-uri-template +Version: 1.3.0 +Release: 1 +Summary: RFC 6570 URI Template Processor. +License: MIT +URL: https://gitlab.linss.com/open-source/python/uri-template +Source0: https://files.pythonhosted.org/packages/31/c7/0336f2bd0bcbada6ccef7aaa25e443c118a704f828a0620c6fa0207c1b64/uri-template-1.3.0.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling + +%description +RFC 6570 URI Template Processor. + + +%package -n python3-uri-template +Summary: RFC 6570 URI Template Processor. +Provides: python-uri-template +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-hatchling +%description -n python3-uri-template +RFC 6570 URI Template Processor. + +%package help +Summary: Development documents and examples for uri-template +Provides: python3-uri-template-doc + +%description help +Development documents and examples for uri-template. + +%prep +%autosetup -n uri-template-%{version} + +%build +%pyproject_build + +%install +%pyproject_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi + +%files -n python3-uri-template +%doc README.md +%license LICENSE +%{python3_sitelib}/uri_template +%{python3_sitelib}/uri_template*.dist-info/ + + +%files help +%{_docdir}/* + +%changelog +* Wed Nov 8 2023 Dongxing Wang - 1.3.0-1 +- Init package diff --git a/uri-template-1.3.0.tar.gz b/uri-template-1.3.0.tar.gz new file mode 100644 index 0000000..ab50279 Binary files /dev/null and b/uri-template-1.3.0.tar.gz differ