Browse Source

freeglut-3.2.2-1

Tomohiro "Tomo-p" KATO 1 year ago
parent
commit
237f42a49d
1 changed files with 43 additions and 34 deletions
  1. 43 34
      f/freeglut/freeglut-vl.spec

+ 43 - 34
f/freeglut/freeglut-vl.spec

@@ -1,27 +1,27 @@
-Name:      freeglut
-Version:   2.8.1
-Release:   1%{?_dist_release}
-Summary:   A freely licensed alternative to the GLUT library
-Summary(ja): 自由なライセンスで提供される GLUT ライブラリ
-
-URL:       http://freeglut.sourceforge.net
-License:   MIT
-Group:     System Environment/Libraries
-
-Source0:   http://sourceforge.net/projects/freeglut/files/%{name}-%{version}.tar.gz
-
+Name:           freeglut
+Version:        3.2.2
+Release:        1%{?_dist_release}
+Summary:        A freely licensed alternative to the GLUT library
+Summary(ja):    自由なライセンスで提供される GLUT ライブラリ
+Group:          system
+Vendor:         Project Vine
+Distribution:   Vine Linux
+
+URL:            http://freeglut.sourceforge.net
+License:        MIT
+Source0:        https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# For the manpages
+Source1:        https://downloads.sourceforge.net/openglut/openglut-0.6.3-doc.tar.gz
 # patch from Fedora
-Patch0: freeglut-2.8.0-fixld.patch
-Patch1: freeglut-glextconflict.patch
-Patch2: freeglut-2.8.0-fixXInput.patch
-Patch3: freeglut-2.8.0-btnmask.patch
+Patch0:         common.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: cmake
 BuildRequires: pkgconfig
+BuildRequires: libICE-devel
 BuildRequires: libXext-devel
-BuildRequires: libXxf86vm-devel
-BuildRequires: mesa-libGLU-devel
 BuildRequires: libXi-devel
+BuildRequires: mesa-libGLU-devel
 # The virtual Provides below is present so that this freeglut package is a
 # drop in binary replacement for "glut" which will satisfy rpm dependancies
 # properly.  The Obsoletes tag is required in order for any pre-existing
@@ -30,9 +30,6 @@ BuildRequires: libXi-devel
 Provides: glut = 3.7
 Obsoletes: glut <= 3.7
 
-Vendor: Project Vine
-Distribution: Vine Linux
-
 %description
 freeglut is a completely open source alternative to the OpenGL Utility Toolkit
 (GLUT) library with an OSI approved free software license. GLUT was originally
@@ -44,10 +41,11 @@ freeglut allows the user to create and manage windows containing OpenGL
 contexts on a wide range of platforms and also read the mouse, keyboard and
 joystick functions.
 
+
 %package devel
 Summary: freeglut developmental libraries and header files
 Summary(ja): freeglut の開発用ファイル
-Group: Development/Libraries
+Group: programming
 Requires: %{name} = %{version}-%{release}
 Requires: mesa-libGL-devel
 Requires: mesa-libGLU-devel
@@ -60,33 +58,36 @@ software which links to the freeglut library, which is an open source
 alternative to the popular GLUT library, with an OSI approved free software
 license.
 
+
+%debug_package
+
+
 %prep
-%setup -q
-%patch0 -p1 -b .fixld
-%patch1 -p1 -b .noxwarn
+%setup -q -a 1
+%patch0 -p0
+
 
 %build
-%configure --disable-static --disable-warnings
-make %{?_smp_mflags}
+%cmake -DFREEGLUT_BUILD_STATIC_LIBS=OFF
+%cmake_build
+
 
 %install
 rm -rf $RPM_BUILD_ROOT
+%cmake_install
 
-make install DESTDIR=$RPM_BUILD_ROOT 
-chmod 644 doc/*.{html,png}
+mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man3
+install -p -m 644 doc/man/*.3 $RPM_BUILD_ROOT/%{_mandir}/man3
 
-rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root,-)
-%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO doc/*.png doc/*.html
+%license COPYING
+%doc AUTHORS ChangeLog README
 # don't include contents of doc/ directory as it is mostly obsolete
 %{_libdir}/libglut*.so.*
 
@@ -94,9 +95,17 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %{_includedir}/GL/*.h
 %{_libdir}/libglut.so
+%dir %{_libdir}/cmake/FreeGLUT
+%{_libdir}/cmake/FreeGLUT/*
+%{_libdir}/pkgconfig/glut.pc
+%{_mandir}/man3/*
 
 
 %changelog
+* Fri Sep 23 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.2.2-1
+- new upstream release.
+- dropped ldconfig scriptlets.
+
 * Fri Feb 20 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.8.1-1
 - new upstream release
 - built with mesa 10.4.4