]>
Commit | Line | Data |
---|---|---|
53d96406 JB |
1 | # |
2 | # Conditional build: | |
e5611288 | 3 | %bcond_without apidocs # API documentation |
45d326fb | 4 | %bcond_without glade # Glade catalog |
f934ab15 | 5 | %bcond_without gtk4 # GTK+ 4 based library |
d497ddfb | 6 | %bcond_without systemd # systemd |
5df691fb | 7 | |
cfe79c9b | 8 | Summary: VTE terminal widget library |
d2828306 | 9 | Summary(pl.UTF-8): Biblioteka z kontrolką terminala VTE |
cfe79c9b | 10 | Name: vte |
12b6e723 JB |
11 | Version: 0.74.0 |
12 | Release: 1 | |
6efa457d JB |
13 | # some files have LGPL v2.1+ signature, but some LGPL v3+ |
14 | License: LGPL v3+ (library), GPL v3+ (app) | |
cfe79c9b | 15 | Group: X11/Libraries |
12b6e723 JB |
16 | Source0: https://download.gnome.org/sources/vte/0.74/%{name}-%{version}.tar.xz |
17 | # Source0-md5: ab2df0e0c0f197eb16eb4894bf8d2826 | |
8b6b627f | 18 | Patch0: %{name}-wordsep.patch |
8d52deef | 19 | URL: https://wiki.gnome.org/Apps/Terminal/VTE |
9c90b1cd | 20 | BuildRequires: cairo-gobject-devel |
b20f4843 | 21 | BuildRequires: docbook-dtd412-xml |
6efa457d | 22 | BuildRequires: fribidi-devel >= 1.0.0 |
45d326fb JB |
23 | # C11 |
24 | BuildRequires: gcc >= 6:4.7 | |
44f50e0f | 25 | BuildRequires: gdk-pixbuf2-devel |
32dfc36f | 26 | BuildRequires: gettext-tools |
8868f0f8 | 27 | BuildRequires: glib2-devel >= 1:2.52.0 |
e91a0acd | 28 | BuildRequires: gnutls-devel >= 3.2.7 |
89ff5c97 | 29 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
3b4445ca | 30 | BuildRequires: gperf |
f934ab15 | 31 | BuildRequires: gtk+3-devel >= 3.24.0 |
2f64a3b7 | 32 | %{?with_gtk4:BuildRequires: gtk4-devel >= 4.0.1} |
f934ab15 | 33 | %{?with_apidocs:BuildRequires: gi-docgen} |
caeedbd5 | 34 | BuildRequires: intltool >= 0.40.0 |
8868f0f8 | 35 | BuildRequires: libicu-devel >= 4.8 |
917d40f1 JB |
36 | # C++20 support (-std=gnu++2a, char8_t) |
37 | BuildRequires: libstdc++-devel >= 6:9.0 | |
c9db6ca2 | 38 | BuildRequires: libxml2-progs >= 2 |
8dcf4908 | 39 | BuildRequires: meson >= 0.60.0 |
c2c06135 | 40 | BuildRequires: ninja >= 1.5 |
882367f4 | 41 | BuildRequires: pango-devel >= 1:1.22.0 |
f6d4361b | 42 | BuildRequires: pcre2-8-devel >= 10.21 |
049c0677 | 43 | BuildRequires: pkgconfig |
9e3af950 | 44 | BuildRequires: rpm-build >= 4.6 |
1ecdf92a | 45 | BuildRequires: rpmbuild(macros) >= 1.752 |
d497ddfb | 46 | %{?with_systemd:BuildRequires: systemd-devel >= 1:220} |
a54e0807 | 47 | BuildRequires: tar >= 1:1.22 |
9c90b1cd | 48 | BuildRequires: vala >= 2:0.24 |
a54e0807 | 49 | BuildRequires: xz |
891bed86 | 50 | BuildRequires: zlib-devel |
6efa457d | 51 | Requires: fribidi >= 1.0.0 |
8868f0f8 | 52 | Requires: glib2 >= 1:2.52.0 |
e91a0acd | 53 | Requires: gnutls >= 3.2.7 |
f934ab15 | 54 | Requires: gtk+3 >= 3.24.0 |
8868f0f8 | 55 | Requires: libicu >= 4.8 |
882367f4 | 56 | Requires: pango >= 1:1.22.0 |
d497ddfb | 57 | %{?with_systemd:Requires: systemd-libs >= 1:220} |
e91a0acd | 58 | Obsoletes: vte-common < 0.42.0 |
cfe79c9b AF |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
60 | ||
cfe79c9b | 61 | %description |
81a45b35 | 62 | The vte package contains a terminal widget for GTK+ 3.x. It's used by |
cfe79c9b AF |
63 | gnome-terminal among other programs. |
64 | ||
6c917d2d | 65 | %description -l pl.UTF-8 |
a7366067 JB |
66 | Ten pakiet zawiera kontrolkę terminala dla GTK+ 3.x. Jest używany |
67 | przez gnome-terminal oraz inne programy. | |
81a45b35 | 68 | |
cfe79c9b | 69 | %package devel |
a7366067 JB |
70 | Summary: Header files for VTE for GTK+ 3 |
71 | Summary(pl.UTF-8): Pliki nagłówkowe VTE dla GTK+ 3 | |
6efa457d | 72 | License: LGPL v3+ |
cfe79c9b | 73 | Group: X11/Development/Libraries |
efc3b9e1 | 74 | Requires: %{name} = %{version}-%{release} |
8868f0f8 | 75 | Requires: glib2-devel >= 1:2.52.0 |
f934ab15 | 76 | Requires: gtk+3-devel >= 3.24.0 |
882367f4 | 77 | Requires: pango-devel >= 1:1.22.0 |
cfe79c9b AF |
78 | Conflicts: gnome-libs-devel < 1.4.1.2 |
79 | ||
80 | %description devel | |
a7366067 | 81 | This package contains header files for GTK+ 3 based vte library. |
cfe79c9b | 82 | |
6c917d2d | 83 | %description devel -l pl.UTF-8 |
a7366067 JB |
84 | Pliki nagłówkowe potrzebne do kompilowania programów używających |
85 | biblioteki vte opartej na GTK+ 3. | |
86 | ||
45d326fb JB |
87 | %package glade |
88 | Summary: VTE catalog file for Glade | |
89 | Summary(pl.UTF-8): Plik katalogu VTE dla Glade | |
90 | Group: X11/Development/Libraries | |
91 | Requires: %{name}-devel = %{version}-%{release} | |
92 | Requires: glade >= 3 | |
93 | ||
94 | %description glade | |
95 | VTE catalog file for Glade. | |
96 | ||
97 | %description glade -l pl.UTF-8 | |
98 | Plik katalogu VTE dla Glade. | |
99 | ||
c9db6ca2 JB |
100 | %package -n vala-vte |
101 | Summary: Vala API for VTE library | |
102 | Summary(pl.UTF-8): API języka Vala dla biblioteki VTE | |
6efa457d | 103 | License: LGPL v3+ |
c9db6ca2 JB |
104 | Group: Development/Libraries |
105 | Requires: %{name}-devel = %{version}-%{release} | |
2718a5d9 | 106 | Requires: vala >= 2:0.24 |
078e583e | 107 | BuildArch: noarch |
c9db6ca2 JB |
108 | |
109 | %description -n vala-vte | |
110 | Vala API for VTE library. | |
111 | ||
112 | %description -n vala-vte -l pl.UTF-8 | |
113 | API języka Vala dla biblioteki VTE. | |
114 | ||
a7366067 JB |
115 | %package apidocs |
116 | Summary: VTE API documentation (GTK+ 3 version) | |
117 | Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK+ 3) | |
118 | Group: Documentation | |
119 | Requires: gtk-doc-common | |
078e583e | 120 | BuildArch: noarch |
a7366067 JB |
121 | |
122 | %description apidocs | |
123 | VTE API documentation (GTK+ 3 version). | |
124 | ||
125 | %description apidocs -l pl.UTF-8 | |
126 | Dokumentacja API VTE (wersja dla GTK+ 3). | |
127 | ||
f934ab15 JB |
128 | %package gtk4 |
129 | Summary: VTE terminal widget library (GTK 4 version) | |
130 | Summary(pl.UTF-8): Biblioteka z kontrolką terminala VTE (wersja dla GTK 4) | |
131 | Group: Libraries | |
132 | Requires: fribidi >= 1.0.0 | |
133 | Requires: glib2 >= 1:2.52.0 | |
134 | Requires: gnutls >= 3.2.7 | |
135 | Requires: gtk4 >= 4.0.1 | |
136 | Requires: libicu >= 4.8 | |
137 | Requires: pango >= 1:1.22.0 | |
d497ddfb | 138 | %{?with_systemd:Requires: systemd-libs >= 1:220} |
f934ab15 JB |
139 | # for common files |
140 | Suggests: %{name} = %{version}-%{release} | |
141 | ||
142 | %description gtk4 | |
143 | The vte package contains a terminal widget for GTK 4.x. It's used by | |
144 | gnome-terminal among other programs. | |
145 | ||
146 | %description gtk4 -l pl.UTF-8 | |
147 | Ten pakiet zawiera kontrolkę terminala dla GTK 4. Jest używany przez | |
148 | gnome-terminal oraz inne programy. | |
149 | ||
150 | %package gtk4-devel | |
151 | Summary: Header files for VTE for GTK 4 | |
152 | Summary(pl.UTF-8): Pliki nagłówkowe VTE dla GTK 4 | |
153 | License: LGPL v3+ | |
154 | Group: X11/Development/Libraries | |
9c263091 | 155 | Requires: %{name}-gtk4 = %{version}-%{release} |
f934ab15 JB |
156 | Requires: glib2-devel >= 1:2.52.0 |
157 | Requires: gtk4-devel >= 4.0.1 | |
158 | Requires: pango-devel >= 1:1.22.0 | |
159 | ||
160 | %description gtk4-devel | |
161 | This package contains header files for GTK 4 based vte library. | |
162 | ||
163 | %description gtk4-devel -l pl.UTF-8 | |
164 | Pliki nagłówkowe potrzebne do kompilowania programów używających | |
165 | biblioteki vte opartej na GTK 4. | |
166 | ||
167 | %package -n vala-vte-gtk4 | |
168 | Summary: Vala API for VTE library (GTK 4 version) | |
169 | Summary(pl.UTF-8): API języka Vala dla biblioteki VTE (wersja dla GTK 4) | |
170 | License: LGPL v3+ | |
171 | Group: Development/Libraries | |
172 | Requires: %{name}-gtk4-devel = %{version}-%{release} | |
173 | Requires: vala >= 2:0.24 | |
174 | BuildArch: noarch | |
175 | ||
176 | %description -n vala-vte-gtk4 | |
177 | Vala API for VTE library (GTK 4 version). | |
178 | ||
179 | %description -n vala-vte-gtk4 -l pl.UTF-8 | |
180 | API języka Vala dla biblioteki VTE (wersja dla GTK 4). | |
181 | ||
182 | %package gtk4-apidocs | |
183 | Summary: VTE API documentation (GTK 4 version) | |
184 | Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK 4) | |
185 | Group: Documentation | |
186 | Requires: gtk-doc-common | |
187 | BuildArch: noarch | |
188 | ||
189 | %description gtk4-apidocs | |
190 | VTE API documentation (GTK 4 version). | |
191 | ||
192 | %description gtk4-apidocs -l pl.UTF-8 | |
193 | Dokumentacja API VTE (wersja dla GTK 4). | |
194 | ||
cfe79c9b | 195 | %prep |
28fdb696 | 196 | %setup -q |
8b6b627f | 197 | %patch0 -p1 |
cfe79c9b | 198 | |
bda1bcf2 | 199 | # it seems 9.0 with -std=gnu++2a is sufficient for 0.68.x (-std=gnu++20 option was added in 10.0) |
f934ab15 | 200 | %{__sed} -i -e '/cxx_req_std/ s/gnu++20/gnu++2a/; /gxx_req_version/ s/10\.0/9.0/' meson.build |
bda1bcf2 JB |
201 | # ...except for single test, which wants consteval and constinit |
202 | %{__sed} -i -e 's/consteval //;s/constinit //' src/pastify-test.cc | |
2f64a3b7 | 203 | |
cfe79c9b | 204 | %build |
c2c06135 | 205 | %meson build \ |
e5611288 | 206 | %{?with_apidocs:-Ddocs=true} \ |
45d326fb | 207 | %{!?with_glade:-Dglade=false} \ |
c2c06135 | 208 | -Dgtk3=true \ |
d497ddfb MK |
209 | -Dgtk4=%{__true_false gtk4} \ |
210 | %{!?with_systemd:-D_systemd=false} \ | |
c2c06135 JP |
211 | |
212 | %ninja_build -C build | |
cfe79c9b AF |
213 | |
214 | %install | |
215 | rm -rf $RPM_BUILD_ROOT | |
216 | ||
c2c06135 | 217 | %ninja_install -C build |
e6a03317 | 218 | |
f934ab15 JB |
219 | %if %{with apidocs} |
220 | # FIXME: where to package gi-docgen generated docs? | |
221 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} | |
222 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/vte-2.91* $RPM_BUILD_ROOT%{_gtkdocdir} | |
223 | %endif | |
224 | ||
c9db6ca2 | 225 | %find_lang %{name}-2.91 |
cfe79c9b AF |
226 | |
227 | %clean | |
228 | rm -rf $RPM_BUILD_ROOT | |
229 | ||
230 | %post -p /sbin/ldconfig | |
231 | %postun -p /sbin/ldconfig | |
232 | ||
f934ab15 JB |
233 | %post gtk4 -p /sbin/ldconfig |
234 | %postun gtk4 -p /sbin/ldconfig | |
235 | ||
c9db6ca2 | 236 | %files -f vte-2.91.lang |
cfe79c9b | 237 | %defattr(644,root,root,755) |
45d326fb | 238 | %doc AUTHORS ChangeLog README.md |
c9db6ca2 | 239 | %attr(755,root,root) %{_bindir}/vte-2.91 |
f934ab15 | 240 | # gtk-version neutral, move to common? |
8868f0f8 | 241 | %attr(755,root,root) %{_libexecdir}/vte-urlencode-cwd |
c9db6ca2 JB |
242 | %attr(755,root,root) %{_libdir}/libvte-2.91.so.*.*.* |
243 | %attr(755,root,root) %ghost %{_libdir}/libvte-2.91.so.0 | |
244 | %{_libdir}/girepository-1.0/Vte-2.91.typelib | |
8868f0f8 | 245 | %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.csh |
47c81231 | 246 | %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.sh |
d497ddfb | 247 | %if %{with systemd} |
8f9e9675 JB |
248 | %dir %{systemduserunitdir}/vte-spawn-.scope.d |
249 | %{systemduserunitdir}/vte-spawn-.scope.d/defaults.conf | |
d497ddfb | 250 | %endif |
81a45b35 | 251 | |
cfe79c9b AF |
252 | %files devel |
253 | %defattr(644,root,root,755) | |
c9db6ca2 JB |
254 | %attr(755,root,root) %{_libdir}/libvte-2.91.so |
255 | %{_includedir}/vte-2.91 | |
256 | %{_pkgconfigdir}/vte-2.91.pc | |
257 | %{_datadir}/gir-1.0/Vte-2.91.gir | |
cfe79c9b | 258 | |
45d326fb JB |
259 | %if %{with glade} |
260 | %files glade | |
261 | %defattr(644,root,root,755) | |
262 | %{_datadir}/glade/catalogs/vte-2.91.xml | |
263 | %{_datadir}/glade/pixmaps/hicolor/*x*/actions/widget-vte-terminal.png | |
264 | %endif | |
265 | ||
c9db6ca2 JB |
266 | %files -n vala-vte |
267 | %defattr(644,root,root,755) | |
c2c06135 | 268 | %{_datadir}/vala/vapi/vte-2.91.deps |
c9db6ca2 | 269 | %{_datadir}/vala/vapi/vte-2.91.vapi |
a7366067 | 270 | |
e5611288 | 271 | %if %{with apidocs} |
a7366067 JB |
272 | %files apidocs |
273 | %defattr(644,root,root,755) | |
f934ab15 JB |
274 | %{_gtkdocdir}/vte-2.91 |
275 | %endif | |
276 | ||
277 | %if %{with gtk4} | |
278 | %files gtk4 | |
279 | %defattr(644,root,root,755) | |
280 | %attr(755,root,root) %{_bindir}/vte-2.91-gtk4 | |
281 | %attr(755,root,root) %{_libdir}/libvte-2.91-gtk4.so.0 | |
282 | %{_libdir}/girepository-1.0/Vte-3.91.typelib | |
283 | ||
284 | %files gtk4-devel | |
285 | %defattr(644,root,root,755) | |
286 | %attr(755,root,root) %{_libdir}/libvte-2.91-gtk4.so | |
287 | %{_includedir}/vte-2.91-gtk4 | |
288 | %{_pkgconfigdir}/vte-2.91-gtk4.pc | |
289 | %{_datadir}/gir-1.0/Vte-3.91.gir | |
290 | ||
291 | %files -n vala-vte-gtk4 | |
292 | %defattr(644,root,root,755) | |
293 | %{_datadir}/vala/vapi/vte-2.91-gtk4.deps | |
294 | %{_datadir}/vala/vapi/vte-2.91-gtk4.vapi | |
295 | ||
296 | %if %{with apidocs} | |
297 | %files gtk4-apidocs | |
298 | %defattr(644,root,root,755) | |
299 | %{_gtkdocdir}/vte-2.91-gtk4 | |
300 | %endif | |
e5611288 | 301 | %endif |