]>
Commit | Line | Data |
---|---|---|
53d96406 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without glade # Glade catalog | |
3b4445ca | 4 | %bcond_with gtk4 # GTK+ 4 based library [doesn't build with 3.90] |
5df691fb | 5 | |
cfe79c9b | 6 | Summary: VTE terminal widget library |
d2828306 | 7 | Summary(pl.UTF-8): Biblioteka z kontrolką terminala VTE |
cfe79c9b | 8 | Name: vte |
541530fe | 9 | Version: 0.56.3 |
94e98052 | 10 | Release: 1 |
c9db6ca2 | 11 | License: LGPL v2.1+ |
cfe79c9b | 12 | Group: X11/Libraries |
d0a800b9 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/vte/0.56/%{name}-%{version}.tar.xz |
541530fe | 14 | # Source0-md5: adf341807861a5dad9f98e5c701c0769 |
8b6b627f | 15 | Patch0: %{name}-wordsep.patch |
dcbefd68 | 16 | Patch1: %{name}-pthread.patch |
89ff5c97 | 17 | BuildRequires: autoconf >= 2.63 |
caeedbd5 | 18 | BuildRequires: automake >= 1:1.9 |
9c90b1cd | 19 | BuildRequires: cairo-gobject-devel |
b20f4843 | 20 | BuildRequires: docbook-dtd412-xml |
44f50e0f | 21 | BuildRequires: gdk-pixbuf2-devel |
049c0677 | 22 | BuildRequires: gettext-devel |
53d96406 | 23 | %{?with_glade:BuildRequires: glade-devel >= 3} |
c9db6ca2 | 24 | BuildRequires: glib2-devel >= 1:2.40.0 |
e91a0acd | 25 | BuildRequires: gnutls-devel >= 3.2.7 |
89ff5c97 | 26 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
3b4445ca | 27 | BuildRequires: gperf |
c9db6ca2 | 28 | BuildRequires: gtk+3-devel >= 3.8.0 |
3b4445ca | 29 | %{?with_gtk4:BuildRequires: gtk+4-devel >= 3.89} |
0471d6bf | 30 | BuildRequires: gtk-doc >= 1.13 |
882367f4 | 31 | BuildRequires: gtk-doc-automake >= 1.13 |
caeedbd5 | 32 | BuildRequires: intltool >= 0.40.0 |
9c90b1cd JB |
33 | # -std=c++17, with constexpr lambdas support |
34 | BuildRequires: libstdc++-devel >= 6:7.0 | |
882367f4 | 35 | BuildRequires: libtool >= 2:2.2 |
c9db6ca2 | 36 | BuildRequires: libxml2-progs >= 2 |
049c0677 | 37 | BuildRequires: ncurses-devel |
882367f4 | 38 | BuildRequires: pango-devel >= 1:1.22.0 |
f6d4361b | 39 | BuildRequires: pcre2-8-devel >= 10.21 |
049c0677 | 40 | BuildRequires: pkgconfig |
89ff5c97 | 41 | BuildRequires: rpmbuild(macros) >= 1.592 |
a54e0807 | 42 | BuildRequires: tar >= 1:1.22 |
9c90b1cd | 43 | BuildRequires: vala >= 2:0.24 |
a54e0807 | 44 | BuildRequires: xz |
891bed86 | 45 | BuildRequires: zlib-devel |
c9db6ca2 | 46 | Requires: glib2 >= 1:2.40.0 |
e91a0acd | 47 | Requires: gnutls >= 3.2.7 |
c9db6ca2 | 48 | Requires: gtk+3 >= 3.8.0 |
882367f4 | 49 | Requires: pango >= 1:1.22.0 |
e91a0acd | 50 | Obsoletes: vte-common < 0.42.0 |
ed398031 | 51 | # sr@Latn vs. sr@latin |
a54e0807 | 52 | Conflicts: glibc-misc < 6:2.7 |
cfe79c9b AF |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
cfe79c9b | 55 | %description |
81a45b35 | 56 | The vte package contains a terminal widget for GTK+ 3.x. It's used by |
cfe79c9b AF |
57 | gnome-terminal among other programs. |
58 | ||
6c917d2d | 59 | %description -l pl.UTF-8 |
a7366067 JB |
60 | Ten pakiet zawiera kontrolkę terminala dla GTK+ 3.x. Jest używany |
61 | przez gnome-terminal oraz inne programy. | |
81a45b35 AF |
62 | |
63 | %package common | |
64 | Summary: Common files for vte and vte0 | |
a7366067 | 65 | Summary(pl.UTF-8): Pliki wspólne dla vte i vte0 |
81a45b35 | 66 | Group: X11/Libraries |
a7366067 | 67 | Requires(pre): utempter |
81a45b35 AF |
68 | |
69 | %description common | |
a7366067 JB |
70 | Common files for GTK+ 3 based vte and GTK+ 2 based vte0. |
71 | ||
72 | %description common -l pl.UTF-8 | |
73 | Pliki wspólne dla vte opartego na GTK+ 3 oraz vte0 opartego na GTK+ 2. | |
81a45b35 | 74 | |
cfe79c9b | 75 | %package devel |
a7366067 JB |
76 | Summary: Header files for VTE for GTK+ 3 |
77 | Summary(pl.UTF-8): Pliki nagłówkowe VTE dla GTK+ 3 | |
cfe79c9b | 78 | Group: X11/Development/Libraries |
efc3b9e1 | 79 | Requires: %{name} = %{version}-%{release} |
c9db6ca2 | 80 | Requires: glib2-devel >= 1:2.40.0 |
e91a0acd | 81 | Requires: gnutls-devel >= 3.2.7 |
c9db6ca2 | 82 | Requires: gtk+3-devel >= 3.8.0 |
f41aff32 | 83 | Requires: ncurses-devel |
882367f4 | 84 | Requires: pango-devel >= 1:1.22.0 |
f6d4361b | 85 | Requires: pcre2-8-devel >= 10.21 |
891bed86 | 86 | Requires: zlib-devel |
cfe79c9b AF |
87 | Conflicts: gnome-libs-devel < 1.4.1.2 |
88 | ||
89 | %description devel | |
a7366067 | 90 | This package contains header files for GTK+ 3 based vte library. |
cfe79c9b | 91 | |
6c917d2d | 92 | %description devel -l pl.UTF-8 |
a7366067 JB |
93 | Pliki nagłówkowe potrzebne do kompilowania programów używających |
94 | biblioteki vte opartej na GTK+ 3. | |
95 | ||
96 | %package static | |
97 | Summary: Static VTE library for GTK+ 3 | |
98 | Summary(pl.UTF-8): Statyczna biblioteka VTE dla GTK+ 3 | |
99 | Group: X11/Development/Libraries | |
100 | Requires: %{name}-devel = %{version}-%{release} | |
101 | Conflicts: gnome-libs-static < 1.4.1.2 | |
102 | ||
103 | %description static | |
104 | Static version of VTE library for GTK+ 3. | |
105 | ||
106 | %description static -l pl.UTF-8 | |
107 | Statyczna wersja biblioteki VTE dla GTK+ 3. | |
108 | ||
53d96406 JB |
109 | %package glade |
110 | Summary: VTE catalog file for Glade | |
111 | Summary(pl.UTF-8): Plik katalogu VTE dla Glade | |
112 | Group: X11/Development/Libraries | |
113 | Requires: %{name}-devel = %{version}-%{release} | |
114 | Requires: glade >= 3 | |
115 | ||
116 | %description glade | |
117 | VTE catalog file for Glade. | |
118 | ||
119 | %description glade -l pl.UTF-8 | |
120 | Plik katalogu VTE dla Glade. | |
121 | ||
c9db6ca2 JB |
122 | %package -n vala-vte |
123 | Summary: Vala API for VTE library | |
124 | Summary(pl.UTF-8): API języka Vala dla biblioteki VTE | |
125 | Group: Development/Libraries | |
126 | Requires: %{name}-devel = %{version}-%{release} | |
2718a5d9 | 127 | Requires: vala >= 2:0.24 |
5df691fb ER |
128 | %if "%{_rpmversion}" >= "5" |
129 | BuildArch: noarch | |
130 | %endif | |
c9db6ca2 JB |
131 | |
132 | %description -n vala-vte | |
133 | Vala API for VTE library. | |
134 | ||
135 | %description -n vala-vte -l pl.UTF-8 | |
136 | API języka Vala dla biblioteki VTE. | |
137 | ||
a7366067 JB |
138 | %package apidocs |
139 | Summary: VTE API documentation (GTK+ 3 version) | |
140 | Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK+ 3) | |
141 | Group: Documentation | |
142 | Requires: gtk-doc-common | |
8dfe5a97 ER |
143 | %if "%{_rpmversion}" >= "5" |
144 | BuildArch: noarch | |
145 | %endif | |
a7366067 JB |
146 | |
147 | %description apidocs | |
148 | VTE API documentation (GTK+ 3 version). | |
149 | ||
150 | %description apidocs -l pl.UTF-8 | |
151 | Dokumentacja API VTE (wersja dla GTK+ 3). | |
152 | ||
cfe79c9b | 153 | %prep |
28fdb696 | 154 | %setup -q |
8b6b627f | 155 | %patch0 -p1 |
dcbefd68 | 156 | %patch1 -p1 |
cfe79c9b AF |
157 | |
158 | %build | |
65f8a03f | 159 | %{__gtkdocize} |
62df6718 | 160 | %{__glib_gettextize} |
a3456d5d | 161 | %{__intltoolize} |
dcd5996b | 162 | %{__libtoolize} |
163 | %{__aclocal} | |
164 | %{__autoheader} | |
165 | %{__automake} | |
166 | %{__autoconf} | |
3b4445ca JB |
167 | install -d build-gtk3 |
168 | cd build-gtk3 | |
169 | ../%configure \ | |
a54e0807 | 170 | --disable-silent-rules \ |
53d96406 | 171 | %{?with_glade:--enable-glade-catalogue} \ |
d146662f | 172 | --enable-gtk-doc \ |
89ff5c97 | 173 | --enable-introspection \ |
65f8a03f | 174 | --with-html-dir=%{_gtkdocdir} |
81a45b35 | 175 | %{__make} |
3b4445ca JB |
176 | cd .. |
177 | ||
178 | %if %{with gtk4} | |
179 | install -d build-gtk4 | |
180 | cd build-gtk4 | |
181 | # note: "3.902468" is a result of configure.ac bug (unquoted brackets) | |
182 | ../%configure \ | |
183 | --disable-silent-rules \ | |
184 | --enable-gtk-doc \ | |
185 | --enable-introspection \ | |
186 | --with-gtk=3.902468 \ | |
187 | --with-html-dir=%{_gtkdocdir} | |
188 | %{__make} | |
189 | %endif | |
cfe79c9b AF |
190 | |
191 | %install | |
192 | rm -rf $RPM_BUILD_ROOT | |
193 | ||
3b4445ca JB |
194 | %if %{with gtk4} |
195 | %{__make} -C build-gtk4 install \ | |
196 | DESTDIR=$RPM_BUILD_ROOT | |
197 | %endif | |
198 | ||
199 | %{__make} -C build-gtk3 install \ | |
7c0544b4 | 200 | DESTDIR=$RPM_BUILD_ROOT |
ead4696e | 201 | |
ed398031 | 202 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
e6a03317 | 203 | |
c9db6ca2 | 204 | %find_lang %{name}-2.91 |
cfe79c9b AF |
205 | |
206 | %clean | |
207 | rm -rf $RPM_BUILD_ROOT | |
208 | ||
209 | %post -p /sbin/ldconfig | |
210 | %postun -p /sbin/ldconfig | |
211 | ||
c9db6ca2 | 212 | %files -f vte-2.91.lang |
cfe79c9b | 213 | %defattr(644,root,root,755) |
a8e69477 | 214 | %doc AUTHORS ChangeLog NEWS |
c9db6ca2 JB |
215 | %attr(755,root,root) %{_bindir}/vte-2.91 |
216 | %attr(755,root,root) %{_libdir}/libvte-2.91.so.*.*.* | |
217 | %attr(755,root,root) %ghost %{_libdir}/libvte-2.91.so.0 | |
218 | %{_libdir}/girepository-1.0/Vte-2.91.typelib | |
47c81231 | 219 | %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.sh |
81a45b35 | 220 | |
cfe79c9b AF |
221 | %files devel |
222 | %defattr(644,root,root,755) | |
c9db6ca2 JB |
223 | %attr(755,root,root) %{_libdir}/libvte-2.91.so |
224 | %{_includedir}/vte-2.91 | |
225 | %{_pkgconfigdir}/vte-2.91.pc | |
226 | %{_datadir}/gir-1.0/Vte-2.91.gir | |
cfe79c9b | 227 | |
a7366067 JB |
228 | %files static |
229 | %defattr(644,root,root,755) | |
c9db6ca2 JB |
230 | %{_libdir}/libvte-2.91.a |
231 | ||
53d96406 JB |
232 | %if %{with glade} |
233 | %files glade | |
234 | %defattr(644,root,root,755) | |
235 | %{_datadir}/glade/catalogs/vte-2.91.xml | |
236 | %{_datadir}/glade/pixmaps/hicolor/16x16/actions/widget-vte-terminal.png | |
237 | %{_datadir}/glade/pixmaps/hicolor/22x22/actions/widget-vte-terminal.png | |
238 | %endif | |
239 | ||
c9db6ca2 JB |
240 | %files -n vala-vte |
241 | %defattr(644,root,root,755) | |
242 | %{_datadir}/vala/vapi/vte-2.91.vapi | |
a7366067 JB |
243 | |
244 | %files apidocs | |
245 | %defattr(644,root,root,755) | |
c9db6ca2 | 246 | %{_gtkdocdir}/vte-2.91 |