- Version bump to 3.0.0

* Now with cmake build system
  * Various small fixes around here and there - no upstream changelog
    apart from VCS
- Remove some more obsolete things from spec now when we use cmake

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/freeglut?expand=0&rev=23
This commit is contained in:
Tomáš Chvátal 2015-03-13 13:14:15 +00:00 committed by Git OBS Bridge
parent d89b62a43c
commit 70493c2517
4 changed files with 33 additions and 30 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dde46626a62a1cd9cf48a11951cdd592e7067c345cffe193a149dfd47aef999a
size 1005343

3
freeglut-3.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2a43be8515b01ea82bcfa17d29ae0d40bd128342f0930cd1f375f1ff999f76a2
size 419095

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Mar 13 13:12:11 UTC 2015 - tchvatal@suse.com
- Version bump to 3.0.0
* Now with cmake build system
* Various small fixes around here and there - no upstream changelog
apart from VCS
- Remove some more obsolete things from spec now when we use cmake
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 13 12:56:54 UTC 2015 - tchvatal@suse.com Fri Mar 13 12:56:54 UTC 2015 - tchvatal@suse.com

View File

@ -16,9 +16,9 @@
# #
%define debug 0 %define _libname libglut3
Name: freeglut Name: freeglut
Version: 2.8.1 Version: 3.0.0
Release: 0 Release: 0
Summary: Freely licensed alternative to the GLUT library Summary: Freely licensed alternative to the GLUT library
License: MIT License: MIT
@ -27,8 +27,8 @@ Url: http://freeglut.sourceforge.net/
Source: https://downloads.sourceforge.net/project/freeglut/%{name}/%{version}/%{name}-%{version}.tar.gz Source: https://downloads.sourceforge.net/project/freeglut/%{name}/%{version}/%{name}-%{version}.tar.gz
Source1: glutman.tar.bz2 Source1: glutman.tar.bz2
Source2: baselibs.conf Source2: baselibs.conf
BuildRequires: cmake
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(glu)
@ -52,11 +52,11 @@ GLUT (and freeglut) allow the user to create and manage windows
containing OpenGL contexts and also read the mouse, keyboard, and containing OpenGL contexts and also read the mouse, keyboard, and
joystick functions on a wide range of platforms. joystick functions on a wide range of platforms.
%package -n libglut3 %package -n %_libname
Summary: Freely licensed alternative to the GLUT library Summary: Freely licensed alternative to the GLUT library
Group: Development/Libraries/X11 Group: Development/Libraries/X11
%description -n libglut3 %description -n %_libname
Freeglut is a completely open source alternative to the OpenGL Utility Freeglut is a completely open source alternative to the OpenGL Utility
Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to
support the sample programs in the second edition OpenGL Redbook. Since support the sample programs in the second edition OpenGL Redbook. Since
@ -70,7 +70,7 @@ joystick functions on a wide range of platforms.
%package devel %package devel
Summary: Development libraries, includes and man pages for freeglut (GLUT Library) Summary: Development libraries, includes and man pages for freeglut (GLUT Library)
Group: Development/Libraries/X11 Group: Development/Libraries/X11
Requires: libglut3 = %{version} Requires: %_libname = %{version}
Requires: pkgconfig(gl) Requires: pkgconfig(gl)
Requires: pkgconfig(glu) Requires: pkgconfig(glu)
Provides: mesaglut-devel = 7.11 Provides: mesaglut-devel = 7.11
@ -114,47 +114,41 @@ joystick functions on a wide range of platforms.
%setup -q -b0 -b1 %setup -q -b0 -b1
%build %build
./autogen.sh %cmake \
%configure \ -DFREEGLUT_BUILD_STATIC_LIBS=OFF
--enable-replace-glut \
%if %{debug}
--enable-debug \
%endif
--disable-static
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make DESTDIR=%{buildroot} install %{?_smp_mflags} %cmake_install
# install demo files # install demo files
install -d %{buildroot}%{_libexecdir}/freeglut install -d %{buildroot}%{_libexecdir}/freeglut
for i in shapes smooth_opengl3 spaceball subwin CallbackMaker; do pushd build/bin/ > /dev/null
install progs/demos/$i/.libs/$i %{buildroot}%{_libexecdir}/freeglut/$i for i in *; do
install $i %{buildroot}%{_libexecdir}/freeglut/$i
done done
install progs/demos/Fractals/.libs/fractals %{buildroot}%{_libexecdir}/freeglut/fractals popd > /dev/null
install progs/demos/Fractals_random/.libs/fractals_random %{buildroot}%{_libexecdir}/freeglut/fractals_random
install progs/demos/One/.libs/one %{buildroot}%{_libexecdir}/freeglut/one # old glut Manual Pages
install progs/demos/Lorenz/.libs/lorenz %{buildroot}%{_libexecdir}/freeglut/lorenz
# glut Manual Pages
mkdir -p %{buildroot}/%{_mandir}/man3 mkdir -p %{buildroot}/%{_mandir}/man3
for i in ../glut-3.7/man/glut/glut*; do for i in ../glut-3.7/man/glut/glut*; do
install -m 644 $i %{buildroot}/%{_mandir}/man3/`basename $i man`3 install -m 644 $i %{buildroot}/%{_mandir}/man3/`basename $i man`3
done done
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libglut3 -p /sbin/ldconfig %post -n %_libname -p /sbin/ldconfig
%postun -n libglut3 -p /sbin/ldconfig %postun -n %_libname -p /sbin/ldconfig
%files -n libglut3 %files -n %_libname
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS COPYING NEWS README %doc AUTHORS COPYING README
%{_libdir}/libglut.so.* %{_libdir}/libglut.so.*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%doc ChangeLog
%{_includedir}/GL %{_includedir}/GL
%{_libdir}/libglut.so %{_libdir}/libglut.so
%{_libdir}/pkgconfig/freeglut.pc
%{_mandir}/man3/* %{_mandir}/man3/*
%files demo %files demo