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