]> git.pld-linux.org Git - packages/git-cola.git/blob - git-cola.spec
- no bashism
[packages/git-cola.git] / git-cola.spec
1 Summary:        A highly caffeinated git gui
2 Name:           git-cola
3 Version:        1.3.7.60
4 Release:        1
5 License:        GPL v2+
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
16 BuildRequires:  xmlto
17 Requires:       git-core >= 1.5.2
18 Requires:       python >= 1:2.4
19 Requires:       python-PyQt4 >= 4.3
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 A sweet, carbonated git gui known for its sugary flavour and
25 caffeine-inspired features.
26
27 %prep
28 %setup -q -n cola-%{version}
29 %patch0 -p0
30
31 %build
32 export INSTALL_GIT_DIFFTOOL=1
33 %{__python} setup.py build
34 %{__make} doc
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 %{__python} setup.py install -O1 \
39         --skip-build \
40         --root $RPM_BUILD_ROOT \
41         --prefix=%{_prefix}
42
43 %{__make} install-doc install-html \
44         DESTDIR=$RPM_BUILD_ROOT \
45         prefix=%{_prefix}
46
47 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
48 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
49 %py_postclean
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %post
55 update-desktop-database > /dev/null 2>&1 || :
56
57 %postun
58 update-desktop-database > /dev/null 2>&1 || :
59
60 %files
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
67 %{_datadir}/git-cola
68 %{_docdir}/git-cola
69 %{_mandir}/man1/git-cola.1*
70 %{py_sitescriptdir}/*.egg-info
This page took 0.088887 seconds and 3 git commands to generate.