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