]>
Commit | Line | Data |
---|---|---|
426924bc AM |
1 | # Conditional build: |
2 | %define module idasen | |
3 | Summary: Python API and CLI for the ikea IDÅSEN standing desk | |
4 | Name: python3-%{module} | |
5 | Version: 0.7.1 | |
ca102a4d | 6 | Release: 4 |
426924bc AM |
7 | License: MIT |
8 | Group: Libraries/Python | |
9 | Source0: https://pypi.debian.net/idasen/%{module}-%{version}.tar.gz | |
10 | # Source0-md5: 74b7e39d6b1e1c2e05223bccf77955dc | |
11 | URL: https://github.com/newAM/idasen | |
12 | BuildRequires: python3-modules >= 1:3.2 | |
13 | BuildRequires: rpm-pythonprov | |
14 | BuildRequires: rpmbuild(macros) >= 1.714 | |
15 | Requires: python3-modules >= 1:3.2 | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Python API and CLI for the ikea IDÅSEN standing desk. | |
21 | ||
22 | %prep | |
23 | %setup -q -n %{module}-%{version} | |
24 | ||
25 | %build | |
26 | %py3_build | |
27 | ||
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | ||
31 | %py3_install | |
32 | ||
33 | %clean | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
36 | %files | |
37 | %defattr(644,root,root,755) | |
38 | %doc README.rst | |
39 | %attr(755,root,root) %{_bindir}/%{module} | |
40 | %dir %{py3_sitescriptdir}/%{module} | |
41 | %{py3_sitescriptdir}/%{module}/*.py | |
42 | %{py3_sitescriptdir}/%{module}/__pycache__ | |
43 | %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info |