]> git.pld-linux.org Git - packages/vte.git/blame - vte.spec
- updated to 0.76.1
[packages/vte.git] / vte.spec
CommitLineData
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 8Summary: VTE terminal widget library
d2828306 9Summary(pl.UTF-8): Biblioteka z kontrolką terminala VTE
cfe79c9b 10Name: vte
73d543f7 11Version: 0.76.1
12b6e723 12Release: 1
6efa457d
JB
13# some files have LGPL v2.1+ signature, but some LGPL v3+
14License: LGPL v3+ (library), GPL v3+ (app)
cfe79c9b 15Group: X11/Libraries
0b81d36c 16Source0: https://download.gnome.org/sources/vte/0.76/%{name}-%{version}.tar.xz
73d543f7 17# Source0-md5: 5afec7fb15d190dfc075ce94388f774b
8b6b627f 18Patch0: %{name}-wordsep.patch
8d52deef 19URL: https://wiki.gnome.org/Apps/Terminal/VTE
9c90b1cd 20BuildRequires: cairo-gobject-devel
b20f4843 21BuildRequires: docbook-dtd412-xml
6efa457d 22BuildRequires: fribidi-devel >= 1.0.0
45d326fb
JB
23# C11
24BuildRequires: gcc >= 6:4.7
44f50e0f 25BuildRequires: gdk-pixbuf2-devel
32dfc36f 26BuildRequires: gettext-tools
0b81d36c 27BuildRequires: glib2-devel >= 1:2.72.0
e91a0acd 28BuildRequires: gnutls-devel >= 3.2.7
89ff5c97 29BuildRequires: gobject-introspection-devel >= 0.10.0
3b4445ca 30BuildRequires: gperf
f934ab15 31BuildRequires: gtk+3-devel >= 3.24.0
0b81d36c 32%{?with_gtk4:BuildRequires: gtk4-devel >= 4.14.0}
f934ab15 33%{?with_apidocs:BuildRequires: gi-docgen}
caeedbd5 34BuildRequires: intltool >= 0.40.0
8868f0f8 35BuildRequires: libicu-devel >= 4.8
917d40f1
JB
36# C++20 support (-std=gnu++2a, char8_t)
37BuildRequires: libstdc++-devel >= 6:9.0
c9db6ca2 38BuildRequires: libxml2-progs >= 2
0b81d36c 39BuildRequires: lz4-devel >= 1.9
8dcf4908 40BuildRequires: meson >= 0.60.0
c2c06135 41BuildRequires: ninja >= 1.5
882367f4 42BuildRequires: pango-devel >= 1:1.22.0
f6d4361b 43BuildRequires: pcre2-8-devel >= 10.21
049c0677 44BuildRequires: pkgconfig
0b81d36c 45BuildRequires: python3-devel >= 1:3.7
9e3af950 46BuildRequires: rpm-build >= 4.6
2ae621a2 47BuildRequires: rpmbuild(macros) >= 2.029
d497ddfb 48%{?with_systemd:BuildRequires: systemd-devel >= 1:220}
a54e0807 49BuildRequires: tar >= 1:1.22
9c90b1cd 50BuildRequires: vala >= 2:0.24
a54e0807 51BuildRequires: xz
891bed86 52BuildRequires: zlib-devel
6efa457d 53Requires: fribidi >= 1.0.0
0b81d36c 54Requires: glib2 >= 1:2.72.0
e91a0acd 55Requires: gnutls >= 3.2.7
f934ab15 56Requires: gtk+3 >= 3.24.0
8868f0f8 57Requires: libicu >= 4.8
0b81d36c 58Requires: lz4 >= 1.9
882367f4 59Requires: pango >= 1:1.22.0
d497ddfb 60%{?with_systemd:Requires: systemd-libs >= 1:220}
e91a0acd 61Obsoletes: vte-common < 0.42.0
cfe79c9b
AF
62BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63
cfe79c9b 64%description
81a45b35 65The vte package contains a terminal widget for GTK+ 3.x. It's used by
cfe79c9b
AF
66gnome-terminal among other programs.
67
6c917d2d 68%description -l pl.UTF-8
a7366067
JB
69Ten pakiet zawiera kontrolkę terminala dla GTK+ 3.x. Jest używany
70przez gnome-terminal oraz inne programy.
81a45b35 71
cfe79c9b 72%package devel
a7366067
JB
73Summary: Header files for VTE for GTK+ 3
74Summary(pl.UTF-8): Pliki nagłówkowe VTE dla GTK+ 3
6efa457d 75License: LGPL v3+
cfe79c9b 76Group: X11/Development/Libraries
efc3b9e1 77Requires: %{name} = %{version}-%{release}
0b81d36c 78Requires: glib2-devel >= 1:2.72.0
f934ab15 79Requires: gtk+3-devel >= 3.24.0
882367f4 80Requires: pango-devel >= 1:1.22.0
cfe79c9b
AF
81Conflicts: gnome-libs-devel < 1.4.1.2
82
83%description devel
a7366067 84This package contains header files for GTK+ 3 based vte library.
cfe79c9b 85
6c917d2d 86%description devel -l pl.UTF-8
a7366067
JB
87Pliki nagłówkowe potrzebne do kompilowania programów używających
88biblioteki vte opartej na GTK+ 3.
89
45d326fb
JB
90%package glade
91Summary: VTE catalog file for Glade
92Summary(pl.UTF-8): Plik katalogu VTE dla Glade
93Group: X11/Development/Libraries
94Requires: %{name}-devel = %{version}-%{release}
95Requires: glade >= 3
96
97%description glade
98VTE catalog file for Glade.
99
100%description glade -l pl.UTF-8
101Plik katalogu VTE dla Glade.
102
c9db6ca2
JB
103%package -n vala-vte
104Summary: Vala API for VTE library
105Summary(pl.UTF-8): API języka Vala dla biblioteki VTE
6efa457d 106License: LGPL v3+
c9db6ca2
JB
107Group: Development/Libraries
108Requires: %{name}-devel = %{version}-%{release}
2718a5d9 109Requires: vala >= 2:0.24
078e583e 110BuildArch: noarch
c9db6ca2
JB
111
112%description -n vala-vte
113Vala API for VTE library.
114
115%description -n vala-vte -l pl.UTF-8
116API języka Vala dla biblioteki VTE.
117
a7366067
JB
118%package apidocs
119Summary: VTE API documentation (GTK+ 3 version)
120Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK+ 3)
121Group: Documentation
078e583e 122BuildArch: noarch
a7366067
JB
123
124%description apidocs
125VTE API documentation (GTK+ 3 version).
126
127%description apidocs -l pl.UTF-8
128Dokumentacja API VTE (wersja dla GTK+ 3).
129
f934ab15
JB
130%package gtk4
131Summary: VTE terminal widget library (GTK 4 version)
132Summary(pl.UTF-8): Biblioteka z kontrolką terminala VTE (wersja dla GTK 4)
133Group: Libraries
134Requires: fribidi >= 1.0.0
0b81d36c 135Requires: glib2 >= 1:2.72.0
f934ab15 136Requires: gnutls >= 3.2.7
0b81d36c 137Requires: gtk4 >= 4.14.0
f934ab15
JB
138Requires: libicu >= 4.8
139Requires: pango >= 1:1.22.0
d497ddfb 140%{?with_systemd:Requires: systemd-libs >= 1:220}
f934ab15
JB
141# for common files
142Suggests: %{name} = %{version}-%{release}
143
144%description gtk4
145The vte package contains a terminal widget for GTK 4.x. It's used by
146gnome-terminal among other programs.
147
148%description gtk4 -l pl.UTF-8
149Ten pakiet zawiera kontrolkę terminala dla GTK 4. Jest używany przez
150gnome-terminal oraz inne programy.
151
152%package gtk4-devel
153Summary: Header files for VTE for GTK 4
154Summary(pl.UTF-8): Pliki nagłówkowe VTE dla GTK 4
155License: LGPL v3+
156Group: X11/Development/Libraries
9c263091 157Requires: %{name}-gtk4 = %{version}-%{release}
0b81d36c
JB
158Requires: glib2-devel >= 1:2.72.0
159Requires: gtk4-devel >= 4.14.0
f934ab15
JB
160Requires: pango-devel >= 1:1.22.0
161
162%description gtk4-devel
163This package contains header files for GTK 4 based vte library.
164
165%description gtk4-devel -l pl.UTF-8
166Pliki nagłówkowe potrzebne do kompilowania programów używających
167biblioteki vte opartej na GTK 4.
168
169%package -n vala-vte-gtk4
170Summary: Vala API for VTE library (GTK 4 version)
171Summary(pl.UTF-8): API języka Vala dla biblioteki VTE (wersja dla GTK 4)
172License: LGPL v3+
173Group: Development/Libraries
174Requires: %{name}-gtk4-devel = %{version}-%{release}
175Requires: vala >= 2:0.24
176BuildArch: noarch
177
178%description -n vala-vte-gtk4
179Vala API for VTE library (GTK 4 version).
180
181%description -n vala-vte-gtk4 -l pl.UTF-8
182API języka Vala dla biblioteki VTE (wersja dla GTK 4).
183
184%package gtk4-apidocs
185Summary: VTE API documentation (GTK 4 version)
186Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK 4)
187Group: Documentation
f934ab15
JB
188BuildArch: noarch
189
190%description gtk4-apidocs
191VTE API documentation (GTK 4 version).
192
193%description gtk4-apidocs -l pl.UTF-8
194Dokumentacja 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
216rm -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
222install -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
229rm -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
This page took 0.619338 seconds and 4 git commands to generate.