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