]>
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 |
6efa457d | 8 | Version: 0.58.2 |
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 |
c2c06135 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/vte/0.58/%{name}-%{version}.tar.xz |
6efa457d | 14 | # Source0-md5: dadbf2c1d9864d3ea185738f97ab63af |
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 |
c9db6ca2 | 21 | BuildRequires: glib2-devel >= 1:2.40.0 |
e91a0acd | 22 | BuildRequires: gnutls-devel >= 3.2.7 |
89ff5c97 | 23 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
3b4445ca | 24 | BuildRequires: gperf |
c9db6ca2 | 25 | BuildRequires: gtk+3-devel >= 3.8.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 |
6efa457d | 29 | # C++17 support (-std=gnu++17, with constexpr lambdas support) |
9c90b1cd | 30 | BuildRequires: libstdc++-devel >= 6:7.0 |
c9db6ca2 | 31 | BuildRequires: libxml2-progs >= 2 |
c2c06135 | 32 | BuildRequires: meson >= 0.49.0 |
c2c06135 | 33 | BuildRequires: ninja >= 1.5 |
882367f4 | 34 | BuildRequires: pango-devel >= 1:1.22.0 |
f6d4361b | 35 | BuildRequires: pcre2-8-devel >= 10.21 |
049c0677 | 36 | BuildRequires: pkgconfig |
c2c06135 | 37 | BuildRequires: rpmbuild(macros) >= 1.736 |
a54e0807 | 38 | BuildRequires: tar >= 1:1.22 |
9c90b1cd | 39 | BuildRequires: vala >= 2:0.24 |
a54e0807 | 40 | BuildRequires: xz |
891bed86 | 41 | BuildRequires: zlib-devel |
6efa457d | 42 | Requires: fribidi >= 1.0.0 |
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 | 60 | |
cfe79c9b | 61 | %package devel |
a7366067 JB |
62 | Summary: Header files for VTE for GTK+ 3 |
63 | Summary(pl.UTF-8): Pliki nagłówkowe VTE dla GTK+ 3 | |
6efa457d | 64 | License: LGPL v3+ |
cfe79c9b | 65 | Group: X11/Development/Libraries |
efc3b9e1 | 66 | Requires: %{name} = %{version}-%{release} |
c9db6ca2 JB |
67 | Requires: glib2-devel >= 1:2.40.0 |
68 | Requires: gtk+3-devel >= 3.8.0 | |
882367f4 | 69 | Requires: pango-devel >= 1:1.22.0 |
cfe79c9b AF |
70 | Conflicts: gnome-libs-devel < 1.4.1.2 |
71 | ||
72 | %description devel | |
a7366067 | 73 | This package contains header files for GTK+ 3 based vte library. |
cfe79c9b | 74 | |
6c917d2d | 75 | %description devel -l pl.UTF-8 |
a7366067 JB |
76 | Pliki nagłówkowe potrzebne do kompilowania programów używających |
77 | biblioteki vte opartej na GTK+ 3. | |
78 | ||
c9db6ca2 JB |
79 | %package -n vala-vte |
80 | Summary: Vala API for VTE library | |
81 | Summary(pl.UTF-8): API języka Vala dla biblioteki VTE | |
6efa457d | 82 | License: LGPL v3+ |
c9db6ca2 JB |
83 | Group: Development/Libraries |
84 | Requires: %{name}-devel = %{version}-%{release} | |
2718a5d9 | 85 | Requires: vala >= 2:0.24 |
5df691fb ER |
86 | %if "%{_rpmversion}" >= "5" |
87 | BuildArch: noarch | |
88 | %endif | |
c9db6ca2 JB |
89 | |
90 | %description -n vala-vte | |
91 | Vala API for VTE library. | |
92 | ||
93 | %description -n vala-vte -l pl.UTF-8 | |
94 | API języka Vala dla biblioteki VTE. | |
95 | ||
a7366067 JB |
96 | %package apidocs |
97 | Summary: VTE API documentation (GTK+ 3 version) | |
98 | Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK+ 3) | |
99 | Group: Documentation | |
100 | Requires: gtk-doc-common | |
8dfe5a97 ER |
101 | %if "%{_rpmversion}" >= "5" |
102 | BuildArch: noarch | |
103 | %endif | |
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 JP |
116 | %meson build \ |
117 | -Ddocs=true \ | |
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) |
c2c06135 | 138 | %doc AUTHORS NEWS README.md |
c9db6ca2 JB |
139 | %attr(755,root,root) %{_bindir}/vte-2.91 |
140 | %attr(755,root,root) %{_libdir}/libvte-2.91.so.*.*.* | |
141 | %attr(755,root,root) %ghost %{_libdir}/libvte-2.91.so.0 | |
142 | %{_libdir}/girepository-1.0/Vte-2.91.typelib | |
47c81231 | 143 | %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.sh |
81a45b35 | 144 | |
cfe79c9b AF |
145 | %files devel |
146 | %defattr(644,root,root,755) | |
c9db6ca2 JB |
147 | %attr(755,root,root) %{_libdir}/libvte-2.91.so |
148 | %{_includedir}/vte-2.91 | |
149 | %{_pkgconfigdir}/vte-2.91.pc | |
150 | %{_datadir}/gir-1.0/Vte-2.91.gir | |
cfe79c9b | 151 | |
c9db6ca2 JB |
152 | %files -n vala-vte |
153 | %defattr(644,root,root,755) | |
c2c06135 | 154 | %{_datadir}/vala/vapi/vte-2.91.deps |
c9db6ca2 | 155 | %{_datadir}/vala/vapi/vte-2.91.vapi |
a7366067 JB |
156 | |
157 | %files apidocs | |
158 | %defattr(644,root,root,755) | |
c9db6ca2 | 159 | %{_gtkdocdir}/vte-2.91 |