]>
Commit | Line | Data |
---|---|---|
3972a72e | 1 | Summary: A sleek and powerful git GUI |
60039a41 | 2 | Name: git-cola |
3972a72e | 3 | Version: 2.3 |
60039a41 AG |
4 | Release: 1 |
5 | License: GPL v2+ | |
3972a72e ER |
6 | Source0: https://github.com/git-cola/git-cola/archive/v%{version}/%{name}-%{version}.tar.gz |
7 | # Source0-md5: 0f3c5355eda07e752d1f8f536882a2d0 | |
60039a41 | 8 | Group: Development/Tools |
3972a72e ER |
9 | URL: http://git-cola.github.io/ |
10 | BuildRequires: desktop-file-utils | |
11 | BuildRequires: gettext | |
12 | BuildRequires: git-core >= 1.5.2 | |
c6c7f2da ER |
13 | BuildRequires: python-modules |
14 | BuildRequires: python-setuptools | |
15 | BuildRequires: rpm-pythonprov | |
16 | BuildRequires: rpmbuild(macros) >= 1.714 | |
17 | BuildRequires: sed >= 4.0 | |
3972a72e ER |
18 | BuildRequires: sip-PyQt4 >= 4.3 |
19 | BuildRequires: sphinx-pdg | |
60039a41 | 20 | BuildRequires: xmlto |
0f29fba1 | 21 | Requires: sip-PyQt4 >= 4.3 |
60039a41 | 22 | Requires: git-core >= 1.5.2 |
3972a72e ER |
23 | Requires: hicolor-icon-theme |
24 | Requires: python-inotify | |
60039a41 AG |
25 | BuildArch: noarch |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
3972a72e ER |
29 | git-cola is a powerful git GUI with a slick and intuitive user |
30 | interface. | |
60039a41 AG |
31 | |
32 | %prep | |
3972a72e | 33 | %setup -q |
60039a41 | 34 | |
c6c7f2da ER |
35 | # fix #!/usr/bin/env python -> #!/usr/bin/python: |
36 | %{__sed} -i -e '1s,^#!.*python,#!%{__python},' bin/git-* cola/widgets/*.py extras/*/*.py share/git-cola/bin/git* | |
37 | ||
38 | # cleanup backups after patching | |
39 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f | |
40 | ||
60039a41 | 41 | %build |
3972a72e | 42 | %{__make} |
60039a41 AG |
43 | %{__make} doc |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
3972a72e ER |
47 | %{__make} install install-doc install-html \ |
48 | prefix=%{_prefix} \ | |
60039a41 | 49 | DESTDIR=$RPM_BUILD_ROOT \ |
60039a41 | 50 | |
0f29fba1 | 51 | mv $RPM_BUILD_ROOT/usr/share/locale/{id_ID,id} |
3972a72e ER |
52 | %find_lang %{name} |
53 | ||
54 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/git-cola-folder-handler.desktop | |
55 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/git-cola.desktop | |
56 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/git-dag.desktop | |
60039a41 AG |
57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %post | |
3972a72e ER |
62 | %update_desktop_database |
63 | %update_icon_cache hicolor | |
60039a41 AG |
64 | |
65 | %postun | |
3972a72e ER |
66 | %update_desktop_database |
67 | %update_icon_cache hicolor | |
60039a41 | 68 | |
3972a72e | 69 | %files -f %{name}.lang |
60039a41 | 70 | %defattr(644,root,root,755) |
3972a72e ER |
71 | %doc COPYING COPYRIGHT README.md |
72 | %attr(755,root,root) %{_bindir}/cola | |
73 | %attr(755,root,root) %{_bindir}/git-* | |
74 | %{_desktopdir}/git*.desktop | |
75 | %{_datadir}/%{name}/ | |
76 | %{_iconsdir}/hicolor/scalable/apps/%{name}.svg | |
77 | %{_docdir}/%{name}/ | |
78 | %{_mandir}/man1/git*.1* |