/[packages]/updates/8/libxpm/current/SPECS/libxpm.spec
ViewVC logotype

Annotation of /updates/8/libxpm/current/SPECS/libxpm.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 389214 - (hide annotations) (download)
Thu Jan 17 21:30:27 2013 UTC (11 years, 2 months ago) by pterjan
Original Path: cauldron/libxpm/current/SPECS/libxpm.spec
File size: 2780 byte(s)
oops
1 blino 1016 %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 tv 222155 Version: 3.5.10
9 umeabot 358625 Release: %mkrel 2
10 blino 1016 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     BuildRoot: %{_tmppath}/%{name}-root
15    
16     BuildRequires: libx11-devel >= 1.0.0
17     BuildRequires: libxext-devel >= 1.0.0
18     BuildRequires: libxt-devel >= 1.0.0
19     BuildRequires: x11-proto-devel >= 1.0.0
20     BuildRequires: x11-util-macros >= 1.0.1
21    
22     %description
23     The xpm package contains the XPM pixmap library for the X Window
24     System. The XPM library allows applications to display color,
25     pixmapped images, and is used by many popular X programs.
26    
27     #-----------------------------------------------------------
28    
29     %package -n %{libxpm}
30     Summary: X Pixmap Library
31     Group: Development/X11
32     Conflicts: libxorg-x11 < 7.0
33     Provides: %{name} = %{version}
34    
35     %description -n %{libxpm}
36     The xpm package contains the XPM pixmap library for the X Window
37     System. The XPM library allows applications to display color,
38     pixmapped images, and is used by many popular X programs.
39    
40     #-----------------------------------------------------------
41    
42     %package -n %{develxpm}
43     Summary: Development files for %{name}
44     Group: Development/X11
45     Requires: %{libxpm} = %{version}
46     Requires: libx11-devel >= 1.0.0
47     Provides: libxpm-devel = %{version}-%{release}
48     Provides: xpm-devel = %{version}-%{release}
49     Obsoletes: %{libxpm}-devel
50    
51     Conflicts: libxorg-x11-devel < 7.0
52    
53     %description -n %{develxpm}
54     Development files for %{name}
55    
56     %pre -n %{develxpm}
57     if [ -h %{_includedir}/X11 ]; then
58     rm -f %{_includedir}/X11
59     fi
60    
61     %files -n %{develxpm}
62     %defattr(-,root,root)
63     %{_bindir}/cxpm
64     %{_bindir}/sxpm
65     %{_libdir}/libXpm.so
66     %{_libdir}/pkgconfig/xpm.pc
67     %{_includedir}/X11/xpm.h
68     %{_mandir}/man1/*
69    
70     #-----------------------------------------------------------
71    
72     %package -n %{staticdevelxpm}
73     Summary: Static development files for %{name}
74     Group: Development/X11
75     Requires: %{develxpm} >= %{version}
76     Provides: libxpm-static-devel = %{version}-%{release}
77     Provides: xpm-static-devel = %{version}-%{release}
78     Obsoletes: %{libxpm}-static-devel
79    
80     Conflicts: libxorg-x11-static-devel < 7.0
81    
82     %description -n %{staticdevelxpm}
83     Static development files for %{name}
84    
85     %files -n %{staticdevelxpm}
86     %defattr(-,root,root)
87     %{_libdir}/libXpm.a
88    
89     #-----------------------------------------------------------
90    
91     %prep
92     %setup -q -n libXpm-%{version}
93    
94     %build
95     %configure2_5x --x-includes=%{_includedir}\
96     --x-libraries=%{_libdir}
97    
98     %make
99    
100     %install
101     rm -rf %{buildroot}
102     %makeinstall_std
103    
104 colin 174149 find %{buildroot} -name "*.la" -delete
105    
106 blino 1016 %clean
107     rm -rf %{buildroot}
108    
109     %files -n %{libxpm}
110     %defattr(-,root,root)
111     %{_libdir}/libXpm.so.%{major}*
112    
113    

  ViewVC Help
Powered by ViewVC 1.1.30