1 |
%define major 4 |
2 |
%define libxpm %mklibname xpm %{major} |
3 |
%define develxpm %mklibname -d xpm |
4 |
%define staticdevelxpm %mklibname -d -s xpm |
5 |
|
6 |
Name: libxpm |
7 |
Summary: X Pixmap Library |
8 |
Version: 3.5.10 |
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/libXpm-%{version}.tar.bz2 |
14 |
|
15 |
BuildRequires: libx11-devel >= 1.0.0 |
16 |
BuildRequires: libxext-devel >= 1.0.0 |
17 |
BuildRequires: libxt-devel >= 1.0.0 |
18 |
BuildRequires: x11-proto-devel >= 1.0.0 |
19 |
BuildRequires: x11-util-macros >= 1.0.1 |
20 |
|
21 |
%description |
22 |
The xpm package contains the XPM pixmap library for the X Window |
23 |
System. The XPM library allows applications to display color, |
24 |
pixmapped images, and is used by many popular X programs. |
25 |
|
26 |
#----------------------------------------------------------- |
27 |
|
28 |
%package -n %{libxpm} |
29 |
Summary: X Pixmap Library |
30 |
Group: Development/X11 |
31 |
Conflicts: libxorg-x11 < 7.0 |
32 |
Provides: %{name} = %{version} |
33 |
|
34 |
%description -n %{libxpm} |
35 |
The xpm package contains the XPM pixmap library for the X Window |
36 |
System. The XPM library allows applications to display color, |
37 |
pixmapped images, and is used by many popular X programs. |
38 |
|
39 |
#----------------------------------------------------------- |
40 |
|
41 |
%package -n %{develxpm} |
42 |
Summary: Development files for %{name} |
43 |
Group: Development/X11 |
44 |
Requires: %{libxpm} = %{version} |
45 |
Requires: libx11-devel >= 1.0.0 |
46 |
Provides: libxpm-devel = %{version}-%{release} |
47 |
Provides: xpm-devel = %{version}-%{release} |
48 |
Obsoletes: %{libxpm}-devel |
49 |
|
50 |
Conflicts: libxorg-x11-devel < 7.0 |
51 |
|
52 |
%description -n %{develxpm} |
53 |
Development files for %{name} |
54 |
|
55 |
%files -n %{develxpm} |
56 |
%{_bindir}/cxpm |
57 |
%{_bindir}/sxpm |
58 |
%{_libdir}/libXpm.so |
59 |
%{_libdir}/pkgconfig/xpm.pc |
60 |
%{_includedir}/X11/xpm.h |
61 |
%{_mandir}/man1/* |
62 |
|
63 |
#----------------------------------------------------------- |
64 |
|
65 |
%package -n %{staticdevelxpm} |
66 |
Summary: Static development files for %{name} |
67 |
Group: Development/X11 |
68 |
Requires: %{develxpm} >= %{version} |
69 |
Provides: libxpm-static-devel = %{version}-%{release} |
70 |
Provides: xpm-static-devel = %{version}-%{release} |
71 |
Obsoletes: %{libxpm}-static-devel |
72 |
|
73 |
Conflicts: libxorg-x11-static-devel < 7.0 |
74 |
|
75 |
%description -n %{staticdevelxpm} |
76 |
Static development files for %{name} |
77 |
|
78 |
%files -n %{staticdevelxpm} |
79 |
%{_libdir}/libXpm.a |
80 |
|
81 |
#----------------------------------------------------------- |
82 |
|
83 |
%prep |
84 |
%setup -q -n libXpm-%{version} |
85 |
|
86 |
%build |
87 |
%configure2_5x --x-includes=%{_includedir}\ |
88 |
--x-libraries=%{_libdir} |
89 |
|
90 |
%make |
91 |
|
92 |
%install |
93 |
rm -rf %{buildroot} |
94 |
%makeinstall_std |
95 |
|
96 |
find %{buildroot} -name "*.la" -delete |
97 |
|
98 |
%clean |
99 |
rm -rf %{buildroot} |
100 |
|
101 |
%files -n %{libxpm} |
102 |
%{_libdir}/libXpm.so.%{major}* |