]> git.pld-linux.org Git - packages/vte2.90.git/blob - vte2.90.spec
- unconditional noarch subpackages
[packages/vte2.90.git] / vte2.90.spec
1 # TODO: is alt-meta patch still needed?
2 Summary:        VTE terminal widget library
3 Summary(pl.UTF-8):      Biblioteka z kontrolką terminala VTE
4 Name:           vte2.90
5 Version:        0.36.5
6 Release:        1
7 License:        LGPL v2.1+
8 Group:          X11/Libraries
9 Source0:        http://ftp.gnome.org/pub/GNOME/sources/vte/0.36/vte-%{version}.tar.xz
10 # Source0-md5:  96f102ef9e178b6238edcfdb1fa9dbcc
11 # https://bugzilla.gnome.org/show_bug.cgi?id=663779
12 Patch0:         vte-alt-meta.patch
13 Patch1:         vte-am.patch
14 Patch2:         rename-pty-helper.patch
15 BuildRequires:  autoconf >= 2.63
16 BuildRequires:  automake >= 1:1.9
17 BuildRequires:  docbook-dtd412-xml
18 BuildRequires:  gettext-tools
19 BuildRequires:  glib2-devel >= 1:2.40.0
20 BuildRequires:  gobject-introspection-devel >= 0.10.0
21 BuildRequires:  gtk+3-devel >= 3.8.0
22 BuildRequires:  gtk-doc >= 1.13
23 BuildRequires:  gtk-doc-automake >= 1.13
24 BuildRequires:  intltool >= 0.40.0
25 BuildRequires:  libtool >= 2:2.2
26 BuildRequires:  libxml2-progs >= 2
27 BuildRequires:  ncurses-devel
28 BuildRequires:  pango-devel >= 1:1.22.0
29 BuildRequires:  pkgconfig
30 BuildRequires:  rpmbuild(macros) >= 1.592
31 BuildRequires:  tar >= 1:1.22
32 BuildRequires:  xz
33 Requires:       %{name}-common = %{version}-%{release}
34 Requires:       glib2 >= 1:2.40.0
35 Requires:       gtk+3 >= 3.8.0
36 Requires:       pango >= 1:1.22.0
37 Obsoletes:      vte < 0.37
38 # sr@Latn vs. sr@latin
39 Conflicts:      glibc-misc < 6:2.7
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %description
43 The vte package contains a terminal widget for GTK+ 3.x. It's used by
44 gnome-terminal among other programs.
45
46 %description -l pl.UTF-8
47 Ten pakiet zawiera kontrolkę terminala dla GTK+ 3.x. Jest używany
48 przez gnome-terminal oraz inne programy.
49
50 %package common
51 Summary:        Common files for vte and vte0
52 Summary(pl.UTF-8):      Pliki wspólne dla vte i vte0
53 Group:          X11/Libraries
54 Requires(pre):  utempter
55 Obsoletes:      vte-common < 0.37
56
57 %description common
58 Common files for GTK+ 3 based vte and GTK+ 2 based vte0.
59
60 %description common -l pl.UTF-8
61 Pliki wspólne dla vte opartego na GTK+ 3 oraz vte0 opartego na GTK+ 2.
62
63 %package devel
64 Summary:        Header files for VTE for GTK+ 3
65 Summary(pl.UTF-8):      Pliki nagłówkowe VTE dla GTK+ 3
66 Group:          X11/Development/Libraries
67 Requires:       %{name} = %{version}-%{release}
68 Requires:       glib2-devel >= 1:2.40.0
69 Requires:       gtk+3-devel >= 3.8.0
70 Requires:       ncurses-devel
71 Requires:       pango-devel >= 1:1.22.0
72 Obsoletes:      vte-devel < 0.37
73 Conflicts:      gnome-libs-devel < 1.4.1.2
74
75 %description devel
76 This package contains header files for GTK+ 3 based vte library.
77
78 %description devel -l pl.UTF-8
79 Pliki nagłówkowe potrzebne do kompilowania programów używających
80 biblioteki vte opartej na GTK+ 3.
81
82 %package static
83 Summary:        Static VTE library for GTK+ 3
84 Summary(pl.UTF-8):      Statyczna biblioteka VTE dla GTK+ 3
85 Group:          X11/Development/Libraries
86 Requires:       %{name}-devel = %{version}-%{release}
87 Obsoletes:      vte-static < 0.37
88 Conflicts:      gnome-libs-static < 1.4.1.2
89
90 %description static
91 Static version of VTE library for GTK+ 3.
92
93 %description static -l pl.UTF-8
94 Statyczna wersja biblioteki VTE dla GTK+ 3.
95
96 %package apidocs
97 Summary:        VTE API documentation (GTK+ 3 version)
98 Summary(pl.UTF-8):      Dokumentacja API VTE (wersja dla GTK+ 3)
99 Group:          Documentation
100 Requires:       gtk-doc-common
101 Obsoletes:      vte-apidocs < 0.37
102 BuildArch:      noarch
103
104 %description apidocs
105 VTE API documentation (GTK+ 3 version).
106
107 %description apidocs -l pl.UTF-8
108 Dokumentacja API VTE (wersja dla GTK+ 3).
109
110 %prep
111 %setup -q -n vte-%{version}
112 %patch0 -p1
113 %patch1 -p1
114 %patch2 -p1
115
116 %build
117 %{__gtkdocize}
118 %{__glib_gettextize}
119 %{__intltoolize}
120 %{__libtoolize}
121 %{__aclocal}
122 %{__autoheader}
123 %{__automake}
124 %{__autoconf}
125 cd gnome-pty-helper
126 %{__libtoolize}
127 %{__aclocal}
128 %{__autoheader}
129 %{__automake}
130 %{__autoconf}
131 cd ..
132 %configure \
133         --disable-silent-rules \
134         --enable-gnome-pty-helper \
135         --enable-gtk-doc \
136         --enable-introspection \
137         --with-default-emulation=xterm \
138         --with-html-dir=%{_gtkdocdir}
139 %{__make}
140
141 %install
142 rm -rf $RPM_BUILD_ROOT
143
144 %{__make} install \
145         DESTDIR=$RPM_BUILD_ROOT
146
147 %{__mv} $RPM_BUILD_ROOT/etc/profile.d/vte{,2.90}.sh
148
149 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
150
151 %find_lang vte-2.90
152
153 %clean
154 rm -rf $RPM_BUILD_ROOT
155
156 %post   -p /sbin/ldconfig
157 %postun -p /sbin/ldconfig
158
159 %files -f vte-2.90.lang
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_bindir}/vte2_90
162 %attr(755,root,root) %{_libdir}/libvte2_90.so.*.*.*
163 %attr(755,root,root) %ghost %{_libdir}/libvte2_90.so.9
164 %{_libdir}/girepository-1.0/Vte-2.90.typelib
165 %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte2.90.sh
166
167 %files common
168 %defattr(644,root,root,755)
169 %doc AUTHORS ChangeLog MAINTAINERS NEWS README
170 %attr(2755,root,utmp) %{_libdir}/vte2.90-pty-helper
171
172 %files devel
173 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_libdir}/libvte2_90.so
175 %{_includedir}/vte-2.90
176 %{_pkgconfigdir}/vte-2.90.pc
177 %{_datadir}/gir-1.0/Vte-2.90.gir
178
179 %files static
180 %defattr(644,root,root,755)
181 %{_libdir}/libvte2_90.a
182
183 %files apidocs
184 %defattr(644,root,root,755)
185 %{_gtkdocdir}/vte-2.90
This page took 0.103141 seconds and 4 git commands to generate.