Browse Source

freeglut-3.2.2-1

Tomohiro "Tomo-p" KATO 2 years 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
 # 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
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: cmake
 BuildRequires: pkgconfig
 BuildRequires: pkgconfig
+BuildRequires: libICE-devel
 BuildRequires: libXext-devel
 BuildRequires: libXext-devel
-BuildRequires: libXxf86vm-devel
-BuildRequires: mesa-libGLU-devel
 BuildRequires: libXi-devel
 BuildRequires: libXi-devel
+BuildRequires: mesa-libGLU-devel
 # The virtual Provides below is present so that this freeglut package is a
 # The virtual Provides below is present so that this freeglut package is a
 # drop in binary replacement for "glut" which will satisfy rpm dependancies
 # drop in binary replacement for "glut" which will satisfy rpm dependancies
 # properly.  The Obsoletes tag is required in order for any pre-existing
 # properly.  The Obsoletes tag is required in order for any pre-existing
@@ -30,9 +30,6 @@ BuildRequires: libXi-devel
 Provides: glut = 3.7
 Provides: glut = 3.7
 Obsoletes: glut <= 3.7
 Obsoletes: glut <= 3.7
 
 
-Vendor: Project Vine
-Distribution: Vine Linux
-
 %description
 %description
 freeglut is a completely open source alternative to the OpenGL Utility Toolkit
 freeglut is a completely open source alternative to the OpenGL Utility Toolkit
 (GLUT) library with an OSI approved free software license. GLUT was originally
 (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
 contexts on a wide range of platforms and also read the mouse, keyboard and
 joystick functions.
 joystick functions.
 
 
+
 %package devel
 %package devel
 Summary: freeglut developmental libraries and header files
 Summary: freeglut developmental libraries and header files
 Summary(ja): freeglut の開発用ファイル
 Summary(ja): freeglut の開発用ファイル
-Group: Development/Libraries
+Group: programming
 Requires: %{name} = %{version}-%{release}
 Requires: %{name} = %{version}-%{release}
 Requires: mesa-libGL-devel
 Requires: mesa-libGL-devel
 Requires: mesa-libGLU-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
 alternative to the popular GLUT library, with an OSI approved free software
 license.
 license.
 
 
+
+%debug_package
+
+
 %prep
 %prep
-%setup -q
-%patch0 -p1 -b .fixld
-%patch1 -p1 -b .noxwarn
+%setup -q -a 1
+%patch0 -p0
+
 
 
 %build
 %build
-%configure --disable-static --disable-warnings
-make %{?_smp_mflags}
+%cmake -DFREEGLUT_BUILD_STATIC_LIBS=OFF
+%cmake_build
+
 
 
 %install
 %install
 rm -rf $RPM_BUILD_ROOT
 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
 %clean
 rm -rf $RPM_BUILD_ROOT
 rm -rf $RPM_BUILD_ROOT
 
 
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
 
 
 %files
 %files
 %defattr(-,root,root,-)
 %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
 # don't include contents of doc/ directory as it is mostly obsolete
 %{_libdir}/libglut*.so.*
 %{_libdir}/libglut*.so.*
 
 
@@ -94,9 +95,17 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
 %{_includedir}/GL/*.h
 %{_includedir}/GL/*.h
 %{_libdir}/libglut.so
 %{_libdir}/libglut.so
+%dir %{_libdir}/cmake/FreeGLUT
+%{_libdir}/cmake/FreeGLUT/*
+%{_libdir}/pkgconfig/glut.pc
+%{_mandir}/man3/*
 
 
 
 
 %changelog
 %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
 * Fri Feb 20 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.8.1-1
 - new upstream release
 - new upstream release
 - built with mesa 10.4.4
 - built with mesa 10.4.4