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