Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > 92e3f11bd5138362b399f45a9613dfed > files > 6

xpm-3.4k-19mdk.src.rpm

%define prefix	/usr/X11R6
%define	major	4
%define	LIBVER	4.11

Summary:	A pixmap library for the X Window System
Name:		xpm
Version:	3.4k
Release:	19mdk
License:	MIT
Group:		System/Libraries
Packager:	David BAUDENS <baudens@mandrakesoft.com>

Source0:	ftp://ftp.x.org/contrib/libraries/xpm-%{version}.tar.bz2
Source1:	ftp://ftp.x.org/contrib/libraries/xpm-doc-A4.PS.gz 
Source2:	ftp://ftp.x.org/contrib/libraries/xpm-tutorial.PS.gz 
Source3:	ftp://ftp.x.org/contrib/libraries/xpm-FAQ.html
Source4:	ftp://ftp.x.org/contrib/libraries/xpm-README.html
Source5:	ftp://ftp.x.org/contrib/libraries/xpm_examples.tar.bz2

BuildRequires:	XFree86-devel
BuildRoot:	%_tmppath/%name-%version-root

%description
The xpm package contains the XPM pixmap library for the X Window
System.  The XPM library allows applications to display color,
pixmapped images, and is used by many popular X programs.

%package -n lib%name%major
Summary:	A pixmap library for the X Window System
Group:		System/Libraries
Provides:	%name, xpm3.4k
Obsoletes:	%name, xpm3.4k

%description -n lib%name%major
The xpm package contains the XPM pixmap library for the X Window
System.  The XPM library allows applications to display color,
pixmapped images, and is used by many popular X programs.

%package -n lib%name%major-devel
Summary:	Tools for developing apps which will use the XPM pixmap library
Group:		Development/C
Requires:	lib%name%major = %version-%release
Provides:	%name-devel, lib%name-devel, xpm3.4k-devel
Obsoletes:	%name-devel, xpm3.4k-devel

%description -n lib%name%major-devel
The xpm-devel package contains the development libraries and header
files  necessary for developing applications which will use the XPM
library.  The XPM library is used by many programs for displaying
pixmaps in the X Window System.

Install the xpm-devel package if you want to develop applications using
the XPM pixmap library.  You'll also need to install the xpm package.

%prep

%setup -q
cd $RPM_SOURCE_DIR
cp %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 %SOURCE5 $RPM_BUILD_DIR/%{name}-%{version}

%build
xmkmf
make Makefiles
mkdir -p exports/include/X11
cp lib/*.h exports/include/X11
%make CDEBUGFLAGS="$RPM_OPT_FLAGS" CXXDEBUGFLAGS="$RPM_OPT_FLAGS"

%install
make DESTDIR=$RPM_BUILD_ROOT install
ln -sf libXpm.so.%{LIBVER} $RPM_BUILD_ROOT%prefix/lib/libXpm.so

# (fg) 20000906 Why is it needed??
%ifarch ia64
(
cd lib && {
   ar cru libXpm.a *.o
   install -m644 libXpm.a $RPM_BUILD_ROOT%prefix/lib
	  }
)
%endif



%clean
rm -rf $RPM_BUILD_ROOT



%post -n lib%name%major
/sbin/ldconfig

%postun -n lib%name%major
/sbin/ldconfig



%files -n lib%name%major
%defattr(-,root,root)
%doc CHANGES COPYRIGHT FAQ.html FILES README.html
%prefix/lib/libXpm.so.*



%files -n lib%name%major-devel
%defattr(-,root,root)
%doc xpm-doc-A4.PS.gz xpm-tutorial.PS.gz xpm-FAQ.html xpm-README.html xpm_examples.tar.bz2
%doc doc/xpm.PS.gz
#
#
%prefix/bin/*
#
#
%prefix/include/X11/*
#
#
%ifnarch ppc
%prefix/lib/libXpm.a
%endif
%prefix/lib/libXpm.so



%changelog
* Thu Jan 17 2002 David BAUDENS <baudens@mandrakesoft.com> 3.4k-19mdk
- Provide again xpm.h

* Wed Jan 16 2002 David BAUDENS <baudens@mandrakesoft.com> 3.4k-18mdk
- Fix conflict with XFree86-devel-4.1.99.6-1mdk

* Sat Jun 30 2001 Stefan van der Eijk <stefan@eijk.nu> 3.4k-17mdk
- BuildRequires:	XFree86-devel

* Sat Dec 09 2000 David BAUDENS <baudens@mandrakesoft.com> 3.4k-16mdk
- PPC: fix %%files
- mv Copyright License

* Wed Dec 06 2000 David BAUDENS <baudens@mandrakesoft.com> 3.4k-15mdk
- Fix provide to make QA happy

* Mon Dec 04 2000 David BAUDENS <baudens@mandrakesoft.com> 3.4k-14mdk
- Make really compliant to new LMDK lib policy

* Fri Nov 24 2000 David BAUDENS <baudens@mandrakesoft.com> 3.4k-13mdk
- Add Provides xpm (were not requires by rpmlint)

* Fri Nov 24 2000 David BAUDENS <baudens@mandrakesoft.com> 3.4k-12mdk
- Make compliant to new LMDK lib policy
- Add missing file
- Add documentation

* Thu Nov 23 2000 David BAUDENS <baudens@mandrakesoft.com> 3.4k-11mdk
- Build with glibc-2.2 and gcc-2.96
- Macros
- Add packager tag

* Thu Sep 05 2000 Francis Galiegue <fg@mandrakesoft.com> 3.4k-10mdk
- More macros
- Let spec-helper do its job...

* Tue Aug 08 2000 Frederic Lepied <flepied@mandrakesoft.com> 3.4k-9mdk
- automatically added BuildRequires

* Mon Apr  3 2000 Adam Lebsack <adam@mandrakesoft.com> 3.4k-8mdk
- Release build.

* Sun Nov  7 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Increase release for compat with cassini.

* Tue Nov  2 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Merge with rh specs.
- 3.4k.

* Thu May 06 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions
- handle RPM_OPT_FLAGS

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 5)

* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
- build for glibc 2.1

* Thu Aug 13 1998 Jeff Johnson <jbj@redhat.com>
- build root

* Fri May 08 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
- upgraded to 3.4j
- spec file cleanups
- added docs to the devel package

* Mon Jun 16 1997 Erik Troan <ewt@redhat.com>
- built against glibc