/[packages]/cauldron/python-soco/current/SPECS/python-soco.spec
ViewVC logotype

Contents of /cauldron/python-soco/current/SPECS/python-soco.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2043574 - (show annotations) (download)
Fri Feb 23 13:42:00 2024 UTC (3 months ago) by papoteur
File size: 1675 byte(s)
- new version 0.30.2
1 %define ghname SoCo
2 %define srcname soco
3
4 Name: python-soco
5 Version: 0.30.2
6 Release: %mkrel 1
7 Summary: Python library to control Sonos speakers
8
9 Group: Development/Python
10 License: MIT
11 URL: https://python-soco.com
12 Source0: https://github.com/%{ghname}/%{ghname}/archive/refs/tags/v%{version}.tar.gz
13 BuildArch: noarch
14
15 BuildRequires: python%{python3_pkgversion}-devel
16 BuildRequires: python3-devel
17
18
19 #XXX: see https://src.fedoraproject.org/rpms/python-soco/blob/f34/f/python-soco.spec
20 #BuildRequires: python3-devel
21 #BuildRequires: python3dist(graphviz)
22 #BuildRequires: python3dist(pytest-cov)
23 #BuildRequires: python3dist(wheel)
24
25 %description
26 SoCo (Sonos Controller) is a Python project that allows you to programmatically
27 control Sonos speakers.
28
29 %package -n python%{python3_pkgversion}-%{srcname}
30 Summary: %{summary}
31 %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
32 Requires: python%{python3_pkgversion}-future
33
34 %description -n python%{python3_pkgversion}-%{srcname}
35 SoCo (Sonos Controller) is a Python project that allows you to programmatically
36 control Sonos speakers.
37
38 %prep
39 %autosetup -n %{ghname}-%{version}
40
41 rm -rf examples/webapp/.gitignore
42 sed -i -e '/^#!\//, 1d' {examples/plugins/socoplugins.py,examples/commandline/tunein.py}
43
44 %generate_buildrequires
45 %pyproject_buildrequires -t
46
47 %build
48 %pyproject_wheel
49
50 #PYTHONPATH=${PWD} sphinx-build-3 doc html
51 #rm -rf html/.{doctrees,buildinfo}
52
53 %install
54 %pyproject_install
55 %pyproject_save_files soco
56
57 %check
58 %tox
59
60 %files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files}
61 %license LICENSE.rst
62 %doc examples/ README.rst

  ViewVC Help
Powered by ViewVC 1.1.30