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