commit f7a6b1d5b8fad39c748783861929717e4716f580047cd6a21a8df9c95a050e47 Author: Jan Engelhardt Date: Tue Dec 13 11:14:50 2022 +0100 Import revision 24 from OBS SCM diff --git a/SDLmm-0.1.8-autoheader.patch b/SDLmm-0.1.8-autoheader.patch new file mode 100644 index 0000000..9dd6e4b --- /dev/null +++ b/SDLmm-0.1.8-autoheader.patch @@ -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; diff --git a/SDLmm-0.1.8-lib64.patch b/SDLmm-0.1.8-lib64.patch new file mode 100644 index 0000000..61b6b80 --- /dev/null +++ b/SDLmm-0.1.8-lib64.patch @@ -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 + diff --git a/SDLmm-0.1.8-m4.patch b/SDLmm-0.1.8-m4.patch new file mode 100644 index 0000000..de62d9b --- /dev/null +++ b/SDLmm-0.1.8-m4.patch @@ -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 diff --git a/SDLmm-0.1.8-makefile.patch b/SDLmm-0.1.8-makefile.patch new file mode 100644 index 0000000..a4418f3 --- /dev/null +++ b/SDLmm-0.1.8-makefile.patch @@ -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: diff --git a/SDLmm-0.1.8.patch b/SDLmm-0.1.8.patch new file mode 100644 index 0000000..af49038 --- /dev/null +++ b/SDLmm-0.1.8.patch @@ -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 diff --git a/SDLmm-0.1.8.tar.bz2 b/SDLmm-0.1.8.tar.bz2 new file mode 100644 index 0000000..ae0cdf1 Binary files /dev/null and b/SDLmm-0.1.8.tar.bz2 differ diff --git a/SDLmm.changes b/SDLmm.changes new file mode 100644 index 0000000..0f5bfb7 --- /dev/null +++ b/SDLmm.changes @@ -0,0 +1,134 @@ +------------------------------------------------------------------- +Wed May 18 16:00:45 UTC 2022 - Jan Engelhardt + +- 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 to + +------------------------------------------------------------------- +Tue Jan 22 18:23:53 CET 2002 - ro@suse.de + +- changed neededforbuild to + +------------------------------------------------------------------- +Mon Nov 26 11:39:07 CET 2001 - nadvornik@suse.cz + +- new package, version 0.1.8 + diff --git a/SDLmm.spec b/SDLmm.spec new file mode 100644 index 0000000..33fadb0 --- /dev/null +++ b/SDLmm.spec @@ -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