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