File plib.spec of Package plib

#
# spec file for package plib (Version 1.8.4)
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#

# norootforbuild

Name:         plib
BuildRequires: freeglut-devel gcc-c++ libdrm-devel xorg-x11
Version:      1.8.4
Release:      7
Autoreqprov:  on
Group:        System/Libraries
License:      GPL
URL:          http://plib.sourceforge.net/
Summary:      A collection of useful Game libraries
Source:       %{name}-%{version}.tar.bz2
Patch0:       %{name}-%{version}-type.diff
Patch1:       %{name}-%{version}-joystick.diff
Patch2:       %{name}-%{version}-shared.diff
Patch3:       %{name}-%{version}-extraqual.diff
BuildRoot:    %{_tmppath}/%{name}-%{version}-build

%description
Plib contains a selection of libraries, that can be helpful for 3D game
programming. It contains the following libraries:

o JS - A Joystick interface.

o PUI - A simple GUI built on top of OpenGL

o SG - Some Standard Geometry functions

o SL - A Games-oriented Sound Library

o SSG - A Simple Scene Graph API built on top of OpenGL



Authors:
--------
    Steve Baker <sjbaker1@airmail.net>

%prep
%setup -q
%patch0
%patch1
%patch2
%patch3 -p1

%build
%{suse_update_config -f}
libtoolize --force
aclocal --force
automake -acf
autoconf --force
CFLAGS="$RPM_OPT_FLAGS -Wall -fmessage-length=0" \
CXXFLAGS="$RPM_OPT_FLAGS -Wall -fmessage-length=0" \
	./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--sysconfdir=%{_sysconfdir}
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
libtool --finish $RPM_BUILD_ROOT%{_libdir}

%post
%{run_ldconfig}

%postun
%{run_ldconfig}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS
%doc NEWS NOTICE README README.GLUT TODO-1.6 TODO-2.0 TODO_AFTER135
%{_includedir}/plib
%{_libdir}/lib*

%changelog -n plib
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Oct 20 2005 - mmj@suse.de
- remove extra qualification
* Fri Feb 25 2005 - ro@suse.de
- fix filelist (packing complete /usr/lib is not possible)
* Wed Feb 23 2005 - mjancar@suse.cz
- build shared libraries (needed by torcs)
* Wed Feb 02 2005 - mjancar@suse.cz
- update to 1.8.4 (needed by FlightGear)
* Fri Aug 13 2004 - mjancar@suse.cz
- update to 1.8.3
* Sat Jan 10 2004 - adrian@suse.de
- add %%defattr
* Mon Oct 13 2003 - ro@suse.de
- remove explicit requires for mesa
* Thu Jul 31 2003 - mjancar@suse.cz
- use %%run_ldconfig
* Tue Dec 10 2002 - prehak@suse.cz
- fixed brace-enclosed initialization (due to gcc-3.3)
* Thu Oct 24 2002 - prehak@suse.cz
- updated to version 1.6.0
* Wed Aug 21 2002 - nadvornik@suse.cz
- use RPM_OPT_FLAGS instead of -O6
* Thu Jan 10 2002 - rvasice@suse.cz
- use %%{_libdir}
* Fri Nov 09 2001 - rvasice@suse.cz
- fix to compile with new automake
* Thu Nov 08 2001 - ro@suse.de
- use mesa-devel-packages in neededforbuild
* Thu Jul 26 2001 - rvasice@suse.cz
- update to version 1.4.2
* Fri Jul 13 2001 - rvasice@suse.cz
- update to version 1.4.1
* Mon Jun 04 2001 - rvasice@suse.cz
- spec file cleanup
- bzip2 sources
* Thu Mar 15 2001 - ro@suse.de
- changed neededforbuild <mesaglu> to <xf86glu>
- changed neededforbuild <mesaglu-devel> to <xf86glu-devel>
* Tue Mar 13 2001 - ro@suse.de
- added mesaglut
* Fri Mar 09 2001 - ro@suse.de
- added mesaglu
* Wed Mar 07 2001 - ro@suse.de
- changed neededforbuild <mesadev> to <mesa-devel>
- added xf86 to neededforbuild
* Fri Feb 09 2001 - ro@suse.de
- include float.h in sg.h
* Mon Aug 07 2000 - smid@suse.cz
- upgrade to 1.2.0
* Mon May 22 2000 - smid@suse.cz
- mesadev added to neededforbuild
* Thu May 04 2000 - smid@suse.cz
- upgrade to 1.1.11
* Fri Apr 21 2000 - smid@suse.cz
- buildroot added
* Thu Feb 17 2000 - grimmer@suse.de
- added URL to spec file
- use full URL to source package
- use version macro
* Tue Dec 28 1999 - sndirsch@suse.de
- updated to version 1.0.20
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Aug 18 1999 - sndirsch@suse.de
- update to version 1.0.16
* Wed Jul 07 1999 - grimmer@suse.de
- initial package created (Version 1.0.12)
openSUSE Build Service is sponsored by