]> git.pld-linux.org Git - packages/bzr-gtk.git/blob - bzr-gtk.spec
1ce4912670e28d38970060c000e59efd9f3f970a
[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:        5
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:  python >= 1:2.4
17 BuildRequires:  rpm-pythonprov
18 BuildRequires:  rpmbuild(macros) >= 1.219
19 Requires(post,postun):  desktop-file-utils
20 %pyrequires_eq  python
21 Requires:       bzr >= %{ver}
22 Requires:       python-pygtk-glade >= 2:2.10
23 Requires:       python-pygtk-gtk >= 2:2.10
24 Suggests:       python-gnome
25 Suggests:       python-pycairo
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 bzr-gtk is a plugin for Bazaar-NG (bzr) that aims to provide GTK+
30 interfaces to most Bazaar operations. Provided commands are:
31 - gcommit
32 - gdiff
33 - visualise
34 - gannotate
35 - gbranch
36 - olive-gtk (complete GUI branch manager)
37
38 %description -l pl.UTF-8
39 bzr-gtk jest wtyczką dla Bazaar-NG (bzr), która ma na celu
40 dostarczenie graficznego interfejsu GTK+ dla większości poleceń
41 Bazaar. Dostępnymi poleceniami są:
42 - gcommit
43 - gdiff
44 - visualise
45 - gannotate
46 - gbranch
47 - olive-gtk (kompletny graficzny zarządca gałęzi bzr)
48
49 %prep
50 %setup -q
51 %patch0 -p1
52
53 %build
54 %{__python} setup.py build
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 %{__python} setup.py install \
60         --install-purelib %{py_sitedir} \
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
77 %postun
78 %update_desktop_database_postun
79
80 %files
81 %defattr(644,root,root,755)
82 %doc AUTHORS NEWS README TODO
83 %attr(755,root,root) %{_bindir}/olive-gtk
84 %attr(755,root,root) %{_bindir}/bzr-handle-patch
85 %attr(755,root,root) %{_bindir}/bzr-notify
86 %{py_sitedir}/bzrlib/plugins/gtk
87 %{_datadir}/bzr-gtk
88 %{_datadir}/olive
89 %{_desktopdir}/bazaar-properties.desktop
90 %{_desktopdir}/bzr-notify.desktop
91 %{_desktopdir}/bzr-handle-patch.desktop
92 %{_desktopdir}/olive-gtk.desktop
93 %{_pixmapsdir}/olive-gtk.png
94 %{_pixmapsdir}/bzr-icon-64.png
95 %{_iconsdir}/hicolor/scalable/emblems
96 %{_datadir}/application-registry/bzr-gtk.applications
This page took 0.026266 seconds and 2 git commands to generate.