]>
Commit | Line | Data |
---|---|---|
28188df2 | 1 | # TODO: Add locale files |
28188df2 | 2 | %define ver 0.95 |
85078637 | 3 | %define minor 0 |
909e8313 MK |
4 | Summary: Plugin for Bazaar-NG (bzr) |
5 | Summary(pl.UTF-8): Wtyczka do Bazaar-NG (bzr) | |
6 | Name: bzr-gtk | |
85078637 | 7 | Version: %{ver}.%{minor} |
b060332c | 8 | Release: 6 |
70686cd4 | 9 | License: GPL v2+ |
aa7c1298 | 10 | Group: Development/Version Control |
d3062591 | 11 | # Source0: https://launchpad.net/bzr-gtk/%{ver}/%{version}/+download/bzr-gtk-%{version}.tar.gz |
909e8313 | 12 | Source0: http://samba.org/~jelmer/bzr/%{name}-%{version}.tar.gz |
28188df2 | 13 | # Source0-md5: 00aedce625672abca13d2d962b047ac0 |
9901a0d5 | 14 | Patch0: %{name}-dbus_detection_fix.patch |
aa7c1298 | 15 | URL: http://bazaar-vcs.org/bzr-gtk |
e55c8921 | 16 | BuildRequires: gettext-devel |
17 | BuildRequires: pkgconfig | |
d3062591 | 18 | BuildRequires: python >= 1:2.4 |
e55c8921 | 19 | BuildRequires: python-devel |
eb1b25f3 | 20 | BuildRequires: rpm-pythonprov |
aa7c1298 | 21 | BuildRequires: rpmbuild(macros) >= 1.219 |
70686cd4 JB |
22 | Requires(post,postun): desktop-file-utils |
23 | %pyrequires_eq python | |
85078637 | 24 | Requires: bzr >= %{ver} |
eb1b25f3 JB |
25 | Requires: python-pygtk-glade >= 2:2.10 |
26 | Requires: python-pygtk-gtk >= 2:2.10 | |
d3062591 | 27 | Suggests: python-gnome |
909e8313 | 28 | Suggests: python-pycairo |
aa7c1298 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
909e8313 | 32 | bzr-gtk is a plugin for Bazaar-NG (bzr) that aims to provide GTK+ |
aa7c1298 | 33 | interfaces to most Bazaar operations. Provided commands are: |
34 | - gcommit | |
35 | - gdiff | |
36 | - visualise | |
37 | - gannotate | |
38 | - gbranch | |
909e8313 | 39 | - olive-gtk (complete GUI branch manager) |
aa7c1298 | 40 | |
6902538c JR |
41 | %description -l pl.UTF-8 |
42 | bzr-gtk jest wtyczką dla Bazaar-NG (bzr), która ma na celu | |
43 | dostarczenie graficznego interfejsu GTK+ dla większości poleceń | |
44 | Bazaar. Dostępnymi poleceniami są: | |
aa7c1298 | 45 | - gcommit |
46 | - gdiff | |
47 | - visualise | |
48 | - gannotate | |
49 | - gbranch | |
909e8313 | 50 | - olive-gtk (kompletny graficzny zarządca gałęzi bzr) |
aa7c1298 | 51 | |
52 | %prep | |
909e8313 | 53 | %setup -q |
9901a0d5 MK |
54 | %patch0 -p1 |
55 | ||
aa7c1298 | 56 | %build |
57 | %{__python} setup.py build | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
eb1b25f3 | 61 | |
aa7c1298 | 62 | %{__python} setup.py install \ |
975d0e21 | 63 | --install-purelib %{py_sitedir} \ |
aa7c1298 | 64 | --optimize=2 \ |
65 | --root=$RPM_BUILD_ROOT | |
66 | ||
67 | %py_postclean | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post | |
73 | %update_desktop_database_post | |
74 | %banner %{name} -e << EOF | |
75 | For full functionality, you need to install: | |
76 | - python-pycairo (for graphs in the visualisation tool) | |
77 | - python-gnome (for Nautilus integration) | |
78 | EOF | |
79 | ||
aa7c1298 | 80 | %postun |
81 | %update_desktop_database_postun | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
70686cd4 JB |
85 | %doc AUTHORS NEWS README TODO |
86 | %attr(755,root,root) %{_bindir}/olive-gtk | |
28188df2 MK |
87 | %attr(755,root,root) %{_bindir}/bzr-handle-patch |
88 | %attr(755,root,root) %{_bindir}/bzr-notify | |
70686cd4 | 89 | %{py_sitedir}/bzrlib/plugins/gtk |
90598b7b | 90 | %{_datadir}/bzr-gtk |
eb1b25f3 | 91 | %{_datadir}/olive |
70686cd4 JB |
92 | %{_desktopdir}/bazaar-properties.desktop |
93 | %{_desktopdir}/bzr-notify.desktop | |
d3062591 | 94 | %{_desktopdir}/bzr-handle-patch.desktop |
70686cd4 | 95 | %{_desktopdir}/olive-gtk.desktop |
90598b7b JB |
96 | %{_pixmapsdir}/olive-gtk.png |
97 | %{_pixmapsdir}/bzr-icon-64.png | |
98 | %{_iconsdir}/hicolor/scalable/emblems | |
d3062591 | 99 | %{_datadir}/application-registry/bzr-gtk.applications |