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