Import revision 24 from OBS SCM

This commit is contained in:
Jan Engelhardt 2022-12-13 11:14:50 +01:00
commit f7a6b1d5b8
8 changed files with 342 additions and 0 deletions

View File

@ -0,0 +1,40 @@
--- configure.in
+++ configure.in
@@ -1,4 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
+AC_PREREQ(2.57)
AC_INIT(src/sdlmm.h)
dnl Automake / package stuff
@@ -15,6 +16,31 @@
esac
#
+# Configuration header
+#
+
+AH_TOP([
+#ifndef SDLMM_CONFIG_H
+#define SDLMM_CONFIG_H
+#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
+#define RCSID(X) \
+ static char *rcsid __attribute__ ((unused)) =X
+#elif __GNUC__ == 2
+#define RCSID(X) \
+ static char *rcsid = X; \
+ static void *use_rcsid=(&use_rcsid, (void *)&rcsid)
+#else
+#define RCSID(X) \
+ static char *rcsid = X
+#endif
+
+#undef ASSERTIONS
+])
+AH_BOTTOM([
+#endif // SDLMM_CONFIG_H
+])
+
+#
# Making releases:
# MICRO_VERSION += 1;
# INTERFACE_AGE += 1;

21
SDLmm-0.1.8-lib64.patch Normal file
View File

@ -0,0 +1,21 @@
--- configure.in
+++ configure.in
@@ -86,7 +86,7 @@
case "$target" in
*-*-linux*)
- SDLMM_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
+ SDLMM_RLD_FLAGS="-Wl,-rpath,\${libdir}"
;;
*-*-freebsd*)
SDLMM_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
--- sdlmm-config.in
+++ sdlmm-config.in
@@ -1,6 +1,7 @@
#!/bin/sh
prefix=@prefix@
+libdir=@libdir@
exec_prefix=@exec_prefix@
exec_prefix_set=no

11
SDLmm-0.1.8-m4.patch Normal file
View File

