File project.diff of Package openglide
--- openglide.spec.orig
+++ openglide.spec
@@ -1,7 +1,7 @@
#
-# spec file for package openglide (Version 0.0.9rc7)
+# spec file for package openglide
#
-# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,81 +12,84 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
+
Name: openglide
-License: LGPL-2.1+
-Group: System/Libraries
-AutoReqProv: on
-Summary: Glide to OpenGL wrapper
-Version: 0.0.9rc7
+Version: 0~git20230110
Release: 0
-Source: openglide-last-cvs.tar.gz
-Patch0: makefile.diff
-Url: https://sourceforge.net/p/openglide
-BuildRequires: gcc gcc-c++
+Summary: Glide to OpenGL wrapper
+License: LGPL-2.1-or-later
+Group: System/Libraries
+URL: https://sourceforge.net/p/openglide
+#Git-Clone: https://github.com/voyageur/openglide.git
+Source: %{name}-%{version}.tar.xz
+Patch0: makefile.patch
+BuildRequires: gcc-c++
BuildRequires: libtool
-BuildRequires: libICE6
-BuildRequires: libSM6
-BuildRequires: libXxf86vm1
-BuildRequires: pkgconfig(sdl)
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: pkgconfig
BuildRequires: pkgconfig(glu)
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: pkgconfig(gl)
+BuildRequires: pkgconfig(xxf86vm)
+BuildRequires: pkgconfig(sdl)
%description
-OpenGLide is a Glide to OpenGL wrapper.
-It emulates a Voodoo board so you can run old Windows Glide games by translating Glide calls into OpenGL.
+OpenGLide is a Glide to OpenGL wrapper.
+It emulates a Voodoo board so you can run old Windows Glide games
+by translating Glide calls into OpenGL.
%package -n libglide2x0
-Summary: Glide to OpenGL wrapper
+Summary: Glide to OpenGL wrapper library
Group: System/Libraries
%description -n libglide2x0
-OpenGLide is a Glide to OpenGL wrapper.
-It emulates a Voodoo board so you can run old Windows Glide games by translating Glide calls into OpenGL.
-
+OpenGLide is a Glide to OpenGL wrapper.
+It emulates a Voodoo board so you can run old Windows Glide games
+by translating Glide calls into OpenGL.
%package devel
-License: LGPL-2.1+
-Summary: OpenGlide Development Environment
+Summary: Development files for libglide
Group: Development/Libraries/C and C++
+Requires: libglide2x0 = %{version}
%description devel
-This package is required for developing programs linked against openglide
+OpenGLide is a Glide to OpenGL wrapper.
+It emulates a Voodoo board so you can run old Windows Glide games
+by translating Glide calls into OpenGL.
+
+This subpackage contains libraries and header files for developing
+applications that want to make use of libglide.
%prep
-%setup -q -n openglide-last-cvs
+%setup -q
%patch0 -p1
%build
-./bootstrap
-%configure
+autoreconf -fiv
+%configure --disable-static
%make_build
%install
%make_install
-make DESTDIR=$RPM_BUILD_ROOT install
-chmod +x $RPM_BUILD_ROOT%{_libdir}/lib*.so.*
find %{buildroot} -type f -name "*.la" -delete -print
-find %{buildroot} -type f -name "*.a" -delete -print
-cd $RPM_BUILD_ROOT%{_includedir}
+cd %{buildroot}%{_includedir}
ln -s openglide/sdk2_glide.h glide.h
%post -n libglide2x0 -p /sbin/ldconfig
%postun -n libglide2x0 -p /sbin/ldconfig
%files -n libglide2x0
-%defattr(-, root, root)
+%license LICENSE
+%doc README.md
%{_libdir}/libglide2x.so.0*
%files devel
-%defattr(-, root, root)
%{_libdir}/libglide2x.so
%dir %{_includedir}/openglide
%{_includedir}/openglide/sdk2*
%{_includedir}/glide.h
%changelog
-* Thu Aug 18 2022 Mad-Soft
-- Initial rebuild
\ No newline at end of file