File sparrow3d.spec of Package sparrow3d

#
# spec file for package sparrow3d
#
# Copyright (c) 2018, Martin Hauke <mardnh@gmx.de>
#
# 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:           sparrow3d
Version:        1.3.315
Release:        0
Summary:        An application framework with software renderer
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
URL:            https://github.com/theZiz/sparrow3d
Source:         %{name}-%{version}.tar.xz
Patch0:         sparrow3d-obey-cflags.patch
Patch1:         fix.patch
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(SDL_net)
BuildRequires:  pkgconfig(SDL_ttf)
BuildRequires:  pkgconfig(sdl)

%description
Sparrow3D is an open application framework with software renderer
especially for open handhelds like GPH consoles (GP2X, Wiz, Caanoo), Dingoo,
Pandora or similar, but also for PC (Linux and Windows).

%package devel
Summary:        Development files for %{name}
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
Sparrow3D is an open application framework with software renderer
especially for open handhelds like GPH consoles (GP2X, Wiz, Caanoo), Dingoo,
Pandora or similar, but also for PC (Linux and Windows).

This subpackage contains libraries and header files for developing
applications that want to make use of the sparrow3d library.

%prep
%autosetup -p1
sed -i 's/\r$//' README.md

%build
export CFLAGS='%{optflags}'
make %{?_smp_mflags} dynamic

%install
# libs
install -d %{buildroot}/%{_libdir}
cp libsparrow*.so %{buildroot}/%{_libdir}

# headers
install -d %{buildroot}/%{_includedir}
cp sparrow*.h %{buildroot}/%{_includedir}

%files
%doc README.md ToDo
%license license.txt
%{_libdir}/libsparrow*.so

%files devel
%{_includedir}/sparrow*.h

%changelog
openSUSE Build Service is sponsored by