File plib.spec of Package plib

#
# spec file for package plib (Version 1.8.5)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           plib
BuildRequires:  freeglut-devel gcc-c++ libdrm-devel xorg-x11
Version:        1.8.5
Release:        63
AutoReqProv:    on
Group:          System/Libraries
License:        LGPL v2.1 or later
Url:            http://plib.sourceforge.net/
Summary:        A collection of useful Game libraries
Source:         %{name}-%{version}.tar.bz2
Patch0:         %{name}-%{version}-shared.patch
Patch1:         %{name}-%{version}-intptr_t.patch
Patch2:         %{name}-%{version}-strncat.patch
Patch3:         plib-1.8.5-CVE-2011-4620.patch
Patch4:         plib-1.8.5-CVE-2012-4552.patch
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>

%package devel
License:        LGPL v2.1 or later
Requires:       plib = %{version}
Summary:        A collection of useful Game libraries
Group:          System/Libraries
Requires:       Mesa
Requires:       glibc-devel
Requires:       xorg-x11-devel

%description devel
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
%patch4

%build
autoreconf -fiv
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

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

%files devel
%defattr(-,root,root)
%{_includedir}/plib
%{_libdir}/*.so

%changelog
* Fri Jan 09 2009 crrodriguez@suse.de
- remove static libraries and "la" files
* Tue Mar 11 2008 prusnak@suse.cz
- updated to 1.8.5
  * removed several widgets from pui/, which were declared
  obsolete since a long time. Most of them are now available
  in puAux/
  * several fixes and improvements to puAuxList
  * puInputText scrolling fixed
  * Improved DirectX loader
  * Check ownership before deleting in ssgSimpleList
  * Fixed netSocket
  * Fixed mem leak in ssgVertSplitter
  * Fixed pw window sizes on win32
  * Added pview ssg-example
  * Fix clock delta in first call
  * Made colour of listbox changable
  * Fixed text with negative coordinates
  * Fixed misc bugs in puAuxLargeInput
  * Allow the user to activate a widget with custom mouse button
  * Made material loading from wavefront models more robust
  * Handle linux joysticks with a lot of axes
  * Avoid specular anomalies in 3ds files
  * Added a demo for ssgaShapes
  * Fixed the diameter of ssgaSphere
  * Fixed inability to add colour to the ssgaTeapot
  * Remove scale dep in ssgaFire
- fixed strncat usage (strncat.patch)
- dropped obsolete patches:
  * extraqual.diff (included in update)
  * joystick.diff (included in update)
* Thu Jan 10 2008 lmichnovic@suse.cz
- added glibc-devel, xorg-x11-devel as Requires
* Fri Jan 04 2008 lmichnovic@suse.cz
- fixed deprecated run_ldconfig macro
- no need to use %%suse_update_config when autotools are called
  anyway (Other dists get chocked in BuildService.)
- no need to pack files NEWS and INSTALL
- compiling with no-strict-aliasing
* Wed May 23 2007 prusnak@suse.cz
- move devel files to plib-devel subpackage
* 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