From 151aa4b35be3e23bcdee95fd48286d07f0ec8744 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Fri, 5 Jan 2024 16:39:59 +0100 Subject: [PATCH] package created using the webbuild interface [release 3.4.0.3-1mamba;Sat Jan 23 2016] --- README.md | 2 ++ python-singledispatch.spec | 44 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 python-singledispatch.spec diff --git a/README.md b/README.md index 61b18fd..d9ec996 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-singledispatch +This library brings functools.singledispatch from Python 3.4 to Python 2.6. + diff --git a/python-singledispatch.spec b/python-singledispatch.spec new file mode 100644 index 0000000..d8ecfd9 --- /dev/null +++ b/python-singledispatch.spec @@ -0,0 +1,44 @@ +Name: python-singledispatch +Version: 3.4.0.3 +Release: 1mamba +Summary: This library brings functools.singledispatch from Python 3.4 to Python 2.6 +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: https://pypi.python.org/pypi/singledispatch +Source: https://pypi.python.org/packages/source/s/singledispatch/singledispatch-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +%{summary}. + +%prep +%setup -q -n singledispatch-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "s,.*/man/.*,&.gz," %{name}.filelist + +%files -f %{name}.filelist +%defattr(-,root,root) +%doc README.rst + +%changelog +* Sat Jan 23 2016 Davide Madrisan 3.4.0.3-1mamba +- package created using the webbuild interface