4 %bcond_without tests # unit tests
6 %define module pythonosc
7 %define egg_name python_osc
8 %define pypi_name python-osc
9 Summary: Open Sound Control server and client implementations in pure Python
13 License: public domain
14 Group: Libraries/Python
15 Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
16 # Source0-md5: d2d72048be1c98c226e55a62e284b976
17 URL: https://github.com/attwad/python-osc
18 BuildRequires: python3-modules
19 BuildRequires: python3-setuptools
20 BuildRequires: rpm-pythonprov
21 BuildRequires: rpmbuild(macros) >= 1.714
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Open Sound Control server and client implementations in pure Python.
28 %package -n python3-osc
29 Summary: Open Sound Control server and client implementations in pure Python
30 Group: Libraries/Python
31 Requires: python3-modules
33 %description -n python3-osc
34 Open Sound Control server and client implementations in pure Python.
37 %setup -q -n %{pypi_name}-%{version}
40 %py3_build %{?with_tests:test}
43 rm -rf $RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %doc LICENSE.txt README.rst
53 %{py3_sitescriptdir}/%{module}
54 %{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info