- Cleanup with spec-cleaner a bit

- Remove obsolete conditions
- Remove condition for sle11 build as it fails anyway

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/freeglut?expand=0&rev=22
This commit is contained in:
Tomáš Chvátal 2015-03-13 12:57:17 +00:00 committed by Git OBS Bridge
parent 4ceebbe8eb
commit d89b62a43c
2 changed files with 12 additions and 21 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 13 12:56:54 UTC 2015 - tchvatal@suse.com
- Cleanup with spec-cleaner a bit
- Remove obsolete conditions
- Remove condition for sle11 build as it fails anyway
-------------------------------------------------------------------
Mon Sep 15 17:13:24 UTC 2014 - crrodriguez@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package freeglut
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,6 @@
%define debug 0
Name: freeglut
Version: 2.8.1
Release: 0
@ -40,11 +39,6 @@ BuildRequires: pkgconfig(xxf86vm)
Recommends: Mesa-demo-x
Provides: mesaglut = 7.11
Obsoletes: mesaglut < 7.11
# bug437293
%ifarch ppc64
Obsoletes: freeglut-64bit
%endif
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -73,24 +67,14 @@ 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.
%package devel
Summary: Development libraries, includes and man pages for freeglut (GLUT Library)
Group: Development/Libraries/X11
Requires: libglut3 = %{version}
%if 0%{?suse_version} >= 1220
Requires: pkgconfig(gl)
Requires: pkgconfig(glu)
%else
Requires: xorg-x11-Mesa-devel
%endif
Provides: mesaglut-devel = 7.11
Obsoletes: mesaglut-devel < 7.11
# bug437293
%ifarch ppc64
Obsoletes: freeglut-devel-64bit
%endif
#
%description devel
This package contains all necessary include files and libraries needed
@ -127,20 +111,20 @@ containing OpenGL contexts and also read the mouse, keyboard, and
joystick functions on a wide range of platforms.
%prep
%setup -q -b0 -b1 -n %{name}-%{version}
%setup -q -b0 -b1
%build
./autogen.sh
%configure \
--enable-replace-glut \
%if %debug
%if %{debug}
--enable-debug \
%endif
--disable-static
make %{?_smp_mflags}
%install
make install DESTDIR="%buildroot"
make DESTDIR=%{buildroot} install %{?_smp_mflags}
# install demo files
install -d %{buildroot}%{_libexecdir}/freeglut
for i in shapes smooth_opengl3 spaceball subwin CallbackMaker; do
@ -155,7 +139,7 @@ mkdir -p %{buildroot}/%{_mandir}/man3
for i in ../glut-3.7/man/glut/glut*; do
install -m 644 $i %{buildroot}/%{_mandir}/man3/`basename $i man`3
done
rm -rf %{buildroot}%{_libdir}/libglut.la
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libglut3 -p /sbin/ldconfig