]>
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 |
e5611288 JB |
9 | Version: 0.62.0 |
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 |
e5611288 JB |
14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/vte/0.62/%{name}-%{version}.tar.xz |
15 | # Source0-md5: 7562e1dbe1992a48cbcfd10b7acc3ff6 | |
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 |
c2c06135 | 40 | BuildRequires: rpmbuild(macros) >= 1.736 |
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 |
8d52deef | 90 | %if "%{_rpmversion}" >= "4.6" |
5df691fb ER |
91 | BuildArch: noarch |
92 | %endif | |
c9db6ca2 JB |
93 | |
94 | %description -n vala-vte | |
95 | Vala API for VTE library. | |
96 | ||
97 | %description -n vala-vte -l pl.UTF-8 | |
98 | API języka Vala dla biblioteki VTE. | |
99 | ||
a7366067 JB |
100 | %package apidocs |
101 | Summary: VTE API documentation (GTK+ 3 version) | |
102 | Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK+ 3) | |
103 | Group: Documentation | |
104 | Requires: gtk-doc-common | |
8d52deef | 105 | %if "%{_rpmversion}" >= "4.6" |
8dfe5a97 ER |
106 | BuildArch: noarch |
107 | %endif | |
a7366067 JB |
108 | |
109 | %description apidocs | |
110 | VTE API documentation (GTK+ 3 version). | |
111 | ||
112 | %description apidocs -l pl.UTF-8 | |
113 | Dokumentacja API VTE (wersja dla GTK+ 3). | |
114 | ||
cfe79c9b | 115 | %prep |
28fdb696 | 116 | %setup -q |
8b6b627f | 117 | %patch0 -p1 |
cfe79c9b AF |
118 | |
119 | %build | |
c2c06135 | 120 | %meson build \ |
e5611288 | 121 | %{?with_apidocs:-Ddocs=true} \ |
c2c06135 JP |
122 | -Dgtk3=true \ |
123 | -Dgtk4=%{__true_false gtk4} | |
124 | ||
125 | %ninja_build -C build | |
cfe79c9b AF |
126 | |
127 | %install | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
c2c06135 | 130 | %ninja_install -C build |
e6a03317 | 131 | |
c9db6ca2 | 132 | %find_lang %{name}-2.91 |
cfe79c9b AF |
133 | |
134 | %clean | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
137 | %post -p /sbin/ldconfig | |
138 | %postun -p /sbin/ldconfig | |
139 | ||
c9db6ca2 | 140 | %files -f vte-2.91.lang |
cfe79c9b | 141 | %defattr(644,root,root,755) |
e5611288 | 142 | %doc AUTHORS README.md |
c9db6ca2 | 143 | %attr(755,root,root) %{_bindir}/vte-2.91 |
8868f0f8 | 144 | %attr(755,root,root) %{_libexecdir}/vte-urlencode-cwd |
c9db6ca2 JB |
145 | %attr(755,root,root) %{_libdir}/libvte-2.91.so.*.*.* |
146 | %attr(755,root,root) %ghost %{_libdir}/libvte-2.91.so.0 | |
147 | %{_libdir}/girepository-1.0/Vte-2.91.typelib | |
8868f0f8 | 148 | %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.csh |
47c81231 | 149 | %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.sh |
8f9e9675 JB |
150 | %dir %{systemduserunitdir}/vte-spawn-.scope.d |
151 | %{systemduserunitdir}/vte-spawn-.scope.d/defaults.conf | |
81a45b35 | 152 | |
cfe79c9b AF |
153 | %files devel |
154 | %defattr(644,root,root,755) | |
c9db6ca2 JB |
155 | %attr(755,root,root) %{_libdir}/libvte-2.91.so |
156 | %{_includedir}/vte-2.91 | |
157 | %{_pkgconfigdir}/vte-2.91.pc | |
158 | %{_datadir}/gir-1.0/Vte-2.91.gir | |
cfe79c9b | 159 | |
c9db6ca2 JB |
160 | %files -n vala-vte |
161 | %defattr(644,root,root,755) | |
c2c06135 | 162 | %{_datadir}/vala/vapi/vte-2.91.deps |
c9db6ca2 | 163 | %{_datadir}/vala/vapi/vte-2.91.vapi |
a7366067 | 164 | |
e5611288 | 165 | %if %{with apidocs} |
a7366067 JB |
166 | %files apidocs |
167 | %defattr(644,root,root,755) | |
c9db6ca2 | 168 | %{_gtkdocdir}/vte-2.91 |
e5611288 | 169 | %endif |