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