5a7f20ff161cfcf2ea0a047a0ba929d9a6453096
[packages/bzr-gtk.git] / bzr-gtk.spec
1 # TODO:  Add locale files
2 %define         ver     0.95
3 %define         minor   0
4 Summary:        Plugin for Bazaar-NG (bzr)
5 Summary(pl.UTF-8):      Wtyczka do Bazaar-NG (bzr)
6 Name:           bzr-gtk
7 Version:        %{ver}.%{minor}
8 Release:        8
9 License:        GPL v2+
10 Group:          Development/Version Control
11 # Source0:      https://launchpad.net/bzr-gtk/%{ver}/%{version}/+download/bzr-gtk-%{version}.tar.gz
12 Source0:        http://samba.org/~jelmer/bzr/%{name}-%{version}.tar.gz
13 # Source0-md5:  00aedce625672abca13d2d962b047ac0
14 Patch0:         %{name}-dbus_detection_fix.patch
15 URL:            http://bazaar-vcs.org/bzr-gtk
16 BuildRequires:  gettext-devel
17 BuildRequires:  pkgconfig
18 BuildRequires:  python >= 1:2.4
19 BuildRequires:  python-devel
20 BuildRequires:  rpm-pythonprov
21 BuildRequires:  rpmbuild(macros) >= 1.219
22 Requires(post,postun):  desktop-file-utils
23 %pyrequires_eq  python
24 Requires:       bzr >= %{ver}
25 Requires:       python-pygtk-glade >= 2:2.10
26 Requires:       python-pygtk-gtk >= 2:2.10
27 Suggests:       python-gnome
28 Suggests:       python-pycairo
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 - olive-gtk (complete GUI branch manager)
40
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ą:
45 - gcommit
46 - gdiff
47 - visualise
48 - gannotate
49 - gbranch
50 - olive-gtk (kompletny graficzny zarządca gałęzi bzr)
51
52 %prep
53 %setup -q
54 %patch0 -p1
55
56 %build
57 %{__python} setup.py build
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61
62 %{__python} setup.py install \
63         --install-purelib %{py_sitedir} \
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
80 %postun
81 %update_desktop_database_postun
82
83 %files
84 %defattr(644,root,root,755)
85 %doc AUTHORS NEWS README TODO
86 %attr(755,root,root) %{_bindir}/olive-gtk
87 %attr(755,root,root) %{_bindir}/bzr-handle-patch
88 %attr(755,root,root) %{_bindir}/bzr-notify
89 %{py_sitedir}/bzrlib/plugins/gtk
90 %{_datadir}/bzr-gtk
91 %{_datadir}/olive
92 %{_desktopdir}/bazaar-properties.desktop
93 %{_desktopdir}/bzr-notify.desktop
94 %{_desktopdir}/bzr-handle-patch.desktop
95 %{_desktopdir}/olive-gtk.desktop
96 %{_pixmapsdir}/olive-gtk.png
97 %{_pixmapsdir}/bzr-icon-64.png
98 %{_iconsdir}/hicolor/scalable/emblems
99 %{_datadir}/application-registry/bzr-gtk.applications
This page took 0.056296 seconds and 2 git commands to generate.