]>
Commit | Line | Data |
---|---|---|
d3062591 MK |
1 | # TODO: |
2 | # - There is no 0.94 version packages although it is tagged in repo | |
3 | # so I made my own binary file and added one simple fix. | |
4 | # Hope regular binary files will be available soon | |
5 | # - Fix locale files | |
4bd21258 | 6 | Summary: Plugin for Bazaar-NG providing GUI to most operations |
75afe277 | 7 | Summary(pl.UTF-8): Wtyczka do Bazaar-NG udostępniająca interfejs graficzny dla większości operacji |
aa7c1298 | 8 | Name: bzr-gtk |
d3062591 | 9 | %define ver 0.94 |
85078637 MK |
10 | %define minor 0 |
11 | Version: %{ver}.%{minor} | |
d3062591 | 12 | Release: 1 |
70686cd4 | 13 | License: GPL v2+ |
aa7c1298 | 14 | Group: Development/Version Control |
d3062591 MK |
15 | # Source0: https://launchpad.net/bzr-gtk/%{ver}/%{version}/+download/bzr-gtk-%{version}.tar.gz |
16 | Source0: http://beauty.ant.gliwice.pl/bugs/bzr-gtk/bzr-gtk-trunk-matkor-20080515.tbz2 | |
17 | # Source0-md5: 7448d27df65e0ca436558e143a8d69ae | |
aa7c1298 | 18 | URL: http://bazaar-vcs.org/bzr-gtk |
d3062591 | 19 | BuildRequires: python >= 1:2.4 |
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 MK |
27 | Suggests: python-pycairo |
28 | Suggests: python-gnome | |
aa7c1298 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
32 | bzr-gtk is a plugin for Bazaar-NG (bzr) that aims to provide GTK+ | |
33 | interfaces to most Bazaar operations. Provided commands are: | |
34 | - gcommit | |
35 | - gdiff | |
36 | - visualise | |
37 | - gannotate | |
38 | - gbranch | |
39 | ||
6902538c JR |
40 | %description -l pl.UTF-8 |
41 | bzr-gtk jest wtyczką dla Bazaar-NG (bzr), która ma na celu | |
42 | dostarczenie graficznego interfejsu GTK+ dla większości poleceń | |
43 | Bazaar. Dostępnymi poleceniami są: | |
aa7c1298 | 44 | - gcommit |
45 | - gdiff | |
46 | - visualise | |
47 | - gannotate | |
48 | - gbranch | |
49 | ||
50 | %prep | |
d3062591 | 51 | %setup -q -n bzr-gtk-trunk-matkor-20080515 |
aa7c1298 | 52 | |
53 | %build | |
54 | %{__python} setup.py build | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
eb1b25f3 | 58 | |
aa7c1298 | 59 | %{__python} setup.py install \ |
975d0e21 | 60 | --install-purelib %{py_sitedir} \ |
aa7c1298 | 61 | --optimize=2 \ |
62 | --root=$RPM_BUILD_ROOT | |
63 | ||
64 | %py_postclean | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %post | |
70 | %update_desktop_database_post | |
71 | %banner %{name} -e << EOF | |
72 | For full functionality, you need to install: | |
73 | - python-pycairo (for graphs in the visualisation tool) | |
74 | - python-gnome (for Nautilus integration) | |
75 | EOF | |
76 | ||
aa7c1298 | 77 | %postun |
78 | %update_desktop_database_postun | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
70686cd4 JB |
82 | %doc AUTHORS NEWS README TODO |
83 | %attr(755,root,root) %{_bindir}/olive-gtk | |
84 | %{py_sitedir}/bzrlib/plugins/gtk | |
eb1b25f3 | 85 | %{_datadir}/olive |
70686cd4 JB |
86 | %{_pixmapsdir}/olive-gtk.png |
87 | %{_desktopdir}/bazaar-properties.desktop | |
88 | %{_desktopdir}/bzr-notify.desktop | |
d3062591 | 89 | %{_desktopdir}/bzr-handle-patch.desktop |
70686cd4 | 90 | %{_desktopdir}/olive-gtk.desktop |
d3062591 MK |
91 | |
92 | %{_datadir}/application-registry/bzr-gtk.applications | |
93 | %{_datadir}/bzr-gtk/icons | |
94 | %{_datadir}/icons/hicolor/scalable/emblems/ | |
95 | %{_datadir}/pixmaps/bzr-icon-64.png |