7498f55
Name:           plib
75ece07
Version:        1.8.5
8ad741d
Release:        12%{?dist}
7498f55
Summary:        Set of portable libraries especially useful for games
7498f55
Group:          System Environment/Libraries
cc2c199
License:        LGPLv2+
7498f55
URL:            http://plib.sourceforge.net/
7498f55
Source:         http://plib.sourceforge.net/dist/plib-%{version}.tar.gz
7498f55
Patch1:         plib-1.8.4-fullscreen.patch
7498f55
Patch3:         plib-1.8.4-autorepeat.patch
b24a9a6
Patch4:         plib-1.8.5-CVE-2011-4620.patch
481f9a5
Patch5:         plib-1.8.5-CVE-2012-4552.patch
7498f55
BuildRequires:  freeglut-devel libpng-devel libXext-devel libXi-devel
7498f55
Buildrequires:  libXmu-devel libSM-devel libXxf86vm-devel
5910d5c
cvsextras 364f1ee
%description
5910d5c
This is a set of OpenSource (LGPL) libraries that will permit programmers
5910d5c
to write games and other realtime interactive applications that are 100%
5910d5c
portable across a wide range of hardware and operating systems. Here is
5910d5c
what you need - it's all free and available with LGPL'ed source code on
5910d5c
the web. All of it works well together.
5910d5c
5910d5c
5910d5c
%package devel
7498f55
Summary:        Development files for %{name}
7498f55
Group:          Development/Libraries
7498f55
Requires:       %{name} = %{version}-%{release}
7498f55
Requires:       libGL-devel
5910d5c
5910d5c
%description devel
4d65c64
This package contains the header files and libraries needed to write
4d65c64
or compile programs that use plib.
5910d5c
cvsextras 364f1ee
cvsextras 364f1ee
%prep
4d65c64
%setup -q
4d65c64
%patch1 -p1 -b .fs
7498f55
%patch3 -p1 -b .autorepeat
b24a9a6
%patch4 -p1
481f9a5
%patch5 -p1
4d65c64
# for some reason this file has its x permission sets, which makes rpmlint cry
4d65c64
chmod -x src/sg/sgdIsect.cxx
5910d5c
cvsextras 364f1ee
cvsextras 364f1ee
%build
7498f55
%configure CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DXF86VIDMODE"
7498f55
make %{?_smp_mflags} 
4d65c64
# and below is a somewhat dirty hack inspired by debian to build shared libs
4d65c64
# instead of static. Notice that the adding of -fPIC to CXXFLAGS above is part
4d65c64
# of the hack.
4d65c64
dirnames=(util sg ssg fnt js net psl pui puAux pw sl sl ssgAux)
4d65c64
libnames=(ul sg ssg fnt js net psl pu puaux pw sl sm ssgaux)
4d65c64
libdeps=("" \
4d65c64
  "-L../util -lplibul" \
4d65c64
  "-L../util -lplibul -L../sg -lplibsg -lGL" \
4d65c64
  "-L../util -lplibul -L../sg -lplibsg -lGL" \
4d65c64
  "-L../util -lplibul" \
4d65c64
  "-L../util -lplibul" \
4d65c64
  "-L../util -lplibul" \
4d65c64
  "-L../util -lplibul -L../sg -lplibsg -L../fnt -lplibfnt -lGL" \
4d65c64
  "-L../util -lplibul -L../sg -lplibsg -L../fnt -lplibfnt -L../pui -lplibpu -lGL" \
4d65c64
  "-L../util -lplibul -lX11 -lGL -lXxf86vm" \
4d65c64
  "-L../util -lplibul" \
4d65c64
  "-L../util -lplibul" \
4d65c64
  "-L../util -lplibul -L../sg -lplibsg -L../ssg -lplibssg -lGL")
4d65c64
4d65c64
for (( i = 0; i < 13; i++ )) ; do
4d65c64
  pushd src/${dirnames[$i]}
4d65c64
  gcc -shared -Wl,-soname,libplib${libnames[$i]}.so.%{version} \
4d65c64
    -o libplib${libnames[$i]}.so.%{version} `ar t libplib${libnames[$i]}.a` \
4d65c64
    ${libdeps[$i]}
4d65c64
  ln -s libplib${libnames[$i]}.so.%{version} libplib${libnames[$i]}.so
4d65c64
  popd
