]>
Commit | Line | Data |
---|---|---|
53d96406 JB |
1 | # |
2 | # Conditional build: | |
e5611288 | 3 | %bcond_without apidocs # API documentation |
3b4445ca | 4 | %bcond_with gtk4 # GTK+ 4 based library [doesn't build with 3.90] |
5df691fb | 5 | |
cfe79c9b | 6 | Summary: VTE terminal widget library |
d2828306 | 7 | Summary(pl.UTF-8): Biblioteka z kontrolką terminala VTE |
cfe79c9b | 8 | Name: vte |
387595e2 | 9 | Version: 0.62.3 |
e5611288 | 10 | Release: 1 |
6efa457d JB |
11 | # some files have LGPL v2.1+ signature, but some LGPL v3+ |
12 | License: LGPL v3+ (library), GPL v3+ (app) | |
cfe79c9b | 13 | Group: X11/Libraries |
14445f13 | 14 | Source0: https://download.gnome.org/sources/vte/0.62/%{name}-%{version}.tar.xz |
387595e2 | 15 | # Source0-md5: 234c80d99b7200ac39734f77366da822 |
8b6b627f | 16 | Patch0: %{name}-wordsep.patch |
8d52deef | 17 | URL: https://wiki.gnome.org/Apps/Terminal/VTE |
9c90b1cd | 18 | BuildRequires: cairo-gobject-devel |
b20f4843 | 19 | BuildRequires: docbook-dtd412-xml |
6efa457d | 20 | BuildRequires: fribidi-devel >= 1.0.0 |
44f50e0f | 21 | BuildRequires: gdk-pixbuf2-devel |
049c0677 | 22 | BuildRequires: gettext-devel |
8868f0f8 | 23 | BuildRequires: glib2-devel >= 1:2.52.0 |
e91a0acd | 24 | BuildRequires: gnutls-devel >= 3.2.7 |
89ff5c97 | 25 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
3b4445ca | 26 | BuildRequires: gperf |
8868f0f8 | 27 | BuildRequires: gtk+3-devel >= 3.20.0 |
6efa457d | 28 | %{?with_gtk4:BuildRequires: gtk+4-devel >= 4.0.0} |
e5611288 | 29 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
caeedbd5 | 30 | BuildRequires: intltool >= 0.40.0 |
8868f0f8 | 31 | BuildRequires: libicu-devel >= 4.8 |
6efa457d | 32 | # C++17 support (-std=gnu++17, with constexpr lambdas support) |
9c90b1cd | 33 | BuildRequires: libstdc++-devel >= 6:7.0 |
c9db6ca2 | 34 | BuildRequires: libxml2-progs >= 2 |
8868f0f8 | 35 | BuildRequires: meson >= 0.50.0 |
c2c06135 | 36 | BuildRequires: ninja >= 1.5 |
882367f4 | 37 | BuildRequires: pango-devel >= 1:1.22.0 |
f6d4361b | 38 | BuildRequires: pcre2-8-devel >= 10.21 |
049c0677 | 39 | BuildRequires: pkgconfig |
1ecdf92a | 40 | BuildRequires: rpmbuild(macros) >= 1.752 |
8f9e9675 | 41 | BuildRequires: systemd-devel >= 1:220 |
a54e0807 | 42 | BuildRequires: tar >= 1:1.22 |
9c90b1cd | 43 | BuildRequires: vala >= 2:0.24 |
a54e0807 | 44 | BuildRequires: xz |
891bed86 | 45 | BuildRequires: zlib-devel |
6efa457d | 46 | Requires: fribidi >= 1.0.0 |
8868f0f8 | 47 | Requires: glib2 >= 1:2.52.0 |
e91a0acd | 48 | Requires: gnutls >= 3.2.7 |
8868f0f8 JP |
49 | Requires: gtk+3 >= 3.20.0 |
50 | Requires: libicu >= 4.8 | |
882367f4 | 51 | Requires: pango >= 1:1.22.0 |
8f9e9675 | 52 | Requires: systemd-libs >= 1:220 |
e91a0acd | 53 | Obsoletes: vte-common < 0.42.0 |
c2c06135 | 54 | Obsoletes: vte-glade < 0.58.0 |
cfe79c9b AF |
55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
56 | ||
cfe79c9b | 57 | %description |
81a45b35 | 58 | The vte package contains a terminal widget for GTK+ 3.x. It's used by |
cfe79c9b AF |
59 | gnome-terminal among other programs. |
60 | ||
6c917d2d | 61 | %description -l pl.UTF-8 |
a7366067 JB |
62 | Ten pakiet zawiera kontrolkę terminala dla GTK+ 3.x. Jest używany |
63 | przez gnome-terminal oraz inne programy. | |
81a45b35 | 64 | |
cfe79c9b | 65 | %package devel |
a7366067 JB |
66 | Summary: Header files for VTE for GTK+ 3 |
67 | Summary(pl.UTF-8): Pliki nagłówkowe VTE dla GTK+ 3 | |
6efa457d | 68 | License: LGPL v3+ |
cfe79c9b | 69 | Group: X11/Development/Libraries |
efc3b9e1 | 70 | Requires: %{name} = %{version}-%{release} |
8868f0f8 JP |
71 | Requires: glib2-devel >= 1:2.52.0 |
72 | Requires: gtk+3-devel >= 3.20.0 | |
882367f4 | 73 | Requires: pango-devel >= 1:1.22.0 |
cfe79c9b AF |
74 | Conflicts: gnome-libs-devel < 1.4.1.2 |
75 | ||
76 | %description devel | |
a7366067 | 77 | This package contains header files for GTK+ 3 based vte library. |
cfe79c9b | 78 | |
6c917d2d | 79 | %description devel -l pl.UTF-8 |
a7366067 JB |
80 | Pliki nagłówkowe potrzebne do kompilowania programów używających |
81 | biblioteki vte opartej na GTK+ 3. | |
82 | ||
c9db6ca2 JB |
83 | %package -n vala-vte |
84 | Summary: Vala API for VTE library | |
85 | Summary(pl.UTF-8): API języka Vala dla biblioteki VTE | |
6efa457d | 86 | License: LGPL v3+ |
c9db6ca2 JB |
87 | Group: Development/Libraries |
88 | Requires: %{name}-devel = %{version}-%{release} | |
2718a5d9 | 89 | Requires: vala >= 2:0.24 |
078e583e | 90 | BuildArch: noarch |
c9db6ca2 JB |
91 | |
92 | %description -n vala-vte | |
93 | Vala API for VTE library. | |
94 | ||
95 | %description -n vala-vte -l pl.UTF-8 | |
96 | API języka Vala dla biblioteki VTE. | |
97 | ||
a7366067 JB |
98 | %package apidocs |
99 | Summary: VTE API documentation (GTK+ 3 version) | |
100 | Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK+ 3) | |
101 | Group: Documentation | |
102 | Requires: gtk-doc-common | |
078e583e | 103 | BuildArch: noarch |
a7366067 JB |
104 | |
105 | %description apidocs | |
106 | VTE API documentation (GTK+ 3 version). | |
107 | ||
108 | %description apidocs -l pl.UTF-8 | |
109 | Dokumentacja API VTE (wersja dla GTK+ 3). | |
110 | ||
cfe79c9b | 111 | %prep |
28fdb696 | 112 | %setup -q |
8b6b627f | 113 | %patch0 -p1 |
cfe79c9b AF |
114 | |
115 | %build | |
c2c06135 | 116 | %meson build \ |
e5611288 | 117 | %{?with_apidocs:-Ddocs=true} \ |
c2c06135 JP |
118 | -Dgtk3=true \ |
119 | -Dgtk4=%{__true_false gtk4} | |
120 | ||
121 | %ninja_build -C build | |
cfe79c9b AF |
122 | |
123 | %install | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
c2c06135 | 126 | %ninja_install -C build |
e6a03317 | 127 | |
c9db6ca2 | 128 | %find_lang %{name}-2.91 |
cfe79c9b AF |
129 | |
130 | %clean | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %post -p /sbin/ldconfig | |
134 | %postun -p /sbin/ldconfig | |
135 | ||
c9db6ca2 | 136 | %files -f vte-2.91.lang |
cfe79c9b | 137 | %defattr(644,root,root,755) |
e5611288 | 138 | %doc AUTHORS README.md |
c9db6ca2 | 139 | %attr(755,root,root) %{_bindir}/vte-2.91 |
8868f0f8 | 140 | %attr(755,root,root) %{_libexecdir}/vte-urlencode-cwd |
c9db6ca2 JB |
141 | %attr(755,root,root) %{_libdir}/libvte-2.91.so.*.*.* |
142 | %attr(755,root,root) %ghost %{_libdir}/libvte-2.91.so.0 | |
143 | %{_libdir}/girepository-1.0/Vte-2.91.typelib | |
8868f0f8 | 144 | %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.csh |
47c81231 | 145 | %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.sh |
8f9e9675 JB |
146 | %dir %{systemduserunitdir}/vte-spawn-.scope.d |
147 | %{systemduserunitdir}/vte-spawn-.scope.d/defaults.conf | |
81a45b35 | 148 | |
cfe79c9b AF |
149 | %files devel |
150 | %defattr(644,root,root,755) | |
c9db6ca2 JB |
151 | %attr(755,root,root) %{_libdir}/libvte-2.91.so |
152 | %{_includedir}/vte-2.91 | |
153 | %{_pkgconfigdir}/vte-2.91.pc | |
154 | %{_datadir}/gir-1.0/Vte-2.91.gir | |
cfe79c9b | 155 | |
c9db6ca2 JB |
156 | %files -n vala-vte |
157 | %defattr(644,root,root,755) | |
c2c06135 | 158 | %{_datadir}/vala/vapi/vte-2.91.deps |
c9db6ca2 | 159 | %{_datadir}/vala/vapi/vte-2.91.vapi |
a7366067 | 160 | |
e5611288 | 161 | %if %{with apidocs} |
a7366067 JB |
162 | %files apidocs |
163 | %defattr(644,root,root,755) | |
c9db6ca2 | 164 | %{_gtkdocdir}/vte-2.91 |
e5611288 | 165 | %endif |