File openglide.spec of Package openglide
#
# spec file for package openglide (Version 0.0.9rc7)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#
Name: openglide
License: LGPL-2.1+
Group: System/Libraries
AutoReqProv: on
Summary: Glide to OpenGL wrapper
Version: 0.0.9rc7
Release: 0
Source: openglide-last-cvs.tar.gz
Patch0: makefile.diff
Url: https://sourceforge.net/p/openglide
BuildRequires: gcc gcc-c++
BuildRequires: libtool
BuildRequires: libICE6
BuildRequires: libSM6
BuildRequires: libXxf86vm1
BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(glu)
BuildRequires: fdk-aac-devel
BuildRequires: fdk-aac
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
%package -n libglide2x0
Summary: Glide to OpenGL wrapper
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.
%package devel
License: LGPL-2.1+
Summary: OpenGlide Development Environment
Group: Development/Libraries/C and C++
%description devel
This package is required for developing programs linked against openglide
%prep
%setup -q -n openglide-last-cvs
%patch -P 0 -p1
%build
./bootstrap
%configure
%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}
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)
%{_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