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