]>
Commit | Line | Data |
---|---|---|
06d5ad30 JR |
1 | # |
2 | # Conditional build: | |
acf629c8 | 3 | %bcond_with tests # do not perform "make test" |
06d5ad30 JR |
4 | |
5 | %define module PyGitUp | |
6 | Summary: git-up(1) -- fetch and rebase all locally-tracked remote branches | |
7 | Name: python-%{module} | |
7f13615e JR |
8 | Version: 1.4.6 |
9 | Release: 1 | |
06d5ad30 JR |
10 | License: BSD |
11 | Group: Libraries/Python | |
12 | Source0: https://github.com/msiemens/PyGitUp/archive/v%{version}.tar.gz?/%{module}-v%{version}.tar.gz | |
7f13615e | 13 | # Source0-md5: 0ee651ee4625e0089284735c99cbf558 |
615730f1 | 14 | URL: https://github.com/msiemens/PyGitUp |
06d5ad30 JR |
15 | BuildRequires: rpm-pythonprov |
16 | # if py_postclean is used | |
9c551485 | 17 | BuildRequires: rpmbuild(macros) >= 1.710 |
7f13615e | 18 | BuildRequires: python-git >= 2.1.8 |
5d7881fc | 19 | BuildRequires: python-async |
7f13615e JR |
20 | BuildRequires: python-colorama >= 0.3.7 |
21 | BuildRequires: python-click >= 6.0.0 | |
06d5ad30 | 22 | BuildRequires: python-distribute |
5d7881fc JR |
23 | BuildRequires: python-gitdb |
24 | BuildRequires: python-nose | |
7f13615e | 25 | BuildRequires: python-six >= 1.10.0 |
5d7881fc JR |
26 | BuildRequires: python-smmap |
27 | BuildRequires: python-termcolor >= 1.1.0 | |
7f13615e | 28 | Requires: python-git >= 2.1.8 |
5d7881fc | 29 | Requires: python-async |
7f13615e JR |
30 | Requires: python-colorama >= 0.3.7 |
31 | Requires: python-click >= 6.0.0 | |
5d7881fc | 32 | Requires: python-gitdb |
06d5ad30 | 33 | Requires: python-modules |
5d7881fc JR |
34 | Requires: python-nose |
35 | Requires: python-smmap | |
7f13615e | 36 | Requires: python-six >= 1.10.0 |
5d7881fc | 37 | Requires: python-termcolor >= 1.1.0 |
06d5ad30 JR |
38 | BuildArch: noarch |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
5d7881fc | 42 | git-up(1) -- fetch and rebase all locally-tracked remote branches. |
06d5ad30 JR |
43 | |
44 | %prep | |
45 | %setup -q -n %{module}-%{version} | |
46 | ||
47 | %build | |
298e403c | 48 | %py_build %{?with_tests:test} |
06d5ad30 JR |
49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
298e403c | 53 | %py_install |
06d5ad30 JR |
54 | |
55 | %py_postclean | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
a0b5bf5d JR |
62 | %doc README.rst |
63 | %attr(755,root,root) %{_bindir}/git-up | |
a0b5bf5d JR |
64 | %dir %{py_sitescriptdir}/%{module} |
65 | %{py_sitescriptdir}/%{module}/*.py[co] | |
7f13615e JR |
66 | %dir %{py_sitescriptdir}/%{module}/tests |
67 | %{py_sitescriptdir}/%{module}/tests/*.py[co] | |
a0b5bf5d | 68 | %{py_sitescriptdir}/%{module}/check-bundler.rb |
06d5ad30 | 69 | %if "%{py_ver}" > "2.4" |
a0b5bf5d | 70 | %{py_sitescriptdir}/git_up-*.egg-info |
06d5ad30 | 71 | %endif |