]>
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.18.0 | |
10 | Release: 3 | |
11 | License: GPL v2 | |
12 | Group: Development/Tools | |
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 | |
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: gobject-introspection-devel >= 0.10.1 | |
23 | BuildRequires: gsettings-desktop-schemas-devel | |
24 | BuildRequires: gtk+3-devel >= 3.12.0 | |
25 | BuildRequires: gtk-webkit4-devel >= 2.2 | |
26 | BuildRequires: gtksourceview3-devel >= 3.10 | |
27 | BuildRequires: gtkspell3-devel >= 3.0.3 | |
28 | BuildRequires: intltool >= 0.40.0 | |
29 | BuildRequires: json-glib-devel | |
30 | BuildRequires: libgee-devel >= 0.8 | |
31 | # libgit2 with threading support | |
32 | BuildRequires: libgit2-devel >= 0.20.0-3 | |
33 | BuildRequires: libgit2-glib-devel >= 0.23.5 | |
34 | BuildRequires: libpeas-devel >= 1.5.0 | |
35 | BuildRequires: libpeas-gtk-devel >= 1.5.0 | |
36 | BuildRequires: libsecret-devel | |
37 | BuildRequires: libtool >= 2:2.2 | |
38 | BuildRequires: pkgconfig | |
39 | BuildRequires: python3-devel >= 1:3.2.3 | |
40 | BuildRequires: python3-pygobject3-devel >= 3.0.0 | |
41 | BuildRequires: rpm-pythonprov | |
42 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
43 | BuildRequires: rpmbuild(macros) >= 1.596 | |
44 | BuildRequires: tar >= 1:1.22 | |
45 | BuildRequires: vala >= 2:0.20.1.23 | |
46 | BuildRequires: xz | |
47 | Requires(post,postun): desktop-file-utils | |
48 | Requires(post,preun): glib2 >= 1:2.38 | |
49 | Requires(post,postun): gtk-update-icon-cache | |
50 | Requires: glib2 >= 1:2.38 | |
51 | Requires: gtk+3 >= 3.12.0 | |
52 | Requires: gtk-webkit4 >= 2.2 | |
53 | Requires: gtksourceview3 >= 3.10 | |
54 | Requires: gtkspell3 >= 3.0.3 | |
55 | Requires: libgit2 >= 0.20.0-3 | |
56 | Requires: libgit2-glib >= 0.23.5 | |
57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
58 | ||
59 | %description | |
60 | gitg is a git repository viewer targeting GTK+/GNOME. One of its main | |
61 | objectives is to provide a more unified user experience for git | |
62 | frontends across multiple desktops. | |
63 | ||
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 | ||
70 | %package devel | |
71 | Summary: libgitg header files | |
72 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgitg | |
73 | Group: Development/Libraries | |
74 | Requires: %{name} = %{version}-%{release} | |
75 | Requires: glib2-devel >= 1:2.38 | |
76 | Requires: gtk+3-devel >= 3.12.0 | |
77 | Requires: libgit2-devel >= 0.20.0-3 | |
78 | Requires: libgit2-glib-devel >= 0.23.5 | |
79 | ||
80 | %description devel | |
81 | libgitg header files. | |
82 | ||
83 | %description devel -l pl.UTF-8 | |
84 | Pliki nagłówkowe biblioteki libgitg. | |
85 | ||
86 | %package static | |
87 | Summary: libgitg static library | |
88 | Summary(pl.UTF-8): Biblioteka statyczna libgitg | |
89 | Group: Development/Libraries | |
90 | Requires: %{name}-devel = %{version}-%{release} | |
91 | ||
92 | %description static | |
93 | libgitg static library. | |
94 | ||
95 | %description static -l pl.UTF-8 | |
96 | Biblioteka statyczna libgitg. | |
97 | ||
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 | ||
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: Libraries/Python | |
115 | BuildRequires: python3-libs >= 1:3.2.3 | |
116 | BuildRequires: python3-pygobject3 >= 3.0.0 | |
117 | Requires: %{name} = %{version}-%{release} | |
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 | %if "%{_rpmversion}" >= "5" | |
134 | BuildArch: noarch | |
135 | %endif | |
136 | ||
137 | %description -n vala-gitg | |
138 | Vala API for Gitg libraries. | |
139 | ||
140 | %description -n vala-gitg -l pl.UTF-8 | |
141 | API języka Vala do bibliotek Gitg. | |
142 | ||
143 | %prep | |
144 | %setup -q | |
145 | %patch0 -p1 | |
146 | ||
147 | %build | |
148 | %{__libtoolize} | |
149 | %{__intltoolize} | |
150 | %{__aclocal} -I m4 -I libgd | |
151 | %{__autoconf} | |
152 | %{__autoheader} | |
153 | %{__automake} | |
154 | %configure \ | |
155 | %{?with_glade:--enable-glade-catalog} \ | |
156 | --disable-silent-rules \ | |
157 | %{?with_static_libs:--enable-static} | |
158 | %{__make} | |
159 | ||
160 | %install | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
163 | %{__make} install \ | |
164 | DESTDIR=$RPM_BUILD_ROOT | |
165 | ||
166 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgitg-*.la \ | |
167 | $RPM_BUILD_ROOT%{_libdir}/gitg/plugins/*.la | |
168 | %if %{with static_libs} | |
169 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gitg/plugins/*.a | |
170 | %endif | |
171 | ||
172 | %find_lang gitg | |
173 | ||
174 | %clean | |
175 | rm -rf $RPM_BUILD_ROOT | |
176 | ||
177 | %post | |
178 | /sbin/ldconfig | |
179 | %glib_compile_schemas | |
180 | %update_icon_cache hicolor | |
181 | ||
182 | %postun | |
183 | if [ "$1" = "0" ]; then | |
184 | /sbin/ldconfig | |
185 | %glib_compile_schemas | |
186 | %update_icon_cache hicolor | |
187 | fi | |
188 | ||
189 | %files -f gitg.lang | |
190 | %defattr(644,root,root,755) | |
191 | %doc AUTHORS ChangeLog NEWS README | |
192 | %attr(755,root,root) %{_bindir}/gitg | |
193 | %attr(755,root,root) %{_libdir}/libgitg-1.0.so.*.*.* | |
194 | %attr(755,root,root) %ghost %{_libdir}/libgitg-1.0.so.0 | |
195 | %attr(755,root,root) %{_libdir}/libgitg-ext-1.0.so.*.*.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/libgitg-ext-1.0.so.0 | |
197 | %{_libdir}/girepository-1.0/Gitg-1.0.typelib | |
198 | %{_libdir}/girepository-1.0/GitgExt-1.0.typelib | |
199 | %dir %{_libdir}/gitg | |
200 | %dir %{_libdir}/gitg/plugins | |
201 | %attr(755,root,root) %{_libdir}/gitg/plugins/libdiff.so | |
202 | %{_libdir}/gitg/plugins/diff.plugin | |
203 | %attr(755,root,root) %{_libdir}/gitg/plugins/libfiles.so | |
204 | %{_libdir}/gitg/plugins/files.plugin | |
205 | %{_datadir}/gitg | |
206 | %{_datadir}/appdata/gitg.appdata.xml | |
207 | %{_datadir}/glib-2.0/schemas/org.gnome.gitg.gschema.xml | |
208 | %{_desktopdir}/gitg.desktop | |
209 | %{_mandir}/man1/gitg.1* | |
210 | %{_iconsdir}/hicolor/*x*/apps/gitg.png | |
211 | %{_iconsdir}/hicolor/scalable/apps/gitg-symbolic.svg | |
212 | ||
213 | %files devel | |
214 | %defattr(644,root,root,755) | |
215 | %attr(755,root,root) %{_libdir}/libgitg-1.0.so | |
216 | %attr(755,root,root) %{_libdir}/libgitg-ext-1.0.so | |
217 | %{_includedir}/libgitg-1.0 | |
218 | %{_includedir}/libgitg-ext-1.0 | |
219 | %{_datadir}/gir-1.0/Gitg-1.0.gir | |
220 | %{_datadir}/gir-1.0/GitgExt-1.0.gir | |
221 | %{_pkgconfigdir}/libgitg-1.0.pc | |
222 | %{_pkgconfigdir}/libgitg-ext-1.0.pc | |
223 | ||
224 | %if %{with static_libs} | |
225 | %files static | |
226 | %defattr(644,root,root,755) | |
227 | %{_libdir}/libgitg-1.0.a | |
228 | %{_libdir}/libgitg-ext-1.0.a | |
229 | %endif | |
230 | ||
231 | %if %{with glade} | |
232 | %files glade | |
233 | %defattr(644,root,root,755) | |
234 | %{_datadir}/glade/catalogs/gitg-glade.xml | |
235 | %endif | |
236 | ||
237 | %files -n python3-gitg | |
238 | %defattr(644,root,root,755) | |
239 | %{py3_sitedir}/gi/overrides/GitgExt.py | |
240 | %{py3_sitedir}/gi/overrides/__pycache__/GitgExt.cpython-*.py[co] | |
241 | ||
242 | %files -n vala-gitg | |
243 | %defattr(644,root,root,755) | |
244 | %{_datadir}/vala/vapi/libgitg-1.0.vapi | |
245 | %{_datadir}/vala/vapi/libgitg-ext-1.0.vapi |