]>
Commit | Line | Data |
---|---|---|
e96d6515 AF |
1 | Summary: Gtk+ git repository viewer |
2 | Name: gitg | |
7b0b300f | 3 | Version: 0.2.5 |
abfa1ad8 | 4 | Release: 0.1 |
e96d6515 AF |
5 | License: GPL v2 |
6 | Group: Development/Tools | |
7b0b300f AF |
7 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gitg/0.2/%{name}-%{version}.tar.xz |
8 | # Source0-md5: 1a1dad94d22946cefe08c98236621442 | |
e96d6515 AF |
9 | URL: http://trac.novowork.com/gitg/ |
10 | BuildRequires: GConf2-devel >= 2.24.0 | |
11 | BuildRequires: autoconf >= 2.59 | |
12 | BuildRequires: automake >= 1:1.8 | |
13 | BuildRequires: gettext-devel >= 0.17 | |
14 | BuildRequires: glib2-devel >= 1:2.26.0 | |
5666e859 | 15 | BuildRequires: gsettings-desktop-schemas-devel |
e96d6515 AF |
16 | BuildRequires: intltool >= 0.40.0 |
17 | BuildRequires: libtool | |
18 | BuildRequires: pkgconfig | |
19 | BuildRequires: rpm-pythonprov | |
20 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
21 | BuildRequires: rpmbuild(macros) >= 1.596 | |
abfa1ad8 | 22 | BuildRequires: gtk+3-devel >= 3.0.0 |
7b0b300f AF |
23 | BuildRequires: gtksourceview3-devel >= 3.1.3 |
24 | BuildRequires: tar >= 1:1.22 | |
25 | BuildRequires: xz | |
e96d6515 | 26 | Requires(post,postun): desktop-file-utils |
89cb9555 | 27 | Requires(post,postun): gtk-update-icon-cache |
e96d6515 AF |
28 | Requires(post,preun): GConf2 |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
e96d6515 AF |
31 | %description |
32 | gitg is a git repository viewer targeting gtk+/GNOME. One of its main | |
33 | objectives is to provide a more unified user experience for git | |
34 | frontends across multiple desktops. | |
35 | ||
36 | %package devel | |
37 | Summary: libgitg header files | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe libgitg | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | libgitg header files. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe libgitg. | |
47 | ||
48 | %package static | |
49 | Summary: libgitg static libraries | |
50 | Summary(pl.UTF-8): Biblioteki statyczne libgitg | |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | libgitg static libraries. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Biblioteki statyczne libgitg | |
59 | ||
60 | %prep | |
61 | %setup -q | |
62 | ||
63 | %build | |
64 | %{__libtoolize} | |
65 | %{__intltoolize} | |
66 | %{__aclocal} -I m4 | |
67 | %{__autoconf} | |
68 | %{__autoheader} | |
69 | %{__automake} | |
70 | %configure \ | |
e96d6515 AF |
71 | --disable-silent-rules |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgitg-1.0.la | |
81 | ||
82 | %find_lang gitg | |
83 | ||
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post | |
88 | /sbin/ldconfig | |
89 | %glib_compile_schemas | |
90 | %update_icon_cache hicolor | |
91 | ||
92 | %postun | |
93 | if [ "$1" = "0" ]; then | |
94 | /sbin/ldconfig | |
95 | %glib_compile_schemas | |
96 | %update_icon_cache hicolor | |
97 | fi | |
98 | ||
99 | %files -f gitg.lang | |
100 | %defattr(644,root,root,755) | |
101 | %doc README ChangeLog AUTHORS NEWS | |
102 | %attr(755,root,root) %{_bindir}/gitg | |
103 | %attr(755,root,root) %ghost %{_libdir}/libgitg-1.0.so.0 | |
104 | %attr(755,root,root) %{_libdir}/libgitg-1.0.so.*.*.* | |
105 | %{_datadir}/gitg | |
106 | %{_datadir}/glib-2.0/schemas/org.gnome.gitg.gschema.xml | |
107 | %{_desktopdir}/gitg.desktop | |
108 | %{_mandir}/man1/gitg.1* | |
109 | %{_iconsdir}/hicolor/*/apps/gitg.* | |
110 | ||
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
113 | %{_libdir}/libgitg-1.0.so | |
114 | %{_includedir}/libgitg-1.0 | |
115 | %{_pkgconfigdir}/libgitg-1.0.pc | |
116 | ||
117 | %files static | |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libgitg-1.0.a |