]> git.pld-linux.org Git - packages/vte.git/blob - vte.spec
- updated to 0.48.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.48.3
10 Release:        1
11 License:        LGPL v2.1+
12 Group:          X11/Libraries
13 Source0:        http://ftp.gnome.org/pub/GNOME/sources/vte/0.48/%{name}-%{version}.tar.xz
14 # Source0-md5:  b300675ac5f269aa6eb48fe89a0d726d
15 Patch0:         %{name}-wordsep.patch
16 BuildRequires:  autoconf >= 2.63
17 BuildRequires:  automake >= 1:1.9
18 BuildRequires:  docbook-dtd412-xml
19 BuildRequires:  gettext-devel
20 %{?with_glade:BuildRequires:    glade-devel >= 3}
21 BuildRequires:  glib2-devel >= 1:2.40.0
22 BuildRequires:  gnutls-devel >= 3.2.7
23 BuildRequires:  gobject-introspection-devel >= 0.10.0
24 BuildRequires:  gperf
25 BuildRequires:  gtk+3-devel >= 3.8.0
26 %{?with_gtk4:BuildRequires:     gtk+4-devel >= 3.89}
27 BuildRequires:  gtk-doc >= 1.13
28 BuildRequires:  gtk-doc-automake >= 1.13
29 BuildRequires:  intltool >= 0.40.0
30 BuildRequires:  libstdc++-devel >= 6:4.7
31 BuildRequires:  libtool >= 2:2.2
32 BuildRequires:  libxml2-progs >= 2
33 BuildRequires:  ncurses-devel
34 BuildRequires:  pango-devel >= 1:1.22.0
35 BuildRequires:  pcre2-8-devel >= 10.21
36 BuildRequires:  pkgconfig
37 BuildRequires:  rpmbuild(macros) >= 1.592
38 BuildRequires:  tar >= 1:1.22
39 # for test application
40 #BuildRequires: vala >= 2:0.24
41 BuildRequires:  xz
42 BuildRequires:  zlib-devel
43 Requires:       glib2 >= 1:2.40.0
44 Requires:       gnutls >= 3.2.7
45 Requires:       gtk+3 >= 3.8.0
46 Requires:       pango >= 1:1.22.0
47 Obsoletes:      vte-common < 0.42.0
48 # sr@Latn vs. sr@latin
49 Conflicts:      glibc-misc < 6:2.7
50 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52 %description
53 The vte package contains a terminal widget for GTK+ 3.x. It's used by
54 gnome-terminal among other programs.
55
56 %description -l pl.UTF-8
57 Ten pakiet zawiera kontrolkę terminala dla GTK+ 3.x. Jest używany
58 przez gnome-terminal oraz inne programy.
59
60 %package common
61 Summary:        Common files for vte and vte0
62 Summary(pl.UTF-8):      Pliki wspólne dla vte i vte0
63 Group:          X11/Libraries
64 Requires(pre):  utempter
65
66 %description common
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.
71
72 %package devel
73 Summary:        Header files for VTE for GTK+ 3
74 Summary(pl.UTF-8):      Pliki nagłówkowe VTE dla GTK+ 3
75 Group:          X11/Development/Libraries
76 Requires:       %{name} = %{version}-%{release}
77 Requires:       glib2-devel >= 1:2.40.0
78 Requires:       gnutls-devel >= 3.2.7
79 Requires:       gtk+3-devel >= 3.8.0
80 Requires:       ncurses-devel
81 Requires:       pango-devel >= 1:1.22.0
82 Requires:       pcre2-8-devel >= 10.21
83 Requires:       zlib-devel
84 Conflicts:      gnome-libs-devel < 1.4.1.2
85
86 %description devel
87 This package contains header files for GTK+ 3 based vte library.
88
89 %description devel -l pl.UTF-8
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
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
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}
124 Requires:       vala >= 2:0.24
125 %if "%{_rpmversion}" >= "5"
126 BuildArch:      noarch
127 %endif
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
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
140 %if "%{_rpmversion}" >= "5"
141 BuildArch:      noarch
142 %endif
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
150 %prep
151 %setup -q
152 %patch0 -p1
153
154 %build
155 %{__gtkdocize}
156 %{__glib_gettextize}
157 %{__intltoolize}
158 %{__libtoolize}
159 %{__aclocal}
160 %{__autoheader}
161 %{__automake}
162 %{__autoconf}
163 install -d build-gtk3
164 cd build-gtk3
165 ../%configure \
166         --disable-silent-rules \
167         %{?with_glade:--enable-glade-catalogue} \
168         --enable-gtk-doc \
169         --enable-introspection \
170         --with-html-dir=%{_gtkdocdir}
171 %{__make}
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
186
187 %install
188 rm -rf $RPM_BUILD_ROOT
189
190 %if %{with gtk4}
191 %{__make} -C build-gtk4 install \
192         DESTDIR=$RPM_BUILD_ROOT
193 %endif
194
195 %{__make} -C build-gtk3 install \
196         DESTDIR=$RPM_BUILD_ROOT
197
198 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
199
200 %find_lang %{name}-2.91
201
202 %clean
203 rm -rf $RPM_BUILD_ROOT
204
205 %post   -p /sbin/ldconfig
206 %postun -p /sbin/ldconfig
207
208 %files -f vte-2.91.lang
209 %defattr(644,root,root,755)
210 %doc AUTHORS ChangeLog NEWS README
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
215 %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.sh
216
217 %files devel
218 %defattr(644,root,root,755)
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
223
224 %files static
225 %defattr(644,root,root,755)
226 %{_libdir}/libvte-2.91.a
227
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
236 %files -n vala-vte
237 %defattr(644,root,root,755)
238 %{_datadir}/vala/vapi/vte-2.91.vapi
239
240 %files apidocs
241 %defattr(644,root,root,755)
242 %{_gtkdocdir}/vte-2.91
This page took 0.113882 seconds and 3 git commands to generate.