forked from pool/SDL_bgi
Accepting request 265720 from home:jengelh:dev
OBS-URL: https://build.opensuse.org/request/show/265720 OBS-URL: https://build.opensuse.org/package/show/graphics/SDL_bgi?expand=0&rev=1
This commit is contained in:
commit
4d9a328bf7
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
SDL_bgi-1.0.1.tar.gz
Normal file
3
SDL_bgi-1.0.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1feb2037add2956617556aa53c84c60e65f69a3598a8ea247d7bc567d1e0a15f
|
||||
size 55852
|
6
SDL_bgi.changes
Normal file
6
SDL_bgi.changes
Normal file
@ -0,0 +1,6 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 18 09:25:45 UTC 2014 - jengelh@inai.de
|
||||
|
||||
- Initial package for build.opensuse.org (version 1.0.1).
|
||||
Add sdlbgi-automake.diff for a normal build that supports DESTDIR
|
||||
and uses pkgconfig.
|
90
SDL_bgi.spec
Normal file
90
SDL_bgi.spec
Normal file
@ -0,0 +1,90 @@
|
||||
#
|
||||
# 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
|
41
sdlbgi-automake.diff
Normal file
41
sdlbgi-automake.diff
Normal file
@ -0,0 +1,41 @@
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: 2014-12-18 11:43:21.385084191 +0100
|
||||
|
||||
---
|
||||
Makefile.am | 2 ++
|
||||
configure.ac | 9 +++++++++
|
||||
src/Makefile.am | 6 ++++++
|
||||
3 files changed, 17 insertions(+)
|
||||
|
||||
Index: SDL_bgi-1.0.1/Makefile.am
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ SDL_bgi-1.0.1/Makefile.am
|
||||
@@ -0,0 +1,2 @@
|
||||
+ACLOCAL_AMFLAGS = -I m4
|
||||
+SUBDIRS = src
|
||||
Index: SDL_bgi-1.0.1/configure.ac
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ SDL_bgi-1.0.1/configure.ac
|
||||
@@ -0,0 +1,9 @@
|
||||
+AC_INIT([SDL_bgi], [1.0.1])
|
||||
+AC_CONFIG_AUX_DIR([build-aux])
|
||||
+AC_CONFIG_MACRO_DIR([m4])
|
||||
+AC_PROG_CC
|
||||
+AM_INIT_AUTOMAKE([foreign subdir-objects tar-pax dist-xz no-dist-gzip])
|
||||
+LT_INIT
|
||||
+PKG_CHECK_MODULES([sdlgfx], [SDL_gfx])
|
||||
+AC_CONFIG_FILES([Makefile src/Makefile])
|
||||
+AC_OUTPUT
|
||||
Index: SDL_bgi-1.0.1/src/Makefile.am
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ SDL_bgi-1.0.1/src/Makefile.am
|
||||
@@ -0,0 +1,6 @@
|
||||
+AM_CPPFLAGS = ${sdlgfx_CFLAGS}
|
||||
+AM_CFLAGS = -Wall
|
||||
+lib_LTLIBRARIES = libSDL_bgi.la
|
||||
+libSDL_bgi_la_SOURCES = SDL_bgi.c
|
||||
+libSDL_bgi_la_LIBADD = ${sdlgfx_LIBS}
|
||||
+include_HEADERS = SDL_bgi.h
|
Loading…
x
Reference in New Issue
Block a user