From a5596bd805ad253308f920dbe31acf9df0b33253 Mon Sep 17 00:00:00 2001 From: tuibuilder_pel7x64builder0 Date: Sun, 7 Feb 2021 11:55:26 +0100 Subject: [PATCH] python-multidict package creation Signed-off-by: tuibuilder_pel7x64builder0 --- SPECS/python-multidict.spec | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 SPECS/python-multidict.spec diff --git a/SPECS/python-multidict.spec b/SPECS/python-multidict.spec new file mode 100644 index 0000000..cab6d25 --- /dev/null +++ b/SPECS/python-multidict.spec @@ -0,0 +1,47 @@ +%global modname multidict +Name: python-%{modname} +Version: 5.1.0 +Release: 1%{?dist} +Summary: MultiDict implementation +License: ASL 2.0 +URL: https://github.com/aio-libs/multidict +Source0: %{url}/archive/v%{version}%{?rctag:%{rctag}}/%{modname}-%{version}%{?rctag:%{rctag}}.tar.gz +BuildRequires: gcc + + +%global _description \ +Multidicts are useful for working with HTTP headers, URL query args etc. +%description %{_description} + + +%package -n python3-%{modname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-Cython +%{?python_provide:%python_provide python3-%{modname}} +%description -n python3-%{modname} %{_description} + + +%prep +%autosetup -n %{modname}-%{version}%{?rctag:%{rctag}} +sed -i -e '/addopts/d' setup.cfg + + +%build +%{__python3} setup.py build + + +%install +%{__python3} setup.py install --optimize 2 --root %{buildroot} +rm -vf %{buildroot}%{python3_sitearch}/%{modname}/*.{c,pyx} + + +%files -n python3-%{modname} +%license LICENSE +%doc README.rst +%{python3_sitearch}/%{modname}-*.egg-info/ +%{python3_sitearch}/%{modname}/ + + +%changelog