@ -0,0 +1,11 @@
--- sdlmm.m4
+++ sdlmm.m4
@@ -9,7 +9,7 @@
dnl AM_PATH_SDLMM([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for SDLmm, and define SDLMM_CXXFLAGS and SDLMM_LIBS
dnl
-AC_DEFUN(AM_PATH_SDLMM,
+AC_DEFUN([AM_PATH_SDLMM],
[dnl
dnl Get the cflags and libraries from the ismap-config script
dnl

View File

@ -0,0 +1,11 @@
--- Makefile.am
+++ Makefile.am
@@ -40,7 +40,7 @@
rpm -ba SDLmm.spec
# Run ldconfig after installing the library:
-install-hook:
+install-exec-hook:
-ldconfig
force:

33
SDLmm-0.1.8.patch Normal file
View File

@ -0,0 +1,33 @@
--- Makefile.am
+++ Makefile.am
@@ -1,7 +1,7 @@
# The top-level input Makefile for ISMAP
# require automake 1.4
-AUTOMAKE_OPTIONS = 1.4
+AUTOMAKE_OPTIONS = 1.4 foreign
## Any directories that you want built and installed should go here.
SUBDIRS = src docs
--- configure.in
+++ configure.in
@@ -65,19 +65,10 @@
AC_LANG_CPLUSPLUS
AM_PROG_CC_STDC
-AC_OPT_FLAGS
SDLMM_CXXFLAGS="$SDLMM_CXXFLAGS $SDL_CFLAGS"
SDLMM_LIBS="-lSDLmm $SDL_LIBS"
-AC_ARG_ENABLE(pedantic,[ --enable-pedantic Use -pedantic and -Werror compile flags (with gcc)], [
-if test "x${GXX-}" = xyes -a "$enable_pedantic" = "yes"; then
- AC_SYS_COMPILER_FLAG(-pedantic,pedantic,CXXFLAGS,no)
- AC_SYS_COMPILER_FLAG(-Werror,Werror,CXXFLAGS,no)
- AC_SYS_COMPILER_FLAG(-Wno-long-long,Wnolonglong,CXXFLAGS,no)
-fi
-], [])
-
AC_MSG_CHECKING(for assert() use)
AC_ARG_ENABLE(assertions,[ --disable-assertions Disable the use of assert().], [
if test "$enable_assertions" = "yes"; then

BIN
SDLmm-0.1.8.tar.bz2 Normal file

Binary file not shown.

134
SDLmm.changes Normal file
View File

@ -0,0 +1,134 @@
-------------------------------------------------------------------
Wed May 18 16:00:45 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Remove baselibs.conf, nothing appears to be using it.
- Change -devel subpackage to be based on SRPM/project name.
- Use pkgconfig(sdl) to build with sdl12_compat.
-------------------------------------------------------------------
Thu Jan 8 11:04:11 UTC 2015 - jengelh@inai.de
- Improve package summary and description. Drop --with-pic which
is enabled implicitly anyway.
-------------------------------------------------------------------
Mon Nov 11 04:19:24 UTC 2013 - jengelh@inai.de
- Set RPM groups to the same values as on the main SDL packages
-------------------------------------------------------------------
Tue Nov 15 13:11:00 UTC 2011 - coolo@suse.com
- add libtool as buildrequire to avoid implicit dependency
-------------------------------------------------------------------
Sat Sep 17 10:24:52 UTC 2011 - jengelh@medozas.de
- Remove redundant tags/sections from specfile
-------------------------------------------------------------------
Fri Sep 16 18:26:52 UTC 2011 - jengelh@medozas.de
- Add libSDLmm-devel to baselibs
- Remove redundant tags
-------------------------------------------------------------------
Sat Jul 2 14:54:23 UTC 2011 - jengelh@medozas.de
- Use %_smp_mflags for parallel building
- Strip %clean section (not needed on BS)
-------------------------------------------------------------------
Wed Jan 27 02:46:29 CET 2010 - jengelh@medozas.de
- package baselibs.conf
-------------------------------------------------------------------
Wed Oct 7 14:52:45 CEST 2009 - prusnak@suse.cz
- fix provides and obsoletes [bnc#544957]
-------------------------------------------------------------------
Wed Aug 26 12:53:54 CEST 2009 - mls@suse.de
- make patch0 usage consistent
-------------------------------------------------------------------
Wed May 20 17:22:16 CEST 2009 - prusnak@suse.cz
- follow Shared Library Policy
-------------------------------------------------------------------
Sat Jul 5 18:10:32 CEST 2008 - crrodriguez@suse.de
- remove unusable static libraries
- cleanup buildRequires and -devel package dependencies
-------------------------------------------------------------------
Sun Jul 22 19:02:02 CEST 2007 - aj@suse.de
- Cleanup BuildRequires.
-------------------------------------------------------------------
Fri Mar 2 12:40:00 CET 2007 - prusnak@suse.cz
- cleaned spec file
-------------------------------------------------------------------
Mon Oct 16 01:15:47 CEST 2006 - schwab@suse.de
- Use install-exec-hook instead of install-hook.
-------------------------------------------------------------------
Wed Sep 13 14:59:33 CEST 2006 - nadvornik@suse.cz
- fixed Requires of devel subpackage [#192736]
- moved .la file to devel subpackage
-------------------------------------------------------------------
Fri Jan 27 10:50:05 CET 2006 - nadvornik@suse.cz
- fixed BuildRequires and Requires of devel subpackage
-------------------------------------------------------------------
Wed Jan 25 21:33:58 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Tue Nov 2 10:15:02 CET 2004 - pth@suse.de
- Get rid of acconfig.h
- Call autoreconf from spec
- Fix quoting in sdlmm.m4
-------------------------------------------------------------------
Sat Jan 10 17:09:17 CET 2004 - adrian@suse.de
- add %run_ldconfig
-------------------------------------------------------------------
Tue May 28 13:03:23 CEST 2002 - nadvornik@suse.cz
- fixed rpath for lib64 in sdlmm-config
-------------------------------------------------------------------
Fri May 10 15:46:01 CEST 2002 - ro@suse.de
- libdir fixed
-------------------------------------------------------------------
Fri Feb 1 00:26:09 CET 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
-------------------------------------------------------------------
Tue Jan 22 18:23:53 CET 2002 - ro@suse.de
- changed neededforbuild <kdelibs-artsd> to <kdelibs3-artsd>
-------------------------------------------------------------------
Mon Nov 26 11:39:07 CET 2001 - nadvornik@suse.cz
- new package, version 0.1.8

92
SDLmm.spec Normal file
View File

@ -0,0 +1,92 @@
#
# spec file for package SDLmm
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: SDLmm
%define lname libSDLmm-0_1-8
Version: 0.1.8
Release: 0
Summary: C++ glue API for Simple DirectMedia Layer
License: LGPL-2.1-or-later
Group: Development/Libraries/X11
URL: http://sdlmm.sf.net/
Source: http://downloads.sf.net/sdlmm/%name-%version.tar.bz2
Patch: %name-%version.patch
Patch1: %name-%version-lib64.patch
Patch2: %name-%version-autoheader.patch
Patch3: %name-%version-m4.patch
Patch4: %name-%version-makefile.patch
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig(sdl)
%description
SDLmm takes advantage of native C++ features like object oriented
programming while programming SDL.
%package -n %lname
Summary: Simple DirectMedia Layer C++ glue library
Group: System/Libraries
%description -n %lname
SDLmm takes advantage of native C++ features like object oriented
programming while programming SDL.
%package devel
Summary: Development files for the SDL C++ API layer
Group: Development/Libraries/X11
Requires: %lname = %version
Requires: libstdc++-devel
Requires: pkgconfig(sdl)
Provides: libSDLmm-devel = %version
Obsoletes: libSDLmm-devel <= %version
%description devel
SDLmm takes advantage of native C++ features like object oriented
programming while programming SDL.
%prep
%autosetup -p0
rm -fv acconfig.h acinclude.m4
%build
autoreconf -fi
%configure --disable-static
%make_build
%install
%make_install
rm -f "%buildroot/%_libdir"/*.la docs/html/Makefil*
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%license COPYING
%_libdir/*.so.*
%files devel
%doc AUTHORS NEWS README THANKS
%doc docs/html
%_bindir/sdlmm-config
%_includedir/SDLmm
%_libdir/*.so
%_mandir/man3/*
%_datadir/aclocal/*
%changelog