forked from pool/SDL_bgi
91 lines
2.7 KiB
RPMSpec
91 lines
2.7 KiB
RPMSpec
|
#
|
||
|
# spec file for package SDL_gfx
|
||
|
#
|
||
|
# Copyright (c) 2013 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: SDL_bgi
|
||
|
%define lname libSDL_bgi0
|
||
|
Version: 1.0.1
|
||
|
Release: 0
|
||
|
Summary: BGI-compatible 2D graphics C library with SDL backend
|
||
|
License: MIT
|
||
|
Group: Development/Libraries/X11
|
||
|
Url: http://libXbgi.sf.net/
|
||
|
|
||
|
Source: http://libxbgi.sourceforge.net/%name-%version.tar.gz
|
||
|
Patch1: sdlbgi-automake.diff
|
||
|
BuildRequires: automake >= 1.11
|
||
|
BuildRequires: libtool >= 2
|
||
|
BuildRequires: pkgconfig(SDL_gfx)
|
||
|
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
|
||
|
|
||
|
%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
|
||
|
rm -f "%buildroot/%_libdir"/*.la
|
||
|
|
||
|
%post -n %lname -p /sbin/ldconfig
|
||
|
%postun -n %lname -p /sbin/ldconfig
|
||
|
|
||
|
%files -n %lname
|
||
|
%defattr(-,root,root)
|
||
|
%doc LICENSE
|
||
|
%_libdir/libSDL_bgi.so.0*
|
||
|
|
||
|
%files -n libSDL_bgi-devel
|
||
|
%defattr(-,root,root)
|
||
|
%doc *.txt
|
||
|
%_includedir/*.h
|
||
|
%_libdir/libSDL_bgi.so
|
||
|
|
||
|
%changelog
|