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