1 Summary: A highly caffeinated git gui
6 Group: Development/Tools
7 Source0: http://cola.tuxfamily.org/releases/cola-%{version}-src.tar.gz
8 # Source0-md5: b7bd6c8a4410be84d885bf7debd49aab
9 Patch0: %{name}-shebang.patch
10 URL: http://cola.tuxfamily.org/
11 BuildRequires: asciidoc
12 BuildRequires: docbook-dtd45-xml
13 BuildRequires: gettext-devel
14 BuildRequires: git-core
15 BuildRequires: python-PyQt4
16 BuildRequires: python-devel
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.219
20 Requires: git-core >= 1.5.2
21 Requires: python >= 1:2.4
22 Requires: python-PyQt4 >= 4.3
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 A sweet, carbonated git gui known for its sugary flavour and
28 caffeine-inspired features.
31 %setup -q -n cola-%{version}
35 export INSTALL_GIT_DIFFTOOL=1
36 %{__python} setup.py build
40 rm -rf $RPM_BUILD_ROOT
41 %{__python} setup.py install -O1 \
43 --root $RPM_BUILD_ROOT \
46 %{__make} install-doc install-html \
47 DESTDIR=$RPM_BUILD_ROOT \
50 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
51 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
55 rm -rf $RPM_BUILD_ROOT
58 update-desktop-database > /dev/null 2>&1 || :
61 update-desktop-database > /dev/null 2>&1 || :
64 %defattr(644,root,root,755)
65 %doc COPYRIGHT LICENSE README
66 %attr(755,root,root) %{_bindir}/git-cola
67 %attr(755,root,root) %{_bindir}/git-difftool
68 %attr(755,root,root) %{_bindir}/git-difftool--helper
69 %{_desktopdir}/cola.desktop
72 %{_mandir}/man1/git-cola.1*
73 %{py_sitescriptdir}/*.egg-info