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
|
|
|
#
|
2021-03-04 10:26:19 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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.
|
|
|
|
|
2018-09-19 14:51:37 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-12-19 05:01:53 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: SDL_bgi
|
2021-03-04 10:26:19 +01:00
|
|
|
%define sover 6
|
2020-12-04 12:21:14 +01:00
|
|
|
%define lname libSDL_bgi-suse%sover
|
2021-03-04 10:26:19 +01:00
|
|
|
Version: 2.4.3
|
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
|
2020-01-22 18:37:04 +01:00
|
|
|
URL: http://libXbgi.sf.net/
|
2014-12-19 05:01:53 +01:00
|
|
|
|
2020-05-23 16:47:40 +02:00
|
|
|
#Git-Web: https://github.com/genpfault/sdl-bgi
|
2016-11-11 21:35:07 +01:00
|
|
|
Source: http://downloads.sf.net/libxbgi/%name-%version.tar.gz
|
2020-02-20 17:06:35 +01:00
|
|
|
Source9: %name-rpmlintrc
|
|
|
|
Patch1: sdlbgi-cmake.diff
|
|
|
|
BuildRequires: cmake
|
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
|
|
|
|
|
|
|
%description
|
|
|
|
SDL_bgi is largely compatible with BGI, the Borland Graphics
|
2019-08-20 20:52:52 +02:00
|
|
|
Interface that was a standard in PC graphics back in the DOS days.
|
|
|
|
SDL_bgi also provides extensions for RGB colors and mouse support.
|
2014-12-19 05:01:53 +01:00
|
|
|
|
|
|
|
%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
|
2020-05-23 16:47:40 +02:00
|
|
|
%autosetup -p1
|
2014-12-19 05:01:53 +01:00
|
|
|
|
|
|
|
%build
|
2020-02-20 17:06:35 +01:00
|
|
|
%cmake
|
2020-11-11 12:59:06 +01:00
|
|
|
%cmake_build
|
2014-12-19 05:01:53 +01:00
|
|
|
|
|
|
|
%install
|
2020-02-20 17:06:35 +01:00
|
|
|
%cmake_install
|
2015-01-08 10:53:01 +01:00
|
|
|
b="%buildroot"
|
2020-02-20 17:06:35 +01:00
|
|
|
mkdir -p "$b/%_defaultdocdir"
|
|
|
|
mv "$b/%_datadir/doc/%name" "$b/%_defaultdocdir/"
|
2020-05-23 16:47:40 +02:00
|
|
|
# just a forwarder and conflicts with xbgi
|
|
|
|
rm -v "%buildroot/%_includedir/graphics.h"
|
2014-12-19 05:01:53 +01:00
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
2020-02-20 17:06:55 +01:00
|
|
|
%license LICENSE
|
2020-12-04 12:21:14 +01:00
|
|
|
%_libdir/libSDL_bgi.so.suse%sover
|
2014-12-19 05:01:53 +01:00
|
|
|
|
|
|
|
%files -n libSDL_bgi-devel
|
2020-02-20 17:06:35 +01:00
|
|
|
%_defaultdocdir/%name/
|
|
|
|
%_includedir/*
|
2014-12-19 05:01:53 +01:00
|
|
|
%_libdir/libSDL_bgi.so
|
2021-03-04 10:26:19 +01:00
|
|
|
%_mandir/man3/*
|
2014-12-19 05:01:53 +01:00
|
|
|
|
|
|
|
%changelog
|