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: git-core
13 BuildRequires: python-PyQt4
14 BuildRequires: rpm-pythonprov
15 BuildRequires: rpmbuild(macros) >= 1.219
17 Requires: git-core >= 1.5.2
18 Requires: python >= 1:2.4
19 Requires: python-PyQt4 >= 4.3
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 A sweet, carbonated git gui known for its sugary flavour and
25 caffeine-inspired features.
28 %setup -q -n cola-%{version}
32 export INSTALL_GIT_DIFFTOOL=1
33 %{__python} setup.py build
37 rm -rf $RPM_BUILD_ROOT
38 %{__python} setup.py install -O1 \
40 --root $RPM_BUILD_ROOT \
43 %{__make} install-doc install-html \
44 DESTDIR=$RPM_BUILD_ROOT \
47 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
48 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
52 rm -rf $RPM_BUILD_ROOT
55 update-desktop-database > /dev/null 2>&1 || :
58 update-desktop-database > /dev/null 2>&1 || :
61 %defattr(644,root,root,755)
62 %doc COPYRIGHT LICENSE README
63 %attr(755,root,root) %{_bindir}/git-cola
64 %attr(755,root,root) %{_bindir}/git-difftool
65 %attr(755,root,root) %{_bindir}/git-difftool--helper
66 %{_desktopdir}/cola.desktop
69 %{_mandir}/man1/git-cola.1*
70 %{py_sitescriptdir}/*.egg-info