]> git.pld-linux.org Git - packages/vte.git/blob - vte.spec
- up to version 0.11.12, needs testing, do we need stil these patches?
[packages/vte.git] / vte.spec
1 #
2 # Conditional build:
3 %bcond_with     glx # build for glX support
4 #
5 Summary:        VTE terminal widget library
6 Summary(pl):    Biblioteka z kontrolk± terminala VTE
7 Name:           vte
8 Version:        0.11.12
9 Release:        0.1
10 License:        LGPL
11 Group:          X11/Libraries
12 Source0:        http://ftp.gnome.org/pub/gnome/sources/vte/0.11/%{name}-%{version}.tar.bz2
13 # Source0-md5:  2a9c7cf110342b7c5f414343d2ecffc1
14 Patch0:         %{name}-keys.patch
15 #Patch1:                %{name}-atktextselection.patch
16 #Patch2:                %{name}-types-include.patch
17 #Patch3:                %{name}-nozvt.patch
18 %{?with_glx:BuildRequires:      OpenGL-devel}
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  glib2-devel >= 2.2.0
22 BuildRequires:  gtk+2-devel >= 2:2.2.0
23 BuildRequires:  gtk-doc
24 BuildRequires:  libart_lgpl-devel >= 2.3.10
25 BuildRequires:  libtool
26 BuildRequires:  rpm-pythonprov
27 BuildRequires:  python-pygtk-devel >= 1.99.13
28 BuildRequires:  xft-devel >= 2.1.2
29 Requires(pre):  utempter
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 The vte package contains a terminal widget for GTK+. It's used by
34 gnome-terminal among other programs.
35
36 %description -l pl
37 Ten pakiet zawiera kontrolkê terminala dla GTK+. Jest u¿ywany przez
38 gnome-terminal oraz inne programy.
39
40 %package devel
41 Summary:        Headers for VTE
42 Summary(pl):    Pliki nag³ówkowe VTE
43 Group:          X11/Development/Libraries
44 Requires:       %{name} = %{version}-%{release}
45 Requires:       glib2-devel >= 2.2.0
46 Requires:       gtk+2-devel >= 2.2.0
47 Requires:       libart_lgpl-devel >= 2.3.10
48 Requires:       OpenGL-devel
49 Conflicts:      gnome-libs-devel < 1.4.1.2
50
51 %description devel
52 The vte package contains a terminal widget for GTK+. It's used by
53 gnome-terminal among other programs.
54
55 You should install the vte-devel package if you would like to
56 compile applications that use the vte terminal widget. You do not need
57 to install vte-devel if you just want to use precompiled
58 applications.
59
60 %description devel -l pl
61 Pliki nag³ówkowe potrzebne do kompilowania programów u¿ywaj±cych
62 vte.
63
64 %package static
65 Summary:        Static VTE library
66 Summary(pl):    Statyczna biblioteka VTE
67 Group:          X11/Development/Libraries
68 Requires:       %{name}-devel = %{version}-%{release}
69 Conflicts:      gnome-libs-static < 1.4.1.2
70
71 %description static
72 Static version of VTE libraries.
73
74 %description static -l pl
75 Statyczna wersja bibliotek VTE.
76
77 %package -n python-vte
78 Summary:        Python VTE module
79 Summary(pl):    Modu³ VTE dla pythona
80 Group:          Libraries
81 %pyrequires_eq  python-libs
82 Requires:       %{name} = %{version}-%{release}
83 Requires:       python-pygtk-gtk >= 1.99.13
84
85 %description -n python-vte
86 Python VTE library.
87
88 %description -n python-vte -l pl
89 Biblioteka VTE dla pythona.
90
91 %prep
92 %setup -q
93 %patch0 -p1
94 #%patch1 -p1
95 #%patch2 -p1
96 #%patch3 -p0
97
98 %build
99 glib-gettextize --copy --force
100 %{__libtoolize}
101 %{__aclocal}
102 %{__autoheader}
103 %{__automake}
104 %{__autoconf}
105 CFLAGS="-I/usr/include/ncurses"
106 %configure \
107         --with-xft2 \
108         --with-pangox \
109         %{?with_glx:--with-glX} \
110         --with-default-emulation=xterm \
111         --enable-gtk-doc \
112         --with-html-dir=%{_gtkdocdir}
113 %{__make}
114
115 %install
116 rm -rf $RPM_BUILD_ROOT
117
118 %{__make} install \
119         DESTDIR=$RPM_BUILD_ROOT
120
121 rm -f $RPM_BUILD_ROOT%{py_sitedir}/gtk-2.0/*.{la,a}
122 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
123
124 %find_lang vte
125
126 %clean
127 rm -rf $RPM_BUILD_ROOT
128
129 %post   -p /sbin/ldconfig
130 %postun -p /sbin/ldconfig
131
132 %files -f vte.lang
133 %defattr(644,root,root,755)
134 %doc NEWS README AUTHORS
135 %attr(755,root,root) %{_bindir}/vte
136 %attr(755,root,root) %{_libdir}/lib*.so.*.*
137 %dir %{_libdir}/vte
138 %attr(755,root,root) %{_libdir}/vte/*
139 %attr(2755,root,utmp) %{_libdir}/gnome-pty-helper
140 %{_datadir}/vte
141
142 %files devel
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_libdir}/lib*.so
145 %{_libdir}/lib*.la
146 %{_includedir}/*
147 %{_pkgconfigdir}/*
148 %{_gtkdocdir}/*
149
150 %files static
151 %defattr(644,root,root,755)
152 %{_libdir}/lib*.a
153
154 %files -n python-vte
155 %defattr(644,root,root,755)
156 %attr(755,root,root) %{py_sitedir}/gtk-2.0/*.so
This page took 0.244426 seconds and 4 git commands to generate.