]>
Commit | Line | Data |
---|---|---|
d4e9f96a JP |
1 | %define module tasklib |
2 | Summary: Python Task Warrior library | |
3 | Name: python3-%{module} | |
4 | Version: 2.3.0 | |
6cb9cedf | 5 | Release: 5 |
d4e9f96a JP |
6 | License: BSD |
7 | Group: Libraries/Python | |
8 | Source0: https://pypi.python.org/packages/source/t/tasklib/%{module}-%{version}.tar.gz | |
9 | # Source0-md5: 4e2523982b161214551286fdbcc7fda0 | |
10 | URL: https://github.com/robgolding/tasklib | |
11 | BuildRequires: python3 >= 1:3.5 | |
12 | BuildRequires: python3-setuptools | |
13 | BuildRequires: rpm-pythonprov | |
14 | BuildRequires: rpmbuild(macros) >= 1.710 | |
15 | Requires: python3-modules >= 1:3.5 | |
16 | Requires: taskwarrior | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | tasklib is a Python library for interacting with taskwarrior | |
22 | databases, using a queryset API similar to that of Django’s ORM. | |
23 | ||
24 | %prep | |
25 | %setup -q -n %{module}-%{version} | |
26 | ||
27 | %build | |
28 | %py3_build | |
29 | ||
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | ||
33 | %py3_install | |
34 | ||
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %files -n python3-%{module} | |
39 | %defattr(644,root,root,755) | |
40 | %dir %{py3_sitescriptdir}/%{module} | |
41 | %{py3_sitescriptdir}/%{module}/*.py | |
42 | %{py3_sitescriptdir}/%{module}/__pycache__ | |
43 | %{py3_sitescriptdir}/%{module}-%{version}-py3*.egg-info |