]>
Commit | Line | Data |
---|---|---|
599db6e2 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # do not perform "make test" | |
4 | ||
5 | Summary: Sync github, bitbucket, and trac issues with taskwarrior | |
6 | Name: bugwarrior | |
7 | Version: 1.0.2 | |
8 | Release: 0.1 | |
9 | License: GPL v3+ | |
10 | Group: Applications/Databases | |
11 | Source0: http://pypi.python.org/packages/source/b/bugwarrior/%{name}-%{version}.tar.gz | |
12 | # Source0-md5: 09c93f86a27ffc092e69b46889a3bf50 | |
13 | URL: http://pypi.python.org/pypi/bugwarrior | |
14 | BuildRequires: rpm-pythonprov | |
aedabb0d | 15 | BuildRequires: rpmbuild(macros) >= 1.710 |
599db6e2 ER |
16 | %if %{with tests} |
17 | BuildRequires: python-bitlyapi | |
18 | BuildRequires: python-bugzilla | |
19 | BuildRequires: python-click | |
20 | BuildRequires: python-dateutil | |
21 | BuildRequires: python-devel | |
22 | BuildRequires: python-dogpile-cache | |
23 | BuildRequires: python-jinja2 | |
24 | BuildRequires: python-keyring | |
25 | BuildRequires: python-lockfile | |
26 | BuildRequires: python-offtrac | |
27 | BuildRequires: python-pycurl | |
28 | BuildRequires: python-pytz | |
29 | BuildRequires: python-requests | |
30 | BuildRequires: python-setuptools | |
31 | BuildRequires: python-six | |
32 | BuildRequires: python-taskw | |
33 | BuildRequires: python-twiggy | |
34 | %endif | |
35 | Requires: python-bitlyapi | |
36 | Requires: python-bugzilla | |
37 | Requires: python-click | |
38 | Requires: python-dateutil | |
39 | Requires: python-dogpile-cache | |
40 | Requires: python-jinja2 | |
41 | Requires: python-keyring | |
42 | Requires: python-lockfile | |
43 | Requires: python-offtrac | |
44 | Requires: python-pycurl | |
45 | Requires: python-pytz | |
46 | Requires: python-requests | |
47 | Requires: python-setuptools | |
48 | Requires: python-six | |
49 | Requires: python-taskw | |
50 | Requires: python-twiggy | |
51 | BuildArch: noarch | |
52 | # See https://bugzilla.redhat.com/show_bug.cgi?id=1036078 | |
53 | #BuildRequires: python-jira | |
54 | #Requires: python-jira | |
55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
56 | ||
57 | %description | |
58 | bugwarrior is a command line utility for updating your local | |
59 | taskwarrior database from your forge issue trackers. | |
60 | ||
61 | It currently supports pulling issues from github, bitbucket, trac, | |
62 | bugzilla, megaplan, teamlab, redmine, and activecollab | |
63 | ||
64 | %prep | |
65 | %setup -q | |
66 | ||
67 | # Remove bundled egg-info in case it exists | |
68 | rm -r %{name}.egg-info | |
69 | ||
70 | %build | |
c13f2cbf | 71 | %py_build |
599db6e2 ER |
72 | |
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
c13f2cbf | 75 | %py_install |
599db6e2 ER |
76 | |
77 | %{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/README.rst | |
78 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/docs | |
79 | ||
80 | %py_postclean | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
87 | %doc bugwarrior/README.rst LICENSE.txt bugwarrior/docs | |
88 | %attr(755,root,root) %{_bindir}/bugwarrior-pull | |
89 | %attr(755,root,root) %{_bindir}/bugwarrior-vault | |
90 | %{py_sitescriptdir}/%{name} | |
91 | %{py_sitescriptdir}/bugwarrior-%{version}-py*.egg-info |