Hello community, here is the log from the commit of package alac for openSUSE:Factory checked in at 2016-07-15 12:45:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/alac (Old) and /work/SRC/openSUSE:Factory/.alac.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "alac" Changes: -------- New Changes file: --- /dev/null 2016-07-07 10:01:34.856033756 +0200 +++ /work/SRC/openSUSE:Factory/.alac.new/alac.changes 2016-07-15 12:45:12.000000000 +0200 @@ -0,0 +1,49 @@ +------------------------------------------------------------------- +Tue Jan 19 14:00:36 UTC 2016 - [email protected] + +- Change the SRPM name to alac (follow apparent upstream project + name). + +------------------------------------------------------------------- +Fri Jan 15 08:43:53 UTC 2016 - [email protected] + +- Install both license files + +------------------------------------------------------------------- +Mon Apr 13 16:08:18 UTC 2015 - [email protected] + +- Remove devel-static package as it has no users + +------------------------------------------------------------------- +Sun Apr 12 19:31:09 UTC 2015 - [email protected] + +- Cleanup spec file with spec-cleaner +- Update dependencies + +------------------------------------------------------------------- +Fri Jan 3 20:26:31 UTC 2014 - [email protected] + +- libalac-makefile.patch update, OPTFLAGS must be used + at linking time as well. +- alac-endian.patch, fix endian conversion routines +* They were inneficient, use optimized versions provided by the OS. +* They were wrong, assumes for example that ARM is not little endian + and that powerpc is always big endian. +- fix cflags so large file support is enabled, GNU_SOURCE is defined, + strict aliasing is disabled and C++ inlines get hidden visibility. + +------------------------------------------------------------------- +Sat Jul 20 21:10:16 UTC 2013 - [email protected] + +- Update license to new format, Apache-2.0. + +------------------------------------------------------------------- +Fri Oct 28 11:02:35 UTC 2011 - [email protected] + +- split out libalac.a into libalac-devel-static + +------------------------------------------------------------------- +Fri Oct 28 10:45:22 CET 2011 - [email protected] + +- initial version (0+r3) + New: ---- alac-endian.patch alac-r3.tar.bz2 alac.changes alac.spec libalac-makefile.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ alac.spec ++++++ # # spec file for package alac # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: alac %define lname libalac0 Version: 0+r3 Release: 0 Summary: Apple Lossless Audio Codec License: Apache-2.0 Group: Productivity/Multimedia/Sound/Editors and Convertors Url: http://alac.macosforge.org/ #SVN-Clone: http://svn.macosforge.org/repository/alac/trunk/ Source: alac-r3.tar.bz2 Patch1: libalac-makefile.patch Patch2: alac-endian.patch BuildRequires: gcc-c++ BuildRequires: pkg-config BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The Apple Lossless Audio Codec (ALAC) is an audio codec developed by Apple and supported on iPhone, iPad, most iPods, Mac and iTunes. ALAC is a data compression method which reduces the size of audio files with no loss of information. A decoded ALAC stream is bit-for-bit identical to the original uncompressed audio file. This package contains a command-line utility to convert the ALAC format. %package -n %{lname} Summary: Apple Lossless Audio Codec Group: System/Libraries %description -n %{lname} The Apple Lossless Audio Codec (ALAC) is an audio codec developed by Apple and supported on iPhone, iPad, most iPods, Mac and iTunes. ALAC is a data compression method which reduces the size of audio files with no loss of information. A decoded ALAC stream is bit-for-bit identical to the original uncompressed audio file. %package -n libalac-devel Summary: Apple Lossless Audio Codec Group: Development/Libraries/C and C++ Requires: %{lname} = %{version}-%{release} %description -n libalac-devel The Apple Lossless Audio Codec (ALAC) is an audio codec developed by Apple and supported on iPhone, iPad, most iPods, Mac and iTunes. ALAC is a data compression method which reduces the size of audio files with no loss of information. A decoded ALAC stream is bit-for-bit identical to the original uncompressed audio file. %prep %setup -qn %{name} %patch1 -p1 %patch2 -p1 %build for d in codec convert-utility; do make -C "$d" \ OPTFLAGS="%{optflags} -fvisibility-inlines-hidden -fno-strict-aliasing -D_GNU_SOURCE $(getconf LFS_CFLAGS)" \ CC="g++" done %install install -D -m0755 convert-utility/alacconvert "%{buildroot}%{_bindir}/alacconvert" install -d "%{buildroot}%{_includedir}" cp -a codec/*.h "%{buildroot}%{_includedir}/" install -d "%{buildroot}%{_libdir}" cp -a codec/libalac.so* "%{buildroot}%{_libdir}/" %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig %files -n %{lname} %defattr(-,root,root) %doc codec/APPLE_LICENSE.txt LICENSE %{_libdir}/libalac.so.0 %{_libdir}/libalac.so.0.3 %files -n libalac-devel %defattr(-,root,root) %doc codec/APPLE_LICENSE.txt LICENSE %{_includedir}/*.h %{_libdir}/libalac.so %files %defattr(-,root,root) %doc codec/APPLE_LICENSE.txt LICENSE %{_bindir}/alacconvert %changelog ++++++ alac-endian.patch ++++++ --- alac.orig/codec/EndianPortable.c +++ alac/codec/EndianPortable.c @@ -25,20 +25,15 @@ // #include <stdio.h> +#include <byteswap.h> +#include <endian.h> #include "EndianPortable.h" -#define BSWAP16(x) (((x << 8) | ((x >> 8) & 0x00ff))) -#define BSWAP32(x) (((x << 24) | ((x << 8) & 0x00ff0000) | ((x >> 8) & 0x0000ff00) | ((x >> 24) & 0x000000ff))) -#define BSWAP64(x) ((((int64_t)x << 56) | (((int64_t)x << 40) & 0x00ff000000000000LL) | \ - (((int64_t)x << 24) & 0x0000ff0000000000LL) | (((int64_t)x << 8) & 0x000000ff00000000LL) | \ - (((int64_t)x >> 8) & 0x00000000ff000000LL) | (((int64_t)x >> 24) & 0x0000000000ff0000LL) | \ - (((int64_t)x >> 40) & 0x000000000000ff00LL) | (((int64_t)x >> 56) & 0x00000000000000ffLL))) +#define BSWAP16(x) bswap_16(x) +#define BSWAP32(x) bswap_32(x) +#define BSWAP64(x) bswap_64(x) -#if defined(__i386__) -#define TARGET_RT_LITTLE_ENDIAN 1 -#elif defined(__x86_64__) -#define TARGET_RT_LITTLE_ENDIAN 1 -#elif defined (TARGET_OS_WIN32) +#if __BYTE_ORDER == __LITTLE_ENDIAN #define TARGET_RT_LITTLE_ENDIAN 1 #endif --- alac.orig/codec/ALACAudioTypes.h +++ alac/codec/ALACAudioTypes.h @@ -42,10 +42,9 @@ extern "C" { #endif #include <stdint.h> +#include <endian.h> -#if defined(__ppc__) -#define TARGET_RT_BIG_ENDIAN 1 -#elif defined(__ppc64__) +#if __BYTE_ORDER == __BIG_ENDIAN #define TARGET_RT_BIG_ENDIAN 1 #endif ++++++ libalac-makefile.patch ++++++ --- alac.orig/codec/makefile +++ alac/codec/makefile @@ -1,6 +1,10 @@ # libalac make -CFLAGS = -g -O3 -c +VERSION = 0.3 +SONAME = 0 + +OPTFLAGS = -g -O3 +CFLAGS = $(OPTFLAGS) -fPIC -c LFLAGS = -Wall CC = g++ @@ -42,9 +46,16 @@ dp_enc.o \ matrix_dec.o \ matrix_enc.o +all: libalac.a libalac.so.$(VERSION) + libalac.a: $(OBJS) ar rcs libalac.a $(OBJS) +libalac.so.$(VERSION): $(OBJS) + $(CC) $(OPTFLAGS) -shared -Wl,-soname,libalac.so.$(SONAME) -o libalac.so.$(VERSION) $(OBJS) + ln -s libalac.so.$(VERSION) libalac.so.$(SONAME) + ln -s libalac.so.$(SONAME) libalac.so + EndianPortable.o : EndianPortable.c $(CC) -I $(INCLUDES) $(CFLAGS) EndianPortable.c --- alac.orig/convert-utility/makefile +++ alac/convert-utility/makefile @@ -1,6 +1,7 @@ # alacconvert make -CFLAGS = -g -O3 -c +OPTFLAGS = -g -O3 +CFLAGS = $(OPTFLAGS) -fPIC -c LFLAGS = -Wall -L$(CODECDIR) -lalac CC = g++ @@ -30,7 +31,7 @@ CAFFileALAC.o alacconvert: $(OBJS) (cd $(CODECDIR); $(MAKE)) - $(CC) $(LFLAGS) $(OBJS) -o alacconvert + $(CC) $(OBJS) -o alacconvert $(LFLAGS) main.o : main.cpp $(CC) -I $(INCLUDES) $(CFLAGS) main.cpp
