[mingw-SDL_mixer: 2/10] Initial import

Kalev Lember kalev at fedoraproject.org
Wed Mar 7 17:28:10 UTC 2012


commit 23ec10e34f37e2fcd76af249a99d16ef77c4ee39
Author: Stefan <stefan at laptop.(none)>
Date:   Tue Nov 9 11:28:25 2010 +0100

    Initial import

 .gitignore             |    1 +
 mingw32-SDL_mixer.spec |   94 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 96 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5d0d86d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/SDL_mixer-1.2.11.tar.gz
diff --git a/mingw32-SDL_mixer.spec b/mingw32-SDL_mixer.spec
new file mode 100644
index 0000000..33bfe1c
--- /dev/null
+++ b/mingw32-SDL_mixer.spec
@@ -0,0 +1,94 @@
+%global __strip %{_mingw32_strip}
+%global __objdump %{_mingw32_objdump}
+%global _use_internal_dependency_generator 0
+%global __find_requires %{_mingw32_findrequires}
+%global __find_provides %{_mingw32_findprovides}
+%define __debug_install_post %{_mingw32_debug_install_post}
+
+Name:           mingw32-SDL_mixer
+Version:        1.2.11
+Release:        1%{?dist}
+Summary:        MinGW Windows port of Simple DirectMedia Layer's Sample Mixer Library
+
+License:        LGPLv2+
+Group:          Development/Libraries
+URL:            http://www.libsdl.org/projects/SDL_mixer/
+Source0:        http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+
+BuildRequires:  mingw32-filesystem >= 49
+BuildRequires:  mingw32-gcc
+BuildRequires:  mingw32-binutils
+BuildRequires:  mingw32-dlfcn
+BuildRequires:  mingw32-iconv
+BuildRequires:  mingw32-SDL
+
+Requires:       pkgconfig
+
+%description
+A simple multi-channel audio mixer for SDL. It supports 4 channels of
+16 bit stereo audio, plus a single channel of music, mixed by the popular
+MikMod MOD library.
+
+%{_mingw32_description}
+
+# Automatically create a debuginfo package
+%{?_mingw32_debug_package}
+
+%prep
+%setup -q -n SDL_mixer-%{version}
+
+%build
+%{_mingw32_configure} \
+    --disable-dependency-tracking \
+    --enable-music-mod \
+    --disable-static
+
+# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install
+
+# silence rpmlint:
+iconv --from=ISO-8859-1 --to=UTF-8 CHANGES > CHANGES.new && \
+touch -r CHANGES CHANGES.new && \
+mv CHANGES.new CHANGES
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc README CHANGES COPYING
+%{_mingw32_bindir}/SDL_mixer.dll
+%{_mingw32_libdir}/libSDL_mixer.dll.a
+%{_mingw32_libdir}/pkgconfig/SDL_mixer.pc
+%{_mingw32_libdir}/libSDL_mixer.la
+%{_mingw32_includedir}/SDL
+
+%changelog
+* Tue Oct 19 2010 Stefan Riemens <fgfs.stefan at gmail.com> - 1.2.11-1
+- Fix debuginfo package generation
+- Fix defattr line
+
+* Sat Sep 25 2010 Stefan Riemens <fgfs.stefan at gmail.com> - 1.2.11-0
+- New upstream version
+
+* Wed Nov 25 2009 Stefan Riemens <fgfs.stefan at gmail.com> - 1.2.8-3
+- Remove explicit requires: on mingw32-SDL
+- Fix non-utf-8 file encoding
+- Autogenerate debuginfo subpackage
+
+* Thu Nov 11 2009 Jason Woofenden <jason at jasonwoof.com> - 1.2.8-2
+- use macro global instead of define in this spec file
+- description no longer (falsely) claims we have midi and .ogg support
+
+* Thu Jun 18 2009 Jason Woofenden <jason at jasonwoof.com> - 1.2.8-1
+- Initial RPM release.
diff --git a/sources b/sources
index e69de29..6b9785c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+65ada3d997fe85109191a5fb083f248c  SDL_mixer-1.2.11.tar.gz


More information about the scm-commits mailing list