]>
Commit | Line | Data |
---|---|---|
53d96406 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without glade # Glade catalog | |
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 |
6a524199 | 9 | Version: 0.50.0 |
42e8b4f6 | 10 | Release: 1 |
c9db6ca2 | 11 | License: LGPL v2.1+ |
cfe79c9b | 12 | Group: X11/Libraries |
6a524199 MB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/vte/0.50/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 0387b4a0c5765808c24a018a49d61b76 | |
8b6b627f | 15 | Patch0: %{name}-wordsep.patch |
89ff5c97 | 16 | BuildRequires: autoconf >= 2.63 |
caeedbd5 | 17 | BuildRequires: automake >= 1:1.9 |
b20f4843 | 18 | BuildRequires: docbook-dtd412-xml |
049c0677 | 19 | BuildRequires: gettext-devel |
53d96406 | 20 | %{?with_glade:BuildRequires: glade-devel >= 3} |
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 |
3b4445ca | 26 | %{?with_gtk4:BuildRequires: gtk+4-devel >= 3.89} |
0471d6bf | 27 | BuildRequires: gtk-doc >= 1.13 |
882367f4 | 28 | BuildRequires: gtk-doc-automake >= 1.13 |
caeedbd5 | 29 | BuildRequires: intltool >= 0.40.0 |
4111c0ad | 30 | BuildRequires: libstdc++-devel >= 6:4.7 |
882367f4 | 31 | BuildRequires: libtool >= 2:2.2 |
c9db6ca2 | 32 | BuildRequires: libxml2-progs >= 2 |
049c0677 | 33 | BuildRequires: ncurses-devel |
882367f4 | 34 | BuildRequires: pango-devel >= 1:1.22.0 |
f6d4361b | 35 | BuildRequires: pcre2-8-devel >= 10.21 |
049c0677 | 36 | BuildRequires: pkgconfig |
89ff5c97 | 37 | BuildRequires: rpmbuild(macros) >= 1.592 |
a54e0807 | 38 | BuildRequires: tar >= 1:1.22 |
4acbc133 | 39 | # for test application |
2718a5d9 | 40 | #BuildRequires: vala >= 2:0.24 |
a54e0807 | 41 | BuildRequires: xz |
891bed86 | 42 | BuildRequires: zlib-devel |
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 |
ed398031 | 48 | # sr@Latn vs. sr@latin |
a54e0807 | 49 | Conflicts: glibc-misc < 6:2.7 |
cfe79c9b AF |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
cfe79c9b | 52 | %description |
81a45b35 | 53 | The vte package contains a terminal widget for GTK+ 3.x. It's used by |
cfe79c9b AF |
54 | gnome-terminal among other programs. |
55 | ||
6c917d2d | 56 | %description -l pl.UTF-8 |
a7366067 JB |
57 | Ten pakiet zawiera kontrolkę terminala dla GTK+ 3.x. Jest używany |
58 | przez gnome-terminal oraz inne programy. | |
81a45b35 AF |
59 | |
60 | %package common | |
61 | Summary: Common files for vte and vte0 | |
a7366067 | 62 | Summary(pl.UTF-8): Pliki wspólne dla vte i vte0 |
81a45b35 | 63 | Group: X11/Libraries |
a7366067 | 64 | Requires(pre): utempter |
81a45b35 AF |
65 | |
66 | %description common | |
a7366067 JB |
67 | Common files for GTK+ 3 based vte and GTK+ 2 based vte0. |
68 | ||
69 | %description common -l pl.UTF-8 | |
70 | Pliki wspólne dla vte opartego na GTK+ 3 oraz vte0 opartego na GTK+ 2. | |
81a45b35 | 71 | |
cfe79c9b | 72 | %package devel |
a7366067 JB |
73 | Summary: Header files for VTE for GTK+ 3 |
74 | Summary(pl.UTF-8): Pliki nagłówkowe VTE dla GTK+ 3 | |
cfe79c9b | 75 | Group: X11/Development/Libraries |
efc3b9e1 | 76 | Requires: %{name} = %{version}-%{release} |
c9db6ca2 | 77 | Requires: glib2-devel >= 1:2.40.0 |
e91a0acd | 78 | Requires: gnutls-devel >= 3.2.7 |
c9db6ca2 | 79 | Requires: gtk+3-devel >= 3.8.0 |
f41aff32 | 80 | Requires: ncurses-devel |
882367f4 | 81 | Requires: pango-devel >= 1:1.22.0 |
f6d4361b | 82 | Requires: pcre2-8-devel >= 10.21 |
891bed86 | 83 | Requires: zlib-devel |
cfe79c9b AF |
84 | Conflicts: gnome-libs-devel < 1.4.1.2 |
85 | ||
86 | %description devel | |
a7366067 | 87 | This package contains header files for GTK+ 3 based vte library. |
cfe79c9b | 88 | |
6c917d2d | 89 | %description devel -l pl.UTF-8 |
a7366067 JB |
90 | Pliki nagłówkowe potrzebne do kompilowania programów używających |
91 | biblioteki vte opartej na GTK+ 3. | |
92 | ||
93 | %package static | |
94 | Summary: Static VTE library for GTK+ 3 | |
95 | Summary(pl.UTF-8): Statyczna biblioteka VTE dla GTK+ 3 | |
96 | Group: X11/Development/Libraries | |
97 | Requires: %{name}-devel = %{version}-%{release} | |
98 | Conflicts: gnome-libs-static < 1.4.1.2 | |
99 | ||
100 | %description static | |
101 | Static version of VTE library for GTK+ 3. | |
102 | ||
103 | %description static -l pl.UTF-8 | |
104 | Statyczna wersja biblioteki VTE dla GTK+ 3. | |
105 | ||
53d96406 JB |
106 | %package glade |
107 | Summary: VTE catalog file for Glade | |
108 | Summary(pl.UTF-8): Plik katalogu VTE dla Glade | |
109 | Group: X11/Development/Libraries | |
110 | Requires: %{name}-devel = %{version}-%{release} | |
111 | Requires: glade >= 3 | |
112 | ||
113 | %description glade | |
114 | VTE catalog file for Glade. | |
115 | ||
116 | %description glade -l pl.UTF-8 | |
117 | Plik katalogu VTE dla Glade. | |
118 | ||
c9db6ca2 JB |
119 | %package -n vala-vte |
120 | Summary: Vala API for VTE library | |
121 | Summary(pl.UTF-8): API języka Vala dla biblioteki VTE | |
122 | Group: Development/Libraries | |
123 | Requires: %{name}-devel = %{version}-%{release} | |
2718a5d9 | 124 | Requires: vala >= 2:0.24 |
5df691fb ER |
125 | %if "%{_rpmversion}" >= "5" |
126 | BuildArch: noarch | |
127 | %endif | |
c9db6ca2 JB |
128 | |
129 | %description -n vala-vte | |
130 | Vala API for VTE library. | |
131 | ||
132 | %description -n vala-vte -l pl.UTF-8 | |
133 | API języka Vala dla biblioteki VTE. | |
134 | ||
a7366067 JB |
135 | %package apidocs |
136 | Summary: VTE API documentation (GTK+ 3 version) | |
137 | Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK+ 3) | |
138 | Group: Documentation | |
139 | Requires: gtk-doc-common | |
8dfe5a97 ER |
140 | %if "%{_rpmversion}" >= "5" |
141 | BuildArch: noarch | |
142 | %endif | |
a7366067 JB |
143 | |
144 | %description apidocs | |
145 | VTE API documentation (GTK+ 3 version). | |
146 | ||
147 | %description apidocs -l pl.UTF-8 | |
148 | Dokumentacja API VTE (wersja dla GTK+ 3). | |
149 | ||
cfe79c9b | 150 | %prep |
28fdb696 | 151 | %setup -q |
8b6b627f | 152 | %patch0 -p1 |
cfe79c9b AF |
153 | |
154 | %build | |
65f8a03f | 155 | %{__gtkdocize} |
62df6718 | 156 | %{__glib_gettextize} |
a3456d5d | 157 | %{__intltoolize} |
dcd5996b | 158 | %{__libtoolize} |
159 | %{__aclocal} | |
160 | %{__autoheader} | |
161 | %{__automake} | |
162 | %{__autoconf} | |
3b4445ca JB |
163 | install -d build-gtk3 |
164 | cd build-gtk3 | |
165 | ../%configure \ | |
a54e0807 | 166 | --disable-silent-rules \ |
53d96406 | 167 | %{?with_glade:--enable-glade-catalogue} \ |
d146662f | 168 | --enable-gtk-doc \ |
89ff5c97 | 169 | --enable-introspection \ |
65f8a03f | 170 | --with-html-dir=%{_gtkdocdir} |
81a45b35 | 171 | %{__make} |
3b4445ca JB |
172 | cd .. |
173 | ||
174 | %if %{with gtk4} | |
175 | install -d build-gtk4 | |
176 | cd build-gtk4 | |
177 | # note: "3.902468" is a result of configure.ac bug (unquoted brackets) | |
178 | ../%configure \ | |
179 | --disable-silent-rules \ | |
180 | --enable-gtk-doc \ | |
181 | --enable-introspection \ | |
182 | --with-gtk=3.902468 \ | |
183 | --with-html-dir=%{_gtkdocdir} | |
184 | %{__make} | |
185 | %endif | |
cfe79c9b AF |
186 | |
187 | %install | |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
3b4445ca JB |
190 | %if %{with gtk4} |
191 | %{__make} -C build-gtk4 install \ | |
192 | DESTDIR=$RPM_BUILD_ROOT | |
193 | %endif | |
194 | ||
195 | %{__make} -C build-gtk3 install \ | |
7c0544b4 | 196 | DESTDIR=$RPM_BUILD_ROOT |
ead4696e | 197 | |
ed398031 | 198 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
e6a03317 | 199 | |
c9db6ca2 | 200 | %find_lang %{name}-2.91 |
cfe79c9b AF |
201 | |
202 | %clean | |
203 | rm -rf $RPM_BUILD_ROOT | |
204 | ||
205 | %post -p /sbin/ldconfig | |
206 | %postun -p /sbin/ldconfig | |
207 | ||
c9db6ca2 | 208 | %files -f vte-2.91.lang |
cfe79c9b | 209 | %defattr(644,root,root,755) |
65b007bd | 210 | %doc AUTHORS ChangeLog NEWS README |
c9db6ca2 JB |
211 | %attr(755,root,root) %{_bindir}/vte-2.91 |
212 | %attr(755,root,root) %{_libdir}/libvte-2.91.so.*.*.* | |
213 | %attr(755,root,root) %ghost %{_libdir}/libvte-2.91.so.0 | |
214 | %{_libdir}/girepository-1.0/Vte-2.91.typelib | |
47c81231 | 215 | %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.sh |
81a45b35 | 216 | |
cfe79c9b AF |
217 | %files devel |
218 | %defattr(644,root,root,755) | |
c9db6ca2 JB |
219 | %attr(755,root,root) %{_libdir}/libvte-2.91.so |
220 | %{_includedir}/vte-2.91 | |
221 | %{_pkgconfigdir}/vte-2.91.pc | |
222 | %{_datadir}/gir-1.0/Vte-2.91.gir | |
cfe79c9b | 223 | |
a7366067 JB |
224 | %files static |
225 | %defattr(644,root,root,755) | |
c9db6ca2 JB |
226 | %{_libdir}/libvte-2.91.a |
227 | ||
53d96406 JB |
228 | %if %{with glade} |
229 | %files glade | |
230 | %defattr(644,root,root,755) | |
231 | %{_datadir}/glade/catalogs/vte-2.91.xml | |
232 | %{_datadir}/glade/pixmaps/hicolor/16x16/actions/widget-vte-terminal.png | |
233 | %{_datadir}/glade/pixmaps/hicolor/22x22/actions/widget-vte-terminal.png | |
234 | %endif | |
235 | ||
c9db6ca2 JB |
236 | %files -n vala-vte |
237 | %defattr(644,root,root,755) | |
238 | %{_datadir}/vala/vapi/vte-2.91.vapi | |
a7366067 JB |
239 | |
240 | %files apidocs | |
241 | %defattr(644,root,root,755) | |
c9db6ca2 | 242 | %{_gtkdocdir}/vte-2.91 |