4d65c64
done
5910d5c
cvsextras 364f1ee
cvsextras 364f1ee
%install
7498f55
make install DESTDIR=$RPM_BUILD_ROOT
4d65c64
# we don't want the static libs
7498f55
rm $RPM_BUILD_ROOT%{_libdir}/*.a
4d65c64
# instead do a DIY install of the shared libs we created
7498f55
cp -a `find . -name "libplib*.so*"` $RPM_BUILD_ROOT%{_libdir}
5910d5c
cvsextras 364f1ee
4d65c64
%post -p /sbin/ldconfig
4d65c64
4d65c64
%postun -p /sbin/ldconfig
4d65c64
4d65c64
4d65c64
%files
5910d5c
%doc AUTHORS COPYING ChangeLog NOTICE README
4d65c64
%{_libdir}/libplib*.so.%{version}
4d65c64
4d65c64
%files devel
5910d5c
%{_includedir}/*
4d65c64
%{_libdir}/libplib*.so
cvsextras 364f1ee
cvsextras 364f1ee
cvsextras 364f1ee
%changelog
8ad741d
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-12
8ad741d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8ad741d
7c017ba
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-11
7c017ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7c017ba
571bcc6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-10
571bcc6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
571bcc6
161b170
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-9
161b170
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
161b170
481f9a5
* Thu Nov  1 2012 Hans de Goede <hdegoede@redhat.com> - 1.8.5-8
481f9a5
- Fix a bufferoverflow in _ssgParser::error() (CVE-2012-4552)
481f9a5
7c783cc
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-7
7c783cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7c783cc
2cf1fd7
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-6
2cf1fd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2cf1fd7
b24a9a6
* Tue Dec 27 2011 Hans de Goede <hdegoede@redhat.com> - 1.8.5-5
b24a9a6
- Fix a bufferoverflow in ulSetError() (CVE-2011-4620)
b24a9a6
2b812e3
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-4
2b812e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2b812e3
758b815
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-3
758b815
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
758b815
84b03cf
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-2
84b03cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
84b03cf
75ece07
* Mon Apr 13 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 1.8.5-1
75ece07
- New upstream release 1.8.5
75ece07
946fde2
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.8.4-10
946fde2
- Autorebuild for GCC 4.3
946fde2
cc2c199
* Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.8.4-9
cc2c199
- Update License tag for new Licensing Guidelines compliance
cc2c199
7498f55
* Fri Oct  6 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.8.4-8
7498f55
- Fix keypresses sometimes getting lost by alternative (better) keyboard
7498f55
  autorepeat support
7498f55
- Cleanup specfile
7498f55
04ba6d2
* Tue Aug 29 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.8.4-7
04ba6d2
- FE6 Rebuild
04ba6d2
7cb6cff
* Sat Jun 10 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.8.4-6
7cb6cff
- Remove use of conditional BuildReqs dependent on %%fedora, this breaks
75ece07
  when people try to rebuild the SRPM and don't have %%fedora defined.
7cb6cff
  (Instead hardcode the correct BR's per Fedora Release).
7cb6cff
7f014ab
* Mon Jun  5 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.8.4-5
7f014ab
- Add a missing Requires: libGL-devel to plib-devel subpackage.
7f014ab
4d65c64
* Sat Jun  3 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.8.4-4
4d65c64
- Taking over as plib maintainer (discussed in bz 192086).
4d65c64
- Add a patch for better fullscreen support (bz 192086).
4d65c64
- Build shared libs instead of static ones. Note: this makes the base
4d65c64
  package a real package instead of only having a -devel package.
4d65c64
81c2e2c
* Mon Mar  6 2006 Matthias Saou <http://freshrpms.net/> 1.8.4-3
81c2e2c
- FC5 rebuild.
81c2e2c
b27e9c6
* Thu Feb  9 2006 Matthias Saou <http://freshrpms.net/> 1.8.4-2
b27e9c6
- Rebuild for new gcc/glibc and modular X.
b27e9c6
- Include gcc 4.1 patch to fix extra qualification errors.
b27e9c6
1e2da39
* Mon Jun 27 2005 Matthias Saou <http://freshrpms.net/> 1.8.4-1
1e2da39
- Update to 1.8.4.
1e2da39
b2c0332
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.8.3-7
b2c0332
- rebuild on all arches
b2c0332
59699fb
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 1.8.3-6
92c5b7f
- rebuilt
92c5b7f
10ead53
* Wed Feb  9 2005 Matthias Saou <http://freshrpms.net/> 1.8.3-5
10ead53
- Force -fPIC to be added to CXXFLAGS to fix linking against the lib on x86_64.
10ead53
5910d5c
* Wed Nov 24 2004 Matthias Saou <http://freshrpms.net/> 1.8.3-4
5910d5c
- Bump release to provide Extras upgrade path.
5910d5c
5910d5c
* Thu Jul 15 2004 Matthias Saou <http://freshrpms.net/> 1.8.3-3
5910d5c
- Only build a devel package now as all files are headers and static libs.
5910d5c
5910d5c
* Wed May 19 2004 Matthias Saou <http://freshrpms.net/> 1.8.3-2
5910d5c
- Rebuild for Fedora Core 2.
5910d5c
5910d5c
* Thu Apr 15 2004 Matthias Saou <http://freshrpms.net/> 1.8.3-1
5910d5c
- Update to 1.8.3.
5910d5c
5910d5c
* Tue Nov 11 2003 Matthias Saou <http://freshrpms.net/> 1.6.0-3
5910d5c
- Rebuild for Fedora Core 1.
5910d5c
5910d5c
* Mon Mar 31 2003 Matthias Saou <http://freshrpms.net/>
5910d5c
- Rebuilt for Red Hat Linux 9.
cvsextras 364f1ee
5910d5c
* Wed Dec  4 2002 Matthias Saou <http://freshrpms.net/>
5910d5c
- Update to 1.6.0.
cvsextras 364f1ee
5910d5c
* Wed Jun 20 2001 Matthias Saou <http://freshrpms.net/>
5910d5c
- Initial RPM release.
cvsextras 364f1ee