]>
Commit | Line | Data |
---|---|---|
5b67e087 ER |
1 | Summary: Tools for setting up a Fedora maintainer environment |
2 | Name: fedora-packager | |
897bd78a ER |
3 | Version: 0.5.1.4 |
4 | Release: 0.1 | |
5b67e087 ER |
5 | License: GPL v2+ |
6 | Group: X11/Applications | |
7 | URL: https://fedorahosted.org/fedora-packager | |
8 | Source0: https://fedorahosted.org/releases/f/e/fedora-packager/%{name}-%{version}.tar.bz2 | |
897bd78a | 9 | # Source0-md5: 33f5944d3468413058b035dedac4588f |
5b67e087 | 10 | BuildRequires: python-devel |
32c0c039 | 11 | BuildRequires: python-modules |
12 | BuildRequires: rpm-pythonprov | |
5b67e087 ER |
13 | BuildRequires: rpmbuild(macros) >= 1.219 |
14 | #Requires: bodhi-client | |
15 | Requires: curl | |
32c0c039 | 16 | Requires: koji |
5b67e087 ER |
17 | #Requires: mock |
18 | Requires: openssh-clients | |
19 | Requires: python-offtrac | |
20 | Requires: python-pyOpenSSL | |
21 | Requires: python-pycurl | |
22 | #Requires: redhat-rpm-config | |
23 | Requires: rpm-build | |
24 | #Requires: rpmdevtools | |
25 | #Requires: rpmlint | |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | Set of utilities useful for a Fedora packager in setting up their | |
31 | environment. | |
32 | ||
33 | %package -n fedpkg | |
34 | Summary: Fedora utility for working with dist-git | |
35 | Group: Applications/Databases | |
36 | Requires: curl | |
37 | Requires: fedora-packager = %{version}-%{release} | |
38 | Requires: python-argparse | |
39 | Requires: python-git >= 0.2.0 | |
40 | Requires: python-kitchen | |
41 | ||
42 | %description -n fedpkg | |
43 | Provides the fedpkg command for working with dist-git. | |
44 | ||
897bd78a ER |
45 | %package -n bash-completion-fedpkg |
46 | Summary: bash-completion for fedpkg | |
47 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla fedpkg | |
48 | Group: Applications/Shells | |
897bd78a | 49 | Requires: bash-completion |
32c0c039 | 50 | Requires: fedpkg = %{version}-%{release} |
897bd78a ER |
51 | |
52 | %description -n bash-completion-fedpkg | |
53 | bash-completion for fedpkg. | |
54 | ||
55 | %description -n bash-completion-fedpkg -l pl.UTF-8 | |
56 | bashowe uzupełnianie nazw dla fedpkg. | |
57 | ||
5b67e087 ER |
58 | %prep |
59 | %setup -q | |
60 | ||
61 | %build | |
62 | %configure | |
63 | %{__make} | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | %{__make} install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
70 | %py_postclean | |
71 | ||
897bd78a ER |
72 | mv $RPM_BUILD_ROOT/etc/bash_completion.d/fedpkg{.bash,} |
73 | ||
5b67e087 ER |
74 | %clean |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc TODO AUTHORS ChangeLog | |
80 | %attr(755,root,root) %{_bindir}/* | |
81 | %exclude %{_bindir}/fedpkg | |
82 | %{py_sitescriptdir}/fedora_cert | |
83 | ||
84 | %files -n fedpkg | |
85 | %defattr(644,root,root,755) | |
5b67e087 ER |
86 | %attr(755,root,root) %{_bindir}/fedpkg |
87 | %{py_sitescriptdir}/pyfedpkg | |
897bd78a ER |
88 | |
89 | %files -n bash-completion-fedpkg | |
90 | %defattr(644,root,root,755) | |
91 | /etc/bash_completion.d/* |