summaryrefslogtreecommitdiff
path: root/libzvt.spec
blob: e77b6b35ea8b23c36516070410fdb37765a0a12f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132

%define _snap	20031020

Summary:	Zvt terminal widget library
Summary(es.UTF-8):	Biblioteca de widget de terminal zvt
Summary(pl.UTF-8):	Biblioteka z widgetem terminala zvt
Name:		libzvt
Version:	2.0.2
Release:	0.%{_snap}.4
License:	LGPL
Group:		X11/Libraries
Source0:	ftp://distfiles.pld-linux.org/src/%{name}-%{_snap}.tar.bz2
# Source0-md5:	9c06f2e4ff429616284a0b1f62fe8c9b
Patch0:		%{name}-am15.patch
Patch1:		%{name}-pangox.patch
Patch2:		%{name}-link.patch
URL:		http://www.gnome.org/
BuildRequires:	autoconf >= 2.53
BuildRequires:	automake >= 1:1.7
BuildRequires:	gtk+2-devel
BuildRequires:	libart_lgpl-devel
BuildRequires:	libtool >= 1.4.3
BuildRequires:	gnome-common >= 2.8.0
BuildRequires:	pkgconfig >= 1:0.14.0
Requires:	utempter
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
The libzvt package contains a terminal widget for GTK+.

%description -l es.UTF-8
El paquere libzvt contiene un widget de terminal para GTK+.

%description -l pl.UTF-8
Ten pakiet zawiera widget terminala dla GTK+.

%package devel
Summary:	Headers for libzvt
Summary(es.UTF-8):	Cabeceras para libzvt
Summary(pl.UTF-8):	Pliki nagłówkowe libzvt
Group:		X11/Development/Libraries
Requires:	%{name} = %{version}-%{release}
Requires:	gtk+2-devel
Requires:	libart_lgpl-devel

%description devel
The libzvt package contains a terminal widget for GTK+.

You should install the libzvt-devel package if you would like to
compile applications that use the zvt terminal widget. You do not need
to install libzvt-devel if you just want to use precompiled
applications.

%description devel -l es.UTF-8
El paquere libzvt contiene un widget de terminal para GTK+.

Debe instalar el paquete libzvt-devel si quiere compilar aplicaciones
que usan el widget de terminal zvt. No tiene por qué instalarlo si
sólo quiere usar aplicaciones precompiladas.

%description devel -l pl.UTF-8
Pliki nagłówkowe potrzebne do kompilowania programów używających
libzvt.

Powinieneś zainstalować pakiet libzvt-devel jeśli chcesz kompilować
aplikacje które używają widgeta terminala zvt. Nie potrzebujesz
instalować libzvt-devel jeśli jedynie chcesz używać aplikacji już
skompilowanych.

%package static
Summary:	Static libzvt library
Summary(es.UTF-8):	Biblioteca libzvt estática
Summary(pl.UTF-8):	Statyczna biblioteka libzvt
Group:		X11/Development/Libraries
Requires:	%{name}-devel = %{version}-%{release}

%description static
Static version of libzvt libraries.

%description static -l es.UTF-8
La versión estática de bibliotecas libzvt.

%description static -l pl.UTF-8
Statyczna wersja bibliotek libzvt.

%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%patch2 -p0

%build
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__automake}
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT \
	pkgconfigdir=%{_pkgconfigdir}


%clean
rm -rf $RPM_BUILD_ROOT

%post	-p /sbin/ldconfig
%postun	-p /sbin/ldconfig

%files
%defattr(644,root,root,755)
# empty files
#%doc NEWS README AUTHORS
%doc libzvt/AUTHORS ChangeLog libzvt/README libzvt/TODO libzvt/BUGS
%attr(755,root,root) %{_libdir}/lib*.so.*.*
%dir %{_libdir}/libzvt-2.0
%attr(2755,root,utmp) %{_libdir}/libzvt-2.0/gnome-pty-helper

%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*.so
%{_libdir}/lib*.la
%{_includedir}/libzvt-*
%{_pkgconfigdir}/*

%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a