]>
Commit | Line | Data |
---|---|---|
a26aa7ab JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries | |
2c4ec5c0 | 4 | %bcond_without glade # Glade catalog |
a26aa7ab | 5 | # |
35063ec1 JB |
6 | Summary: GTK+ git repository viewer |
7 | Summary(pl.UTF-8): Przeglądarka repozytoriów git oparta na GTK+ | |
e96d6515 | 8 | Name: gitg |
2c4ec5c0 | 9 | Version: 3.14.1 |
20052104 | 10 | Release: 2 |
e96d6515 AF |
11 | License: GPL v2 |
12 | Group: Development/Tools | |
2f163194 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gitg/3.14/%{name}-%{version}.tar.xz |
2c4ec5c0 | 14 | # Source0-md5: d4d7aae3cfb46cfff1c09894378ef4e0 |
a26aa7ab | 15 | URL: http://live.gnome.org/Gitg |
35063ec1 JB |
16 | BuildRequires: autoconf >= 2.64 |
17 | BuildRequires: automake >= 1:1.11 | |
e96d6515 | 18 | BuildRequires: gettext-devel >= 0.17 |
2c4ec5c0 | 19 | %{?with_glade:BuildRequires: glade-devel >= 3.2} |
a26aa7ab JB |
20 | BuildRequires: glib2-devel >= 1:2.38 |
21 | BuildRequires: gobject-introspection-devel >= 0.10.1 | |
5666e859 | 22 | BuildRequires: gsettings-desktop-schemas-devel |
2c4ec5c0 | 23 | BuildRequires: gtk+3-devel >= 3.12.0 |
a26aa7ab JB |
24 | BuildRequires: gtk-webkit3-devel >= 2.2 |
25 | BuildRequires: gtksourceview3-devel >= 3.10 | |
26 | BuildRequires: gtkspell3-devel >= 3.0.3 | |
e96d6515 | 27 | BuildRequires: intltool >= 0.40.0 |
a26aa7ab JB |
28 | BuildRequires: json-glib-devel |
29 | BuildRequires: libgee-devel >= 0.8 | |
30 | # libgit2 with threading support | |
31 | BuildRequires: libgit2-devel >= 0.20.0-3 | |
2c4ec5c0 | 32 | BuildRequires: libgit2-glib-devel >= 0.0.20 |
a26aa7ab JB |
33 | BuildRequires: libpeas-devel >= 1.5.0 |
34 | BuildRequires: libpeas-gtk-devel >= 1.5.0 | |
35063ec1 | 35 | BuildRequires: libtool >= 2:2.2 |
e96d6515 | 36 | BuildRequires: pkgconfig |
a26aa7ab JB |
37 | BuildRequires: python3-devel >= 3.2.3 |
38 | BuildRequires: python3-pygobject3-devel >= 3.0.0 | |
e96d6515 AF |
39 | BuildRequires: rpm-pythonprov |
40 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
41 | BuildRequires: rpmbuild(macros) >= 1.596 | |
7b0b300f | 42 | BuildRequires: tar >= 1:1.22 |
a26aa7ab | 43 | BuildRequires: vala >= 2:0.20.1.23 |
7b0b300f | 44 | BuildRequires: xz |
e96d6515 | 45 | Requires(post,postun): desktop-file-utils |
a26aa7ab | 46 | Requires(post,preun): glib2 >= 1:2.38 |
89cb9555 | 47 | Requires(post,postun): gtk-update-icon-cache |
a26aa7ab | 48 | Requires: glib2 >= 1:2.38 |
2c4ec5c0 | 49 | Requires: gtk+3 >= 3.12.0 |
a26aa7ab JB |
50 | Requires: gtk-webkit3 >= 2.2 |
51 | Requires: gtksourceview3 >= 3.10 | |
52 | Requires: gtkspell3 >= 3.0.3 | |
53 | Requires: libgit2 >= 0.20.0-3 | |
2c4ec5c0 | 54 | Requires: libgit2-glib >= 0.0.20 |
e96d6515 AF |
55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
56 | ||
e96d6515 | 57 | %description |
35063ec1 | 58 | gitg is a git repository viewer targeting GTK+/GNOME. One of its main |
e96d6515 AF |
59 | objectives is to provide a more unified user experience for git |
60 | frontends across multiple desktops. | |
61 | ||
35063ec1 JB |
62 | %description -l pl.UTF-8 |
63 | gitg to przeglądarka repozytoriów git przeznaczona dla środowisk | |
64 | GTK+/GNOME. Jednym z głównych celów jest zapewnienie bardziej | |
65 | ujednoliconego sposobu obsługi dla frontendów gita w wielu | |
66 | środowiskach graficznych. | |
67 | ||
e96d6515 AF |
68 | %package devel |
69 | Summary: libgitg header files | |
35063ec1 | 70 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgitg |
e96d6515 AF |
71 | Group: Development/Libraries |
72 | Requires: %{name} = %{version}-%{release} | |
a26aa7ab | 73 | Requires: glib2-devel >= 1:2.38 |
2c4ec5c0 | 74 | Requires: gtk+3-devel >= 3.12.0 |
a26aa7ab | 75 | Requires: libgit2-devel >= 0.20.0-3 |
2c4ec5c0 | 76 | Requires: libgit2-glib-devel >= 0.0.20 |
e96d6515 AF |
77 | |
78 | %description devel | |
79 | libgitg header files. | |
80 | ||
81 | %description devel -l pl.UTF-8 | |
35063ec1 | 82 | Pliki nagłówkowe biblioteki libgitg. |
e96d6515 AF |
83 | |
84 | %package static | |
35063ec1 JB |
85 | Summary: libgitg static library |
86 | Summary(pl.UTF-8): Biblioteka statyczna libgitg | |
e96d6515 AF |
87 | Group: Development/Libraries |
88 | Requires: %{name}-devel = %{version}-%{release} | |
89 | ||
90 | %description static | |
35063ec1 | 91 | libgitg static library. |
e96d6515 AF |
92 | |
93 | %description static -l pl.UTF-8 | |
a26aa7ab JB |
94 | Biblioteka statyczna libgitg. |
95 | ||
2c4ec5c0 JB |
96 | %package glade |
97 | Summary: libgitg catalog file for Glade | |
98 | Summary(pl.UTF-8): Plik katalogu libgitg dla Glade | |
99 | Group: X11/Development/Libraries | |
100 | Requires: %{name}-devel = %{version}-%{release} | |
101 | Requires: glade >= 3.2 | |
102 | ||
103 | %description glade | |
104 | libgitg catalog file for Glade. | |
105 | ||
106 | %description glade -l pl.UTF-8 | |
107 | Plik katalogu libgitg dla Glade. | |
108 | ||
a26aa7ab JB |
109 | %package -n python3-gitg |
110 | Summary: Python 3.x binding to GitgExt library | |
111 | Summary(pl.UTF-8): Wiązanie Pythona 3.x do biblioteki GitgExt | |
112 | Group: Python/Libraries | |
113 | Requires: %{name} = %{version}-%{release} | |
114 | BuildRequires: python3-libs >= 3.2.3 | |
115 | BuildRequires: python3-pygobject3 >= 3.0.0 | |
116 | ||
117 | %description -n python3-gitg | |
118 | Python 3.x binding to GitgExt library, allowing to write Gitg plugins | |
119 | in Python. | |
120 | ||
121 | %description -n python3-gitg -l pl.UTF-8 | |
122 | Wiązanie Pythona 3.x do biblioteki GitgExt, pozwalające na tworzenie | |
123 | wtyczek Gitg w Pythonie. | |
124 | ||
125 | %package -n vala-gitg | |
126 | Summary: Vala API for Gitg libraries | |
127 | Summary(pl.UTF-8): API języka Vala do bibliotek Gitg | |
128 | Group: Development/Libraries | |
129 | Requires: %{name}-devel = %{version}-%{release} | |
130 | Requires: vala >= 2:0.20.1.23 | |
131 | ||
132 | %description -n vala-gitg | |
133 | Vala API for Gitg libraries. | |
134 | ||
135 | %description -n vala-gitg -l pl.UTF-8 | |
136 | API języka Vala do bibliotek Gitg. | |
e96d6515 AF |
137 | |
138 | %prep | |
139 | %setup -q | |
140 | ||
141 | %build | |
142 | %{__libtoolize} | |
143 | %{__intltoolize} | |
a26aa7ab | 144 | %{__aclocal} -I m4 -I libgd |
e96d6515 AF |
145 | %{__autoconf} |
146 | %{__autoheader} | |
147 | %{__automake} | |
148 | %configure \ | |
afc6d279 | 149 | %{?with_glade:--enable-glade-catalog} \ |
a26aa7ab JB |
150 | --disable-silent-rules \ |
151 | %{?with_static_libs:--enable-static} | |
e96d6515 AF |
152 | %{__make} |
153 | ||
154 | %install | |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
157 | %{__make} install \ | |
158 | DESTDIR=$RPM_BUILD_ROOT | |
159 | ||
a26aa7ab JB |
160 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgitg-*.la \ |
161 | $RPM_BUILD_ROOT%{_libdir}/gitg/plugins/*.la | |
162 | %if %{with static_libs} | |
163 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gitg/plugins/*.a | |
164 | %endif | |
e96d6515 AF |
165 | |
166 | %find_lang gitg | |
167 | ||
168 | %clean | |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
171 | %post | |
172 | /sbin/ldconfig | |
173 | %glib_compile_schemas | |
174 | %update_icon_cache hicolor | |
175 | ||
176 | %postun | |
177 | if [ "$1" = "0" ]; then | |
178 | /sbin/ldconfig | |
179 | %glib_compile_schemas | |
180 | %update_icon_cache hicolor | |
181 | fi | |
182 | ||
183 | %files -f gitg.lang | |
184 | %defattr(644,root,root,755) | |
a26aa7ab | 185 | %doc AUTHORS ChangeLog NEWS README |
e96d6515 | 186 | %attr(755,root,root) %{_bindir}/gitg |
e96d6515 | 187 | %attr(755,root,root) %{_libdir}/libgitg-1.0.so.*.*.* |
35063ec1 | 188 | %attr(755,root,root) %ghost %{_libdir}/libgitg-1.0.so.0 |
a26aa7ab JB |
189 | %attr(755,root,root) %{_libdir}/libgitg-ext-1.0.so.*.*.* |
190 | %attr(755,root,root) %ghost %{_libdir}/libgitg-ext-1.0.so.0 | |
191 | %{_libdir}/girepository-1.0/Gitg-1.0.typelib | |
192 | %{_libdir}/girepository-1.0/GitgExt-1.0.typelib | |
193 | %dir %{_libdir}/gitg | |
194 | %dir %{_libdir}/gitg/plugins | |
195 | %attr(755,root,root) %{_libdir}/gitg/plugins/libdiff.so | |
196 | %{_libdir}/gitg/plugins/diff.plugin | |
197 | %attr(755,root,root) %{_libdir}/gitg/plugins/libfiles.so | |
198 | %{_libdir}/gitg/plugins/files.plugin | |
e96d6515 | 199 | %{_datadir}/gitg |
a26aa7ab | 200 | %{_datadir}/appdata/gitg.appdata.xml |
e96d6515 AF |
201 | %{_datadir}/glib-2.0/schemas/org.gnome.gitg.gschema.xml |
202 | %{_desktopdir}/gitg.desktop | |
203 | %{_mandir}/man1/gitg.1* | |
204 | %{_iconsdir}/hicolor/*/apps/gitg.* | |
205 | ||
206 | %files devel | |
207 | %defattr(644,root,root,755) | |
35063ec1 | 208 | %attr(755,root,root) %{_libdir}/libgitg-1.0.so |
a26aa7ab | 209 | %attr(755,root,root) %{_libdir}/libgitg-ext-1.0.so |
e96d6515 | 210 | %{_includedir}/libgitg-1.0 |
a26aa7ab JB |
211 | %{_includedir}/libgitg-ext-1.0 |
212 | %{_datadir}/gir-1.0/Gitg-1.0.gir | |
213 | %{_datadir}/gir-1.0/GitgExt-1.0.gir | |
e96d6515 | 214 | %{_pkgconfigdir}/libgitg-1.0.pc |
a26aa7ab | 215 | %{_pkgconfigdir}/libgitg-ext-1.0.pc |
e96d6515 | 216 | |
a26aa7ab | 217 | %if %{with static_libs} |
e96d6515 AF |
218 | %files static |
219 | %defattr(644,root,root,755) | |
220 | %{_libdir}/libgitg-1.0.a | |
a26aa7ab JB |
221 | %{_libdir}/libgitg-ext-1.0.a |
222 | %endif | |
223 | ||
2c4ec5c0 JB |
224 | %if %{with glade} |
225 | %files glade | |
226 | %defattr(644,root,root,755) | |
227 | %{_datadir}/glade/catalogs/gitg-glade.xml | |
228 | %endif | |
229 | ||
a26aa7ab JB |
230 | %files -n python3-gitg |
231 | %defattr(644,root,root,755) | |
232 | %{py3_sitedir}/gi/overrides/GitgExt.py | |
233 | %{py3_sitedir}/gi/overrides/__pycache__/GitgExt.cpython-*.py[co] | |
234 | ||
235 | %files -n vala-gitg | |
236 | %defattr(644,root,root,755) | |
237 | %{_datadir}/vala/vapi/libgitg-1.0.vapi | |
238 | %{_datadir}/vala/vapi/libgitg-ext-1.0.vapi |