OBS User unknown 2007-04-12 16:00:02 +00:00 committed by Git OBS Bridge
parent e964bb6192
commit ca5f8ab9b1
5 changed files with 1923 additions and 46 deletions

1852
libmikmod-3.1.11-a.diff Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +0,0 @@
--- libmikmod.m4-dist 2004-03-04 12:47:24.135379005 +0100
+++ libmikmod.m4 2004-03-04 12:47:50.260458034 +0100
@@ -8,7 +8,7 @@
dnl Test for libmikmod, and define LIBMIKMOD_CFLAGS, LIBMIKMOD_LIBS and
dnl LIBMIKMOD_LDADD
dnl
-AC_DEFUN(AM_PATH_LIBMIKMOD,
+AC_DEFUN([AM_PATH_LIBMIKMOD],
[dnl
dnl Get the cflags and libraries from the libmikmod-config script
dnl

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Apr 11 16:06:26 CEST 2007 - sbrabec@suse.cz
- Updated to version 3.1.11-a:
* work correctly on amd64
* fixes a warning issued by automake-1.8 in libmikmod.m4
* includes an updated version of config.guess and config.sub
- Split devel subpackage (#263232).
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 23 11:31:56 CET 2007 - schwab@suse.de Fri Mar 23 11:31:56 CET 2007 - schwab@suse.de

View File

@ -1,5 +1,5 @@
# #
# spec file for package libmikmod (Version 3.1.11) # spec file for package libmikmod (Version 3.1.11a)
# #
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
@ -15,21 +15,17 @@ BuildRequires: esound-devel
URL: http://mikmod.raphnet.net/ URL: http://mikmod.raphnet.net/
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL) License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group: System/Libraries Group: System/Libraries
Obsoletes: libmikmo
Provides: libmikmo
PreReq: %install_info_prereq
Autoreqprov: on
Requires: audiofile-devel
Summary: MikMod Sound Library Summary: MikMod Sound Library
BuildRoot: %{_tmppath}/%{name}-%{version}-build Version: 3.1.11a
Version: 3.1.11 Release: 1
Release: 41 %define _version 3.1.11
Source0: libmikmod-%{version}.tar.bz2 Source: %{name}-%{_version}.tar.bz2
Patch0: libmikmod.diff Patch: libmikmod-3.1.11-a.diff
Patch1: mikmod-64bit-fix.diff Patch1: libmikmod.diff
Patch2: libmikmod-m4-fix.dif Patch2: mikmod-64bit-fix.diff
Patch3: libmikmod-config-fix.dif Patch3: libmikmod-config-fix.dif
Patch4: libmikmod-conftest_fix.diff Patch4: libmikmod-conftest_fix.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Libmikmod is a portable sound library, capable of playing samples as Libmikmod is a portable sound library, capable of playing samples as
@ -40,9 +36,24 @@ mtm, xm, and it.
%package devel
Group: System/Libraries
Summary: MikMod Sound Library
Requires: %{name} = %{version} glibc-devel audiofile-devel
PreReq: %install_info_prereq
%description devel
Libmikmod is a portable sound library, capable of playing samples as
well as module files. It was originally written by Jean-Paul Mikkers
(MikMak) for DOS. It supports OSS /dev/dsp, ALSA, and Esound and can
also write wav files. Supported file formats include mod, stm, s3m,
mtm, xm, and it.
%prep %prep
%setup %setup -q -n %{name}-%{_version}
%patch %patch -p1
%patch1 %patch1
%patch2 %patch2
%patch3 %patch3
@ -50,35 +61,49 @@ mtm, xm, and it.
%build %build
autoreconf -f -i autoreconf -f -i
export CFLAGS="%optflags"
%configure %configure
make %{?jobs:-j%jobs}
make
%install %install
make DESTDIR=%buildroot install %makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%post %post
%run_ldconfig %run_ldconfig
%install_info --info-dir=%{_infodir} %{_infodir}/mikmod.info.gz
%postun %postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/mikmod.info.gz %run_ldconfig
%clean %post devel
rm -rf %buildroot %install_info --info-dir=%{_infodir} %{_infodir}/mikmod.info.gz
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/mikmod.info.gz
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc README AUTHORS COPYING.LIB NEWS TODO COPYING.LESSER %doc README AUTHORS COPYING.LIB NEWS TODO COPYING.LESSER
%{_bindir}/* %{_libdir}/libmikmod.so.*
%{_includedir}/*
%doc %{_mandir}/man1/* %files devel
%doc %{_infodir}/mikmod* %defattr(-,root,root)
/%{_libdir}/libmikmod.* %{_bindir}/*-config
%{_datadir}/aclocal/libmikmod.m4 %{_datadir}/aclocal/libmikmod.m4
%{_includedir}/*
%doc %{_infodir}/mikmod*
%{_libdir}/libmikmod.so
%{_libdir}/libmikmod.*a
%doc %{_mandir}/man1/*-config.*
%changelog %changelog
* Wed Apr 11 2007 - sbrabec@suse.cz
- Updated to version 3.1.11-a:
* work correctly on amd64
* fixes a warning issued by automake-1.8 in libmikmod.m4
* includes an updated version of config.guess and config.sub
- Split devel subpackage (#263232).
* Fri Mar 23 2007 - schwab@suse.de * Fri Mar 23 2007 - schwab@suse.de
- Require audiofile-devel. - Require audiofile-devel.
- Fix 64bit patch. - Fix 64bit patch.

View File

@ -1,10 +1,10 @@
--- include/mikmod.h.in --- include/mikmod.h.in
+++ include/mikmod.h.in +++ include/mikmod.h.in
@@ -85,30 +85,16 @@ @@ -85,30 +85,15 @@
@DOES_NOT_HAVE_SIGNED@ @DOES_NOT_HAVE_SIGNED@
-#if defined(__arch64__) || defined(__alpha) -#if defined(__arch64__) || defined(__alpha) || defined(__x86_64)
-/* 64 bit architectures */ -/* 64 bit architectures */
- -
-typedef signed char SBYTE; /* 1 byte, signed */ -typedef signed char SBYTE; /* 1 byte, signed */
@ -23,18 +23,20 @@
-typedef signed short SWORD; /* 2 bytes, signed */ -typedef signed short SWORD; /* 2 bytes, signed */
-typedef unsigned short UWORD; /* 2 bytes, unsigned */ -typedef unsigned short UWORD; /* 2 bytes, unsigned */
-typedef signed long SLONG; /* 4 bytes, signed */ -typedef signed long SLONG; /* 4 bytes, signed */
-#if !defined(__OS2__)&&!defined(__EMX__)&&!defined(WIN32)
-typedef unsigned long ULONG; /* 4 bytes, unsigned */
-typedef int BOOL; /* 0=false, <>0 true */
-#endif
-#endif
+#include <stdint.h> +#include <stdint.h>
+#include <stdbool.h>
+typedef int8_t SBYTE; /* 1 byte, signed */ +typedef int8_t SBYTE; /* 1 byte, signed */
+typedef uint8_t UBYTE; /* 1 byte, unsigned */ +typedef uint8_t UBYTE; /* 1 byte, unsigned */
+typedef int16_t SWORD; /* 2 bytes, signed */ +typedef int16_t SWORD; /* 2 bytes, signed */
+typedef uint16_t UWORD; /* 2 bytes, unsigned */ +typedef uint16_t UWORD; /* 2 bytes, unsigned */
+typedef int32_t SLONG; /* 4 bytes, signed */ +typedef int32_t SLONG; /* 4 bytes, signed */
#if !defined(__OS2__)&&!defined(__EMX__)&&!defined(WIN32)
-typedef unsigned long ULONG; /* 4 bytes, unsigned */
+typedef uint32_t ULONG; /* 4 bytes, unsigned */ +typedef uint32_t ULONG; /* 4 bytes, unsigned */
typedef int BOOL; /* 0=false, <>0 true */ +typedef bool BOOL; /* 0=false, <>0 true */
#endif
-#endif
/* /*
* ========== Error codes * ========== Error codes