1 |
%define bootstrap 0 |
2 |
%{?_without_bootstrap: %global bootstrap 0} |
3 |
%{?_with_bootstrap: %global bootstrap 1} |
4 |
|
5 |
%define major 6 |
6 |
%define libxi %mklibname xi %{major} |
7 |
%define libxi_devel %mklibname xi -d |
8 |
|
9 |
Name: libxi |
10 |
Summary: X Input Extension Library |
11 |
Version: 1.7.2 |
12 |
Release: %mkrel 1 |
13 |
Group: Development/X11 |
14 |
License: MIT |
15 |
URL: http://xorg.freedesktop.org |
16 |
Source0: http://xorg.freedesktop.org/releases/individual/lib/libXi-%{version}.tar.bz2 |
17 |
BuildRequires: libx11-devel >= 1.3 |
18 |
BuildRequires: libxext-devel >= 1.1 |
19 |
BuildRequires: x11-proto-devel >= 7.5 |
20 |
BuildRequires: x11-util-macros >= 1.0.1 |
21 |
BuildRequires: pkgconfig(xfixes) |
22 |
%if !%{bootstrap} |
23 |
# necessary for building the man pages |
24 |
BuildRequires: xmlto |
25 |
BuildRequires: asciidoc |
26 |
BuildRequires: docbook-dtd412-xml |
27 |
%endif |
28 |
|
29 |
%description |
30 |
X Input Extension Library |
31 |
|
32 |
#----------------------------------------------------------- |
33 |
|
34 |
%package -n %{libxi} |
35 |
Summary: X Input Extension Library |
36 |
Group: Development/X11 |
37 |
Provides: %{name} = %{version} |
38 |
|
39 |
%description -n %{libxi} |
40 |
X Input Extension Library |
41 |
|
42 |
#----------------------------------------------------------- |
43 |
|
44 |
%package -n %{libxi_devel} |
45 |
Summary: Development files for %{name} |
46 |
Group: Development/X11 |
47 |
|
48 |
Requires: %{libxi} = %{version} |
49 |
Requires: x11-proto-devel >= 7.5 |
50 |
Provides: libxi-devel = %{version}-%{release} |
51 |
Obsoletes: %{_lib}xi-static-devel < 1.7.2-2 |
52 |
|
53 |
%description -n %{libxi_devel} |
54 |
Development files for %{name} |
55 |
|
56 |
%files -n %{libxi_devel} |
57 |
%{_libdir}/libXi.so |
58 |
%{_libdir}/pkgconfig/xi.pc |
59 |
%{_includedir}/X11/extensions/*.h |
60 |
%{_mandir}/man3/X* |
61 |
%doc %{_datadir}/doc/libXi |
62 |
|
63 |
#----------------------------------------------------------- |
64 |
|
65 |
%prep |
66 |
%setup -q -n libXi-%{version} |
67 |
|
68 |
%build |
69 |
%configure2_5x --disable-static |
70 |
%make |
71 |
|
72 |
%install |
73 |
%makeinstall_std |
74 |
|
75 |
rm -f %{buildroot}%{_libdir}/*.la |
76 |
|
77 |
%files -n %{libxi} |
78 |
%{_libdir}/libXi.so.6 |
79 |
%{_libdir}/libXi.so.6.1.0 |