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