]> git.pld-linux.org Git - packages/vte.git/blob - vte.spec
- updated to 0.76.1
[packages/vte.git] / vte.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs # API documentation
4 %bcond_without  glade   # Glade catalog
5 %bcond_without  gtk4    # GTK+ 4 based library
6 %bcond_without  systemd # systemd
7
8 Summary:        VTE terminal widget library
9 Summary(pl.UTF-8):      Biblioteka z kontrolką terminala VTE
10 Name:           vte
11 Version:        0.76.1
12 Release:        1
13 # some files have LGPL v2.1+ signature, but some LGPL v3+
14 License:        LGPL v3+ (library), GPL v3+ (app)
15 Group:          X11/Libraries
16 Source0:        https://download.gnome.org/sources/vte/0.76/%{name}-%{version}.tar.xz
17 # Source0-md5:  5afec7fb15d190dfc075ce94388f774b
18 Patch0:         %{name}-wordsep.patch
19 URL:            https://wiki.gnome.org/Apps/Terminal/VTE
20 BuildRequires:  cairo-gobject-devel
21 BuildRequires:  docbook-dtd412-xml
22 BuildRequires:  fribidi-devel >= 1.0.0
23 # C11
24 BuildRequires:  gcc >= 6:4.7
25 BuildRequires:  gdk-pixbuf2-devel
26 BuildRequires:  gettext-tools
27 BuildRequires:  glib2-devel >= 1:2.72.0
28 BuildRequires:  gnutls-devel >= 3.2.7
29 BuildRequires:  gobject-introspection-devel >= 0.10.0
30 BuildRequires:  gperf
31 BuildRequires:  gtk+3-devel >= 3.24.0
32 %{?with_gtk4:BuildRequires:     gtk4-devel >= 4.14.0}
33 %{?with_apidocs:BuildRequires:  gi-docgen}
34 BuildRequires:  intltool >= 0.40.0
35 BuildRequires:  libicu-devel >= 4.8
36 # C++20 support (-std=gnu++2a, char8_t)
37 BuildRequires:  libstdc++-devel >= 6:9.0
38 BuildRequires:  libxml2-progs >= 2
39 BuildRequires:  lz4-devel >= 1.9
40 BuildRequires:  meson >= 0.60.0
41 BuildRequires:  ninja >= 1.5
42 BuildRequires:  pango-devel >= 1:1.22.0
43 BuildRequires:  pcre2-8-devel >= 10.21
44 BuildRequires:  pkgconfig
45 BuildRequires:  python3-devel >= 1:3.7
46 BuildRequires:  rpm-build >= 4.6
47 BuildRequires:  rpmbuild(macros) >= 2.029
48 %{?with_systemd:BuildRequires:  systemd-devel >= 1:220}
49 BuildRequires:  tar >= 1:1.22
50 BuildRequires:  vala >= 2:0.24
51 BuildRequires:  xz
52 BuildRequires:  zlib-devel
53 Requires:       fribidi >= 1.0.0
54 Requires:       glib2 >= 1:2.72.0
55 Requires:       gnutls >= 3.2.7
56 Requires:       gtk+3 >= 3.24.0
57 Requires:       libicu >= 4.8
58 Requires:       lz4 >= 1.9
59 Requires:       pango >= 1:1.22.0
60 %{?with_systemd:Requires:       systemd-libs >= 1:220}
61 Obsoletes:      vte-common < 0.42.0
62 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63
64 %description
65 The vte package contains a terminal widget for GTK+ 3.x. It's used by
66 gnome-terminal among other programs.
67
68 %description -l pl.UTF-8
69 Ten pakiet zawiera kontrolkę terminala dla GTK+ 3.x. Jest używany
70 przez gnome-terminal oraz inne programy.
71
72 %package devel
73 Summary:        Header files for VTE for GTK+ 3
74 Summary(pl.UTF-8):      Pliki nagłówkowe VTE dla GTK+ 3
75 License:        LGPL v3+
76 Group:          X11/Development/Libraries
77 Requires:       %{name} = %{version}-%{release}
78 Requires:       glib2-devel >= 1:2.72.0
79 Requires:       gtk+3-devel >= 3.24.0
80 Requires:       pango-devel >= 1:1.22.0
81 Conflicts:      gnome-libs-devel < 1.4.1.2
82
83 %description devel
84 This package contains header files for GTK+ 3 based vte library.
85
86 %description devel -l pl.UTF-8
87 Pliki nagłówkowe potrzebne do kompilowania programów używających
88 biblioteki vte opartej na GTK+ 3.
89
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
103 %package -n vala-vte
104 Summary:        Vala API for VTE library
105 Summary(pl.UTF-8):      API języka Vala dla biblioteki VTE
106 License:        LGPL v3+
107 Group:          Development/Libraries
108 Requires:       %{name}-devel = %{version}-%{release}
109 Requires:       vala >= 2:0.24
110 BuildArch:      noarch
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
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
122 BuildArch:      noarch
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
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
135 Requires:       glib2 >= 1:2.72.0
136 Requires:       gnutls >= 3.2.7
137 Requires:       gtk4 >= 4.14.0
138 Requires:       libicu >= 4.8
139 Requires:       pango >= 1:1.22.0
140 %{?with_systemd:Requires:       systemd-libs >= 1:220}
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
157 Requires:       %{name}-gtk4 = %{version}-%{release}
158 Requires:       glib2-devel >= 1:2.72.0
159 Requires:       gtk4-devel >= 4.14.0
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
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
196 %prep
197 %setup -q
198 %patch0 -p1
199
200 # it seems 9.0 with -std=gnu++2a is sufficient for 0.68.x (-std=gnu++20 option was added in 10.0)
201 %{__sed} -i -e '/cxx_req_std/ s/gnu++20/gnu++2a/; /gxx_req_version/ s/10\.0/9.0/' meson.build
202 # ...except for single test, which wants consteval and constinit
203 %{__sed} -i -e 's/consteval //;s/constinit //' src/pastify-test.cc
204
205 %build
206 %meson build \
207         %{?with_apidocs:-Ddocs=true} \
208         %{!?with_glade:-Dglade=false} \
209         -Dgtk3=true \
210         -Dgtk4=%{__true_false gtk4} \
211         %{!?with_systemd:-D_systemd=false} \
212
213 %ninja_build -C build
214
215 %install
216 rm -rf $RPM_BUILD_ROOT
217
218 %ninja_install -C build
219
220 %if %{with apidocs}
221 # FIXME: where to package gi-docgen generated docs?
222 install -d $RPM_BUILD_ROOT%{_gidocdir}
223 %{__mv} $RPM_BUILD_ROOT%{_docdir}/vte-2.91* $RPM_BUILD_ROOT%{_gidocdir}
224 %endif
225
226 %find_lang %{name}-2.91
227
228 %clean
229 rm -rf $RPM_BUILD_ROOT
230
231 %post   -p /sbin/ldconfig
232 %postun -p /sbin/ldconfig
233
234 %post   gtk4 -p /sbin/ldconfig
235 %postun gtk4 -p /sbin/ldconfig
236
237 %files -f vte-2.91.lang
238 %defattr(644,root,root,755)
239 %doc AUTHORS ChangeLog README.md
240 %attr(755,root,root) %{_bindir}/vte-2.91
241 # gtk-version neutral, move to common?
242 %attr(755,root,root) %{_libexecdir}/vte-urlencode-cwd
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
246 %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.csh
247 %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.sh
248 %if %{with systemd}
249 %dir %{systemduserunitdir}/vte-spawn-.scope.d
250 %{systemduserunitdir}/vte-spawn-.scope.d/defaults.conf
251 %endif
252
253 %files devel
254 %defattr(644,root,root,755)
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
259
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
267 %files -n vala-vte
268 %defattr(644,root,root,755)
269 %{_datadir}/vala/vapi/vte-2.91.deps
270 %{_datadir}/vala/vapi/vte-2.91.vapi
271
272 %if %{with apidocs}
273 %files apidocs
274 %defattr(644,root,root,755)
275 %{_gidocdir}/vte-2.91
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)
300 %{_gidocdir}/vte-2.91-gtk4
301 %endif
302 %endif
This page took 0.086513 seconds and 4 git commands to generate.