]> git.pld-linux.org Git - packages/libxmp-lite.git/commitdiff
- new auto/th/libxmp-lite-4.4.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 21 May 2017 19:57:11 +0000 (21:57 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 21 May 2017 19:57:11 +0000 (21:57 +0200)
fix-libxmp-lite-mod-loader.patch [new file with mode: 0644]
libxmp-lite.spec [new file with mode: 0644]

diff --git a/fix-libxmp-lite-mod-loader.patch b/fix-libxmp-lite-mod-loader.patch
new file mode 100644 (file)
index 0000000..d1ebdd4
--- /dev/null
@@ -0,0 +1,55 @@
+From a02883528979bbefc6d6d4be79d10b853e7b7041 Mon Sep 17 00:00:00 2001
+From: Carsten Teibes <dev@f4ke.de>
+Date: Sun, 6 Nov 2016 19:50:07 +0100
+Subject: Fix libxmp-lite building (wrong format loaders) Currently trying to
+ use the lite version fails with undefined references to the old format loader
+ names.
+
+This bug was introduced in d018decfb98d: "Add prefix to format loaders"
+
+diff --git a/lite/src/format.c b/lite/src/format.c
+index 277a3da..e19f070 100644
+--- a/lite/src/format.c
++++ b/lite/src/format.c
+@@ -27,20 +27,20 @@
+ #endif
+ #include "format.h"
+-extern const struct format_loader xm_loader;
+-extern const struct format_loader mod_loader;
+-extern const struct format_loader it_loader;
+-extern const struct format_loader s3m_loader;
++extern const struct format_loader libxmp_loader_xm;
++extern const struct format_loader libxmp_loader_mod;
++extern const struct format_loader libxmp_loader_it;
++extern const struct format_loader libxmp_loader_s3m;
+ extern const struct pw_format *const pw_format[];
+ const struct format_loader *const format_loader[5] = {
+-      &xm_loader,
+-      &mod_loader,
++      &libxmp_loader_xm,
++      &libxmp_loader_mod,
+ #ifndef LIBXMP_CORE_DISABLE_IT
+-      &it_loader,
++      &libxmp_loader_it,
+ #endif
+-      &s3m_loader,
++      &libxmp_loader_s3m,
+       NULL
+ };
+diff --git a/lite/src/loaders/mod_load.c b/lite/src/loaders/mod_load.c
+index b7a8f8d..bf72f36 100644
+--- a/lite/src/loaders/mod_load.c
++++ b/lite/src/loaders/mod_load.c
+@@ -36,7 +36,7 @@
+ static int mod_test (HIO_HANDLE *, char *, const int);
+ static int mod_load (struct module_data *, HIO_HANDLE *, const int);
+-const struct format_loader mod_loader = {
++const struct format_loader libxmp_loader_mod = {
+     "Protracker",
+     mod_test,
+     mod_load
diff --git a/libxmp-lite.spec b/libxmp-lite.spec
new file mode 100644 (file)
index 0000000..46f549b
--- /dev/null
@@ -0,0 +1,94 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static libraries
+#
+Summary:       XMP Lite module player library
+Summary(pl.UTF-8):     Biblioteka odtwarzacza modułów XMP Lite
+Name:          libxmp-lite
+Version:       4.4.1
+Release:       1
+License:       MIT
+Group:         Libraries
+Source0:       http://downloads.sourceforge.net/xmp/%{name}-%{version}.tar.gz
+# Source0-md5: d37f69e8a2e6f7b5718b7997cafbb033
+# http://downloads.sourceforge.net/xmp/fix-libxmp-lite-mod-loader.patch
+Patch0:                fix-libxmp-lite-mod-loader.patch
+URL:           http://xmp.sourceforge.net/
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Libxmp-lite is a lean and lightweight subset of Libxmp that plays MOD,
+S3M, XM, and IT modules and retains full compatibility with the
+original API. It's intended for games and small or embedded
+applications where module format diversity and file depacking are not
+required.
+
+%description -l pl.UTF-8
+Libxmp-lite to odchudzony, lekki podzbiór kodu Libxmp, odtwarzający
+moduły MOD, S3M, XM oraz IT, zachowujący pełną zgodność z oryginalnym
+API. Jest przeznaczony do gier oraz małych lub wbudowanych aplikacji,
+gdzie szeroki wybór formatów ani dekompresja plików nie są wymagane.
+
+%package devel
+Summary:       Header files for XMP library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki XMP
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for XMP library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki XMP.
+
+%package static
+Summary:       Static XMP library
+Summary(pl.UTF-8):     Statyczna biblioteka XMP
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static XMP library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka XMP.
+
+%prep
+%setup -q
+%patch0 -p2
+
+%build
+%configure \
+       %{?with_static_libs:--enable-static}
+%{__make} \
+       V=1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc Changelog README
+%attr(755,root,root) %{_libdir}/libxmp-lite.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libxmp-lite.so.4
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libxmp-lite.so
+%{_includedir}/libxmp-lite
+%{_pkgconfigdir}/libxmp-lite.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libxmp-lite.a
+%endif
This page took 0.11663 seconds and 4 git commands to generate.