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