]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries | |
4 | %bcond_without glade # Glade catalog | |
5 | ||
6 | Summary: GTK+ git repository viewer | |
7 | Summary(pl.UTF-8): Przeglądarka repozytoriów git oparta na GTK+ | |
8 | Name: gitg | |
9 | Version: 3.24.0 | |
10 | Release: 1 | |
11 | License: GPL v2 | |
12 | Group: Development/Tools | |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gitg/3.24/%{name}-%{version}.tar.xz | |
14 | # Source0-md5: ee4e11a4f62298c59165bdf003924348 | |
15 | Patch0: %{name}-build.patch | |
16 | URL: http://live.gnome.org/Gitg | |
17 | BuildRequires: autoconf >= 2.64 | |
18 | BuildRequires: automake >= 1:1.11 | |
19 | BuildRequires: gettext-tools >= 0.17 | |
20 | %{?with_glade:BuildRequires: glade-devel >= 3.2} | |
21 | BuildRequires: glib2-devel >= 1:2.38 | |
22 | BuildRequires: gnome-common | |
23 | BuildRequires: gobject-introspection-devel >= 0.10.1 | |
24 | BuildRequires: gsettings-desktop-schemas-devel | |
25 | BuildRequires: gtk+3-devel >= 3.20.0 | |
26 | BuildRequires: gtk-webkit4-devel >= 2.2 | |
27 | BuildRequires: gtksourceview3-devel >= 3.10 | |
28 | BuildRequires: gtkspell3-devel >= 3.0.3 | |
29 | BuildRequires: intltool >= 0.40.0 | |
30 | BuildRequires: json-glib-devel | |
31 | BuildRequires: libgee-devel >= 0.8 | |
32 | # libgit2 with threading support | |
33 | BuildRequires: libgit2-devel >= 0.20.0-3 | |
34 | BuildRequires: libgit2-glib-devel >= 0.25.0 | |
35 | BuildRequires: libpeas-devel >= 1.5.0 | |
36 | BuildRequires: libpeas-gtk-devel >= 1.5.0 | |
37 | BuildRequires: libsecret-devel | |
38 | BuildRequires: libsoup-devel >= 2.4 | |
39 | BuildRequires: libtool >= 2:2.2 | |
40 | BuildRequires: libxml2-devel >= 1:2.9.0 | |
41 | BuildRequires: pkgconfig | |
42 | BuildRequires: python3-devel >= 1:3.2.3 | |
43 | BuildRequires: python3-pygobject3-devel >= 3.0.0 | |
44 | BuildRequires: rpm-pythonprov | |
45 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
46 | BuildRequires: rpmbuild(macros) >= 1.596 | |
47 | BuildRequires: tar >= 1:1.22 | |
48 | BuildRequires: vala >= 2:0.32.0 | |
49 | BuildRequires: vala-libgee >= 0.8 | |
50 | BuildRequires: vala-libgit2-glib >= 0.25.0 | |
51 | BuildRequires: vala-libsecret | |
52 | BuildRequires: xz | |
53 | Requires(post,postun): desktop-file-utils | |
54 | Requires(post,preun): glib2 >= 1:2.38 | |
55 | Requires(post,postun): gtk-update-icon-cache | |
56 | Requires: glib2 >= 1:2.38 | |
57 | Requires: gtk+3 >= 3.20.0 | |
58 | Requires: gtk-webkit4 >= 2.2 | |
59 | Requires: gtksourceview3 >= 3.10 | |
60 | Requires: gtkspell3 >= 3.0.3 | |
61 | Requires: libgit2 >= 0.20.0-3 | |
62 | Requires: libgit2-glib >= 0.25.0 | |
63 | Requires: libxml2 >= 1:2.9.0 | |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
65 | ||
66 | %description | |
67 | gitg is a git repository viewer targeting GTK+/GNOME. One of its main | |
68 | objectives is to provide a more unified user experience for git | |
69 | frontends across multiple desktops. | |
70 | ||
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 | ||
77 | %package devel | |
78 | Summary: libgitg header files | |
79 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgitg | |
80 | Group: Development/Libraries | |
81 | Requires: %{name} = %{version}-%{release} | |
82 | Requires: glib2-devel >= 1:2.38 | |
83 | Requires: gtk+3-devel >= 3.20.0 | |
84 | Requires: libgit2-devel >= 0.20.0-3 | |
85 | Requires: libgit2-glib-devel >= 0.25.0 | |
86 | ||
87 | %description devel | |
88 | libgitg header files. | |
89 | ||
90 | %description devel -l pl.UTF-8 | |
91 | Pliki nagłówkowe biblioteki libgitg. | |
92 | ||
93 | %package static | |
94 | Summary: libgitg static library | |
95 | Summary(pl.UTF-8): Biblioteka statyczna libgitg | |
96 | Group: Development/Libraries | |
97 | Requires: %{name}-devel = %{version}-%{release} | |
98 | ||
99 | %description static | |
100 | libgitg static library. | |
101 | ||
102 | %description static -l pl.UTF-8 | |
103 | Biblioteka statyczna libgitg. | |
104 | ||
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 | ||
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 | |
121 | Group: Libraries/Python | |
122 | BuildRequires: python3-libs >= 1:3.2.3 | |
123 | BuildRequires: python3-pygobject3 >= 3.0.0 | |
124 | Requires: %{name} = %{version}-%{release} | |
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} | |
139 | Requires: vala >= 2:0.32 | |
140 | %if "%{_rpmversion}" >= "5" | |
141 | BuildArch: noarch | |
142 | %endif | |
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. | |
149 | ||
150 | %prep | |
151 | %setup -q | |
152 | %patch0 -p1 | |
153 | ||
154 | %build | |
155 | %{__libtoolize} | |
156 | %{__intltoolize} | |
157 | %{__aclocal} -I m4 | |
158 | %{__autoconf} | |
159 | %{__autoheader} | |
160 | %{__automake} | |
161 | %configure \ | |
162 | %{?with_glade:--enable-glade-catalog} \ | |
163 | --disable-silent-rules \ | |
164 | %{?with_static_libs:--enable-static} | |
165 | %{__make} | |
166 | ||
167 | %install | |
168 | rm -rf $RPM_BUILD_ROOT | |
169 | ||
170 | %{__make} install \ | |
171 | DESTDIR=$RPM_BUILD_ROOT | |
172 | ||
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 | |
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) | |
198 | %doc AUTHORS ChangeLog NEWS README | |
199 | %attr(755,root,root) %{_bindir}/gitg | |
200 | %attr(755,root,root) %{_libdir}/libgitg-1.0.so.*.*.* | |
201 | %attr(755,root,root) %ghost %{_libdir}/libgitg-1.0.so.0 | |
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 | |
212 | %{_datadir}/gitg | |
213 | %{_datadir}/appdata/gitg.appdata.xml | |
214 | %{_datadir}/glib-2.0/schemas/org.gnome.gitg.gschema.xml | |
215 | %{_desktopdir}/gitg.desktop | |
216 | %{_mandir}/man1/gitg.1* | |
217 | %{_iconsdir}/hicolor/*x*/apps/gitg.png | |
218 | %{_iconsdir}/hicolor/scalable/apps/gitg-symbolic.svg | |
219 | ||
220 | %files devel | |
221 | %defattr(644,root,root,755) | |
222 | %attr(755,root,root) %{_libdir}/libgitg-1.0.so | |
223 | %attr(755,root,root) %{_libdir}/libgitg-ext-1.0.so | |
224 | %{_includedir}/libgitg-1.0 | |
225 | %{_includedir}/libgitg-ext-1.0 | |
226 | %{_datadir}/gir-1.0/Gitg-1.0.gir | |
227 | %{_datadir}/gir-1.0/GitgExt-1.0.gir | |
228 | %{_pkgconfigdir}/libgitg-1.0.pc | |
229 | %{_pkgconfigdir}/libgitg-ext-1.0.pc | |
230 | ||
231 | %if %{with static_libs} | |
232 | %files static | |
233 | %defattr(644,root,root,755) | |
234 | %{_libdir}/libgitg-1.0.a | |
235 | %{_libdir}/libgitg-ext-1.0.a | |
236 | %endif | |
237 | ||
238 | %if %{with glade} | |
239 | %files glade | |
240 | %defattr(644,root,root,755) | |
241 | %{_datadir}/glade/catalogs/gitg-glade.xml | |
242 | %endif | |
243 | ||
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 |