Added an RPM spec file based on the one shipped with SuSE 9.3.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@635 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2005-06-14 15:37:09 +00:00
parent 9e001e7b44
commit 2ded92b062
3 changed files with 150 additions and 0 deletions

1
.gitattributes vendored
View File

@ -27,6 +27,7 @@ freeglut/freeglut/freeglut.dsw svn_keywords=Author+Date+Id+Revision
freeglut/freeglut/freeglut.kdevelop svn_keywords=Author+Date+Id+Revision
freeglut/freeglut/freeglut.kdevprj svn_keywords=Author+Date+Id+Revision
freeglut/freeglut/freeglut.lsm svn_keywords=Author+Date+Id+Revision
freeglut/freeglut/freeglut.spec svn_keywords=Author+Date+Id+Revision
freeglut/freeglut/freeglut_evc4.vcp svn_keywords=Author+Date+Id+Revision
freeglut/freeglut/freeglut_evc4.vcw svn_keywords=Author+Date+Id+Revision
freeglut/freeglut/freeglut_static.dsp svn_keywords=Author+Date+Id+Revision

View File

@ -1047,3 +1047,9 @@ wrong.
**************************************************************************
* 9 Jun 2005 -- 2.4.0 Released
**************************************************************************
**************************************************************************
* Changes on 14 Jun 2005
**************************************************************************
(271) Added an RPM spec file based on the one shipped with SuSE 9.3.

View File

@ -0,0 +1,143 @@
#
# spec file for package freeglut (Version 2.4.0)
#
# 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
# neededforbuild gcc-c++ gcc-g77 libstdc++ libstdc++-devel mesa-devel-packages x-devel-packages
BuildRequires: aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libattr libgcc libnscd libselinux libstdc++ libxcrypt libzio m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch permissions popt procinfo procps psmisc pwdutils rcs readline sed strace syslogd sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel autoconf automake binutils expat fontconfig fontconfig-devel gcc gcc-c++ gcc-g77 gdbm gettext libstdc++-devel libtool perl rpm xorg-x11-Mesa xorg-x11-Mesa-devel xorg-x11-devel xorg-x11-libs
Name: freeglut
Summary: Freely Licensed Alternative to the GLUT Library
Version: 2.4.0
Release: 1
URL: http://freeglut.sourceforge.net/
Source0: http://switch.dl.sourceforge.net/sourceforge/freeglut/freeglut-%{version}.tar.gz
# NOTE: SuSE adds the original GLUT man pages. If you don't have the file
# below, comment that line out and remove "-b1" from the setup macro.
Source1: glutman.tar.bz2
License: X11/MIT
Provides: mesaglut
Obsoletes: mesaglut
Group: System/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
freeglut is a completely Open Source alternative to the OpenGL Utility
Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to
support the sample programs in the second edition OpenGL Redbook. Since
then, GLUT has been used in a wide variety of practical applications
because it is simple, universally available, and highly portable.
GLUT (and freeglut) allow the user to create and manage windows
containing OpenGL contexts and also read the mouse, keyboard, and
joystick functions on a wide range of platforms.
Authors:
--------
Pawel W. Olszta
Andreas Umbach
Steve Baker
%package devel
Summary: Development Package for freeglut (GLUT Library)
Group: Development/Libraries/X11
Requires: %{name} = %{version}-%{release}
Provides: mesaglut-devel
Obsoletes: mesaglut-devel
%description devel
Freeglut (GLUT library) development package.
%debug_package
%prep
%setup -q -b1
%build
./autogen.sh
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=/usr --libdir=%_libdir
make %{?jobs:-j%jobs}
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
# GLUT manual pages
touch man-pages
if test -d ../glut-3.7 ; then
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man3
dir=`pwd`
pushd ../glut-3.7
for i in man/glut/glut*; do
install -m 644 $i ${RPM_BUILD_ROOT}/%{_mandir}/man3/`basename $i man`3
gzip -9 ${RPM_BUILD_ROOT}/%{_mandir}/man3/`basename $i man`3
echo %{_mandir}/man3/`basename $i man`3.gz >> ${dir}/man-pages
done
popd
fi
%post
%run_ldconfig
%postun
%run_ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_libdir}/libglut.so.*
%files devel -f man-pages
%defattr(-,root,root)
%{_includedir}/GL/*
%{_libdir}/libglut.a
%{_libdir}/libglut.la
%{_libdir}/libglut.so
%changelog -n freeglut
* Mon Jun 13 2005 - sven.panne@aedion.de
- updated to release 2.4.0
- use autogen.sh
- no need to remove demos
- conditionalized handling of GLUT manual pages
* Thu Apr 29 2004 - coolo@suse.de
- build parallel if available
- build as user
* Mon Dec 15 2003 - sndirsch@suse.de
- updated to release 2.2.0
* Mousewheel Support for Win32 & X11
* More unified Win32/*nix behavior and code
* Code style cleanups
* Visibility support in Win32
* Many other Good Bug Fixes
* Sat Dec 06 2003 - sndirsch@suse.de
- updated to release 2.0.1
* fixes a number of bugs with menus
* Fri Oct 10 2003 - adrian@suse.de
- fix build for mips
- satisfy configure checks
* Thu Oct 02 2003 - sndirsch@suse.de
- provides/obsoletes mesaglut/mesglut-devel now
* Tue Sep 30 2003 - sndirsch@suse.de
- removed demos
* Tue Sep 30 2003 - sndirsch@suse.de
- added GLUT manual pages
* Mon Sep 29 2003 - sndirsch@suse.de
- updated to final release 2.0.0
* Thu Aug 14 2003 - sndirsch@suse.de
- added GameMode fix (GameModeFixes-4.dif)
* Thu Aug 07 2003 - sndirsch@suse.de
- created package