1 |
%define major 4 |
2 |
%define libxpm %mklibname xpm %{major} |
3 |
%define develxpm %mklibname -d xpm |
4 |
|
5 |
Name: libxpm |
6 |
Summary: X Pixmap Library |
7 |
Version: 3.5.13 |
8 |
Release: %mkrel 2 |
9 |
Group: Development/X11 |
10 |
License: MIT |
11 |
URL: http://xorg.freedesktop.org |
12 |
Source0: http://xorg.freedesktop.org/releases/individual/lib/libXpm-%{version}.tar.bz2 |
13 |
|
14 |
BuildRequires: pkgconfig(x11) >= 1.0.0 |
15 |
BuildRequires: pkgconfig(xext) >= 1.0.0 |
16 |
BuildRequires: pkgconfig(xt) >= 1.0.0 |
17 |
BuildRequires: x11-proto-devel >= 1.0.0 |
18 |
BuildRequires: x11-util-macros >= 1.0.1 |
19 |
|
20 |
%description |
21 |
The xpm package contains the XPM pixmap library for the X Window |
22 |
System. The XPM library allows applications to display color, |
23 |
pixmapped images, and is used by many popular X programs. |
24 |
|
25 |
#----------------------------------------------------------- |
26 |
|
27 |
%package -n %{libxpm} |
28 |
Summary: X Pixmap Library |
29 |
Group: Development/X11 |
30 |
Provides: %{name} = %{version} |
31 |
|
32 |
%description -n %{libxpm} |
33 |
The xpm package contains the XPM pixmap library for the X Window |
34 |
System. The XPM library allows applications to display color, |
35 |
pixmapped images, and is used by many popular X programs. |
36 |
|
37 |
%files -n %{libxpm} |
38 |
%{_libdir}/libXpm.so.%{major} |
39 |
%{_libdir}/libXpm.so.%{major}.* |
40 |
|
41 |
#----------------------------------------------------------- |
42 |
|
43 |
%package -n %{develxpm} |
44 |
Summary: Development files for %{name} |
45 |
Group: Development/X11 |
46 |
Requires: %{libxpm} = %{version}-%{release} |
47 |
Provides: libxpm-devel = %{version}-%{release} |
48 |
Provides: xpm-devel = %{version}-%{release} |
49 |
Obsoletes: %{_lib}xpm-static-devel < 3.5.10-4 |
50 |
|
51 |
%description -n %{develxpm} |
52 |
Development files for %{name} |
53 |
|
54 |
%files -n %{develxpm} |
55 |
%{_bindir}/cxpm |
56 |
%{_bindir}/sxpm |
57 |
%{_libdir}/libXpm.so |
58 |
%{_libdir}/pkgconfig/xpm.pc |
59 |
%{_includedir}/X11/xpm.h |
60 |
%{_mandir}/man1/* |
61 |
|
62 |
#----------------------------------------------------------- |
63 |
|
64 |
%prep |
65 |
%setup -q -n libXpm-%{version} |
66 |
|
67 |
%build |
68 |
%configure --x-includes=%{_includedir}\ |
69 |
--x-libraries=%{_libdir} \ |
70 |
--disable-static |
71 |
|
72 |
%make |
73 |
|
74 |
%install |
75 |
%make_install |
76 |
|
77 |
find %{buildroot} -name "*.la" -delete |