]>
Commit | Line | Data |
---|---|---|
53d96406 JB |
1 | # |
2 | # Conditional build: | |
e5611288 | 3 | %bcond_without apidocs # API documentation |
45d326fb | 4 | %bcond_without glade # Glade catalog |
2f64a3b7 | 5 | %bcond_with gtk4 # GTK+ 4 based library [not supported yet in 0.66.0] |
5df691fb | 6 | |
cfe79c9b | 7 | Summary: VTE terminal widget library |
d2828306 | 8 | Summary(pl.UTF-8): Biblioteka z kontrolką terminala VTE |
cfe79c9b | 9 | Name: vte |
2f64a3b7 JB |
10 | Version: 0.66.0 |
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 |
2f64a3b7 JB |
15 | Source0: https://download.gnome.org/sources/vte/0.66/%{name}-%{version}.tar.xz |
16 | # Source0-md5: b06eb2592012e5689ddf44faf6d5df4a | |
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 |
049c0677 | 25 | BuildRequires: gettext-devel |
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 |
8868f0f8 | 30 | BuildRequires: gtk+3-devel >= 3.20.0 |
2f64a3b7 | 31 | %{?with_gtk4:BuildRequires: gtk4-devel >= 4.0.1} |
e5611288 | 32 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
caeedbd5 | 33 | BuildRequires: intltool >= 0.40.0 |
8868f0f8 | 34 | BuildRequires: libicu-devel >= 4.8 |
2f64a3b7 JB |
35 | # C++20 support (-std=gnu++2a) |
36 | BuildRequires: libstdc++-devel >= 6:8.0 | |
c9db6ca2 | 37 | BuildRequires: libxml2-progs >= 2 |
8868f0f8 | 38 | BuildRequires: meson >= 0.50.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 |
8868f0f8 JP |
53 | Requires: gtk+3 >= 3.20.0 |
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 JP |
74 | Requires: glib2-devel >= 1:2.52.0 |
75 | Requires: gtk+3-devel >= 3.20.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 | ||
cfe79c9b | 127 | %prep |
28fdb696 | 128 | %setup -q |
8b6b627f | 129 | %patch0 -p1 |
cfe79c9b | 130 | |
2f64a3b7 JB |
131 | # it seems 8.0 with -std=gnu++2a is sufficient for 0.66.x (-std=gnu++20 option was added in 10.0) |
132 | %{__sed} -i -e '/cxx_req_std/ s/gnu++20/gnu++2a/; /gxx_req_version/ s/10\.0/8.0/' meson.build | |
133 | ||
134 | # adjust for PLD %{_gtkdocdir} | |
135 | %{__sed} -i -e '/HTML_DIR/ s,/gtk-doc/,/doc/gtk-doc/,' doc/reference/Makefile.docs | |
136 | ||
cfe79c9b | 137 | %build |
c2c06135 | 138 | %meson build \ |
e5611288 | 139 | %{?with_apidocs:-Ddocs=true} \ |
45d326fb | 140 | %{!?with_glade:-Dglade=false} \ |
c2c06135 JP |
141 | -Dgtk3=true \ |
142 | -Dgtk4=%{__true_false gtk4} | |
143 | ||
144 | %ninja_build -C build | |
cfe79c9b AF |
145 | |
146 | %install | |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
c2c06135 | 149 | %ninja_install -C build |
e6a03317 | 150 | |
c9db6ca2 | 151 | %find_lang %{name}-2.91 |
cfe79c9b AF |
152 | |
153 | %clean | |
154 | rm -rf $RPM_BUILD_ROOT | |
155 | ||
156 | %post -p /sbin/ldconfig | |
157 | %postun -p /sbin/ldconfig | |
158 | ||
c9db6ca2 | 159 | %files -f vte-2.91.lang |
cfe79c9b | 160 | %defattr(644,root,root,755) |
45d326fb | 161 | %doc AUTHORS ChangeLog README.md |
c9db6ca2 | 162 | %attr(755,root,root) %{_bindir}/vte-2.91 |
8868f0f8 | 163 | %attr(755,root,root) %{_libexecdir}/vte-urlencode-cwd |
c9db6ca2 JB |
164 | %attr(755,root,root) %{_libdir}/libvte-2.91.so.*.*.* |
165 | %attr(755,root,root) %ghost %{_libdir}/libvte-2.91.so.0 | |
166 | %{_libdir}/girepository-1.0/Vte-2.91.typelib | |
8868f0f8 | 167 | %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.csh |
47c81231 | 168 | %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.sh |
8f9e9675 JB |
169 | %dir %{systemduserunitdir}/vte-spawn-.scope.d |
170 | %{systemduserunitdir}/vte-spawn-.scope.d/defaults.conf | |
81a45b35 | 171 | |
cfe79c9b AF |
172 | %files devel |
173 | %defattr(644,root,root,755) | |
c9db6ca2 JB |
174 | %attr(755,root,root) %{_libdir}/libvte-2.91.so |
175 | %{_includedir}/vte-2.91 | |
176 | %{_pkgconfigdir}/vte-2.91.pc | |
177 | %{_datadir}/gir-1.0/Vte-2.91.gir | |
cfe79c9b | 178 | |
45d326fb JB |
179 | %if %{with glade} |
180 | %files glade | |
181 | %defattr(644,root,root,755) | |
182 | %{_datadir}/glade/catalogs/vte-2.91.xml | |
183 | %{_datadir}/glade/pixmaps/hicolor/*x*/actions/widget-vte-terminal.png | |
184 | %endif | |
185 | ||
c9db6ca2 JB |
186 | %files -n vala-vte |
187 | %defattr(644,root,root,755) | |
c2c06135 | 188 | %{_datadir}/vala/vapi/vte-2.91.deps |
c9db6ca2 | 189 | %{_datadir}/vala/vapi/vte-2.91.vapi |
a7366067 | 190 | |
e5611288 | 191 | %if %{with apidocs} |
a7366067 JB |
192 | %files apidocs |
193 | %defattr(644,root,root,755) | |
2f64a3b7 | 194 | %{_gtkdocdir}/vte-gtk3-2.91 |
e5611288 | 195 | %endif |