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