2014-12-19 05:01:53 +01:00
|
|
|
#
|
2015-06-04 00:29:49 +02:00
|
|
|
# spec file for package SDL_bgi
|
2014-12-19 05:01:53 +01:00
|
|
|
#
|
2018-01-05 12:17:17 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-12-19 05:01:53 +01:00
|
|
|
#
|
|
|
|
# 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: SDL_bgi
|
2015-12-23 12:49:50 +01:00
|
|
|
%define lname libSDL_bgi1
|
2018-07-26 16:20:26 +02:00
|
|
|
Version: 2.2.0
|
2014-12-19 05:01:53 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: BGI-compatible 2D graphics C library with SDL backend
|
2018-06-10 12:21:33 +02:00
|
|
|
License: Zlib AND GPL-2.0-or-later
|
2014-12-19 05:01:53 +01:00
|
|
|
Group: Development/Libraries/X11
|
|
|
|
Url: http://libXbgi.sf.net/
|
|
|
|
|
2016-11-11 21:35:07 +01:00
|
|
|
Source: http://downloads.sf.net/libxbgi/%name-%version.tar.gz
|
2014-12-19 05:01:53 +01:00
|
|
|
Patch1: sdlbgi-automake.diff
|
|
|
|
BuildRequires: automake >= 1.11
|
|
|
|
BuildRequires: libtool >= 2
|
2015-01-08 10:53:01 +01:00
|
|
|
BuildRequires: pkg-config
|
2015-05-07 13:37:59 +02:00
|
|
|
BuildRequires: pkgconfig(sdl2)
|
2014-12-19 05:01:53 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
SDL_bgi is largely compatible with BGI, the Borland Graphics
|
|
|
|
Interface that was the de-facto standard in PC graphics back in DOS
|
|
|
|
days. It is easy to use, and it also provides extensions for RGB
|
|
|
|
colours and mouse support.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: SDL Graphics Routines for Primitives and Other Support Functions
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
SDL_bgi is a Borland Graphics Interface (BGI) emulation library for
|
|
|
|
SDL. It provides extensions for RGB colors and mouse support.
|
|
|
|
|
|
|
|
%package -n libSDL_bgi-devel
|
|
|
|
Summary: Libraries, includes and more to develop SDL_bgi applications
|
|
|
|
Group: Development/Libraries/X11
|
|
|
|
Requires: %lname = %version
|
2015-01-08 10:49:24 +01:00
|
|
|
Provides: SDL_bgi-devel = %version-%release
|
2014-12-19 05:01:53 +01:00
|
|
|
|
|
|
|
%description -n libSDL_bgi-devel
|
|
|
|
SDL_bgi is a Borland Graphics Interface (BGI) emulation library for
|
|
|
|
SDL. It provides extensions for RGB colors and mouse support.
|
|
|
|
|
|
|
|
Unlike other BGI-compatible libraries, the purpose of SDL_bgi is not
|
|
|
|
full compatibility with BGI. Rather, it is meant to be an
|
|
|
|
introduction to SDL-based graphics: SDL and BGI commands can be mixed
|
|
|
|
together.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch -P 1 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2015-01-08 10:53:01 +01:00
|
|
|
b="%buildroot"
|
|
|
|
rm -f "$b/%_libdir"/*.la
|
2015-10-12 19:10:29 +02:00
|
|
|
mkdir -p "$b/%_includedir/SDL_bgi" "$b/%_libdir/pkgconfig"
|
|
|
|
ln -s "../SDL2/SDL_bgi.h" "$b/%_includedir/SDL_bgi/graphics.h"
|
2015-12-23 12:49:50 +01:00
|
|
|
install -pm0644 test/dos.h test/conio.h "$b/%_includedir/SDL_bgi/"
|
2015-01-08 10:53:01 +01:00
|
|
|
cat >"$b/%_libdir/pkgconfig/SDL_bgi.pc" <<-EOF
|
|
|
|
Name: SDL_bgi
|
2015-01-08 11:59:57 +01:00
|
|
|
Description: BGI-compatible API with SDL backend
|
2015-01-08 10:53:01 +01:00
|
|
|
Version: %version
|
2015-01-08 12:03:12 +01:00
|
|
|
Requires: sdl SDL_gfx
|
2015-01-08 10:53:01 +01:00
|
|
|
Libs: -lSDL_bgi
|
|
|
|
EOF
|
2014-12-19 05:01:53 +01:00
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%doc LICENSE
|
2015-12-23 12:49:50 +01:00
|
|
|
%_libdir/libSDL_bgi.so.*
|
2014-12-19 05:01:53 +01:00
|
|
|
|
|
|
|
%files -n libSDL_bgi-devel
|
2018-01-05 12:17:17 +01:00
|
|
|
%doc README.md doc/*
|
2015-05-07 13:37:59 +02:00
|
|
|
%_includedir/SDL2/
|
2015-10-12 19:10:29 +02:00
|
|
|
%_includedir/SDL_bgi/
|
2014-12-19 05:01:53 +01:00
|
|
|
%_libdir/libSDL_bgi.so
|
2015-01-08 10:53:01 +01:00
|
|
|
%_libdir/pkgconfig/SDL_bgi.pc
|
2014-12-19 05:01:53 +01:00
|
|
|
|
|
|
|
%changelog
|