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