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