- 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 Mon Sep 15 17:13:24 UTC 2014 - crrodriguez@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package freeglut # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,6 @@
%define debug 0 %define debug 0
Name: freeglut Name: freeglut
Version: 2.8.1 Version: 2.8.1
Release: 0 Release: 0
@ -40,11 +39,6 @@ BuildRequires: pkgconfig(xxf86vm)
Recommends: Mesa-demo-x Recommends: Mesa-demo-x
Provides: mesaglut = 7.11 Provides: mesaglut = 7.11
Obsoletes: mesaglut < 7.11 Obsoletes: mesaglut < 7.11
# bug437293
%ifarch ppc64
Obsoletes: freeglut-64bit
%endif
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %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 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 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: libglut3 = %{version}
%if 0%{?suse_version} >= 1220
Requires: pkgconfig(gl) Requires: pkgconfig(gl)
Requires: pkgconfig(glu) Requires: pkgconfig(glu)
%else
Requires: xorg-x11-Mesa-devel
%endif
Provides: mesaglut-devel = 7.11 Provides: mesaglut-devel = 7.11
Obsoletes: mesaglut-devel < 7.11 Obsoletes: mesaglut-devel < 7.11
# bug437293
%ifarch ppc64
Obsoletes: freeglut-devel-64bit
%endif
#
%description devel %description devel
This package contains all necessary include files and libraries needed 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. joystick functions on a wide range of platforms.
%prep %prep
%setup -q -b0 -b1 -n %{name}-%{version} %setup -q -b0 -b1
%build %build
./autogen.sh ./autogen.sh
%configure \ %configure \
--enable-replace-glut \ --enable-replace-glut \
%if %debug %if %{debug}
--enable-debug \ --enable-debug \
%endif %endif
--disable-static --disable-static
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make install DESTDIR="%buildroot" make DESTDIR=%{buildroot} install %{?_smp_mflags}
# 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 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 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
rm -rf %{buildroot}%{_libdir}/libglut.la find %{buildroot} -type f -name "*.la" -delete -print
%post -n libglut3 -p /sbin/ldconfig %post -n libglut3 -p /sbin/ldconfig