1 |
%define major 1 |
2 |
%define libname %mklibname xcursor %{major} |
3 |
%define develname %mklibname xcursor -d |
4 |
%define staticdevelname %mklibname xcursor -d -s |
5 |
|
6 |
Name: libxcursor |
7 |
Summary: X Cursor Library |
8 |
Version: 1.1.13 |
9 |
Release: %mkrel 3 |
10 |
Group: Development/X11 |
11 |
License: MIT |
12 |
URL: http://xorg.freedesktop.org |
13 |
Source0: http://xorg.freedesktop.org/releases/individual/lib/libXcursor-%{version}.tar.bz2 |
14 |
|
15 |
BuildRequires: libx11-devel >= 1.0.0 |
16 |
BuildRequires: libxfixes-devel >= 3.0.1.2 |
17 |
BuildRequires: libxrender-devel >= 0.9.0.2 |
18 |
BuildRequires: x11-proto-devel >= 1.0.0 |
19 |
BuildRequires: x11-util-macros >= 1.0.1 |
20 |
|
21 |
%description |
22 |
X Cursor Library. |
23 |
|
24 |
#----------------------------------------------------------- |
25 |
|
26 |
%package -n %{libname} |
27 |
Summary: X Cursor Library |
28 |
Group: Development/X11 |
29 |
Conflicts: libxorg-x11 < 7.0 |
30 |
Provides: %{name} = %{version} |
31 |
|
32 |
%description -n %{libname} |
33 |
X Cursor Library. |
34 |
|
35 |
%files -n %{libname} |
36 |
%{_libdir}/libXcursor.so.%{major}* |
37 |
|
38 |
#----------------------------------------------------------- |
39 |
|
40 |
%package -n %{develname} |
41 |
Summary: Development files for %{name} |
42 |
Group: Development/X11 |
43 |
|
44 |
Requires: x11-proto-devel >= 1.0.0 |
45 |
Provides: %{name}-devel = %{version}-%{release} |
46 |
Conflicts: libxorg-x11-devel < 7.0 |
47 |
Obsoletes: %mklibname xcursor 1 -d |
48 |
Requires: %{libname} = %{version} |
49 |
|
50 |
%description -n %{develname} |
51 |
Development files for %{name}. |
52 |
|
53 |
%files -n %{develname} |
54 |
%{_libdir}/libXcursor.so |
55 |
%{_libdir}/pkgconfig/xcursor.pc |
56 |
%{_includedir}/X11/Xcursor/Xcursor.h |
57 |
%{_mandir}/man3/* |
58 |
|
59 |
#----------------------------------------------------------- |
60 |
|
61 |
%package -n %{staticdevelname} |
62 |
Summary: Static development files for %{name} |
63 |
Group: Development/X11 |
64 |
Requires: %{develname} = %{version} |
65 |
Provides: %{name}-static-devel = %{version}-%{release} |
66 |
Conflicts: libxorg-x11-static-devel < 7.0 |
67 |
Obsoletes: %{mklibname xcursor 1 -d -s} |
68 |
|
69 |
%description -n %{staticdevelname} |
70 |
Static development files for %{name} |
71 |
|
72 |
%files -n %{staticdevelname} |
73 |
%{_libdir}/libXcursor.a |
74 |
|
75 |
#----------------------------------------------------------- |
76 |
|
77 |
%prep |
78 |
%setup -q -n libXcursor-%{version} |
79 |
|
80 |
%build |
81 |
%configure2_5x --enable-static |
82 |
%make |
83 |
|
84 |
%install |
85 |
%makeinstall_std |
86 |
|
87 |
rm -f %{buildroot}%{_libdir}/*.la |