rpms/libdca/F-9 libdca-0.0.5-relsymlinks.patch, NONE, 1.1 libdca-0.0.5-strict-aliasing.patch, NONE, 1.1 libdca.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Thorsten Leemhuis thl at rpmfusion.org
Sun Aug 3 19:34:00 CEST 2008


Author: thl

Update of /cvs/free/rpms/libdca/F-9
In directory se02.es.rpmfusion.net:/tmp/cvs-serv3572

Modified Files:
	.cvsignore sources 
Added Files:
	libdca-0.0.5-relsymlinks.patch 
	libdca-0.0.5-strict-aliasing.patch libdca.spec 
Log Message:
initial import from livna

libdca-0.0.5-relsymlinks.patch:

--- NEW FILE libdca-0.0.5-relsymlinks.patch ---
diff -Naupr libdca-0.0.5.orig/libdca/Makefile.am libdca-0.0.5/libdca/Makefile.am
--- libdca-0.0.5/libdca/Makefile.am	2007-04-08 10:32:01.000000000 +0200
+++ libdca-0.0.5/libdca/Makefile.am	2007-04-08 10:32:01.000000000 +0200
@@ -14,7 +14,7 @@ pkgconfig_DATA = libdca.pc libdts.pc
 EXTRA_DIST = configure.incl
 
 install-exec-hook:
-	ln -sf "$(libdir)/libdca.a" "$(DESTDIR)$(libdir)/libdts.a"
+	[ -f "$(DESTDIR)$(libdir)/libdca.a" ] && ln -sf "libdca.a" "$(DESTDIR)$(libdir)/libdts.a" || true
 
 uninstall-hook:
-	unlink "$(DESTDIR)$(libdir)/libdts.a"
+	[ -f "$(DESTDIR)$(libdir)/libdca.a" ] && unlink "$(DESTDIR)$(libdir)/libdts.a" || true
diff -Naupr libdca-0.0.5.orig/libdca/Makefile.in libdca-0.0.5/libdca/Makefile.in
--- libdca-0.0.5/libdca/Makefile.in	2007-04-10 14:31:23.000000000 +0200
+++ libdca-0.0.5/libdca/Makefile.in	2007-04-10 14:31:23.000000000 +0200
@@ -504,10 +504,10 @@ uninstall-am: uninstall-libLTLIBRARIES u
 
 
 install-exec-hook:
-	ln -sf "$(libdir)/libdca.a" "$(DESTDIR)$(libdir)/libdts.a"
+	[ -f "$(DESTDIR)$(libdir)/libdca.a" ] && ln -sf "libdca.a" "$(DESTDIR)$(libdir)/libdts.a" || true
 
 uninstall-hook:
-	unlink "$(DESTDIR)$(libdir)/libdts.a"
+	[ -f "$(DESTDIR)$(libdir)/libdca.a" ] && unlink "$(DESTDIR)$(libdir)/libdts.a" || true
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
diff -Naupr libdca-0.0.5.orig/src/Makefile.am libdca-0.0.5/src/Makefile.am
--- libdca-0.0.5/src/Makefile.am	2007-04-08 10:21:18.000000000 +0200
+++ libdca-0.0.5/src/Makefile.am	2007-04-08 10:21:18.000000000 +0200
@@ -24,7 +24,7 @@ install-data-hook:
 	for a in dcadec extract_dca; do \
 		oldname=`echo "$$a" | sed -e 's/ca/ts/' | sed '$(transform)'` ; \
 		name=`echo "$$a" | sed '$(transform)'` ; \
-		ln -sf "$(man1dir)/$${name}.1" "$(DESTDIR)$(man1dir)/$${oldname}.1" ; \
+		ln -sf "$${name}.1" "$(DESTDIR)$(man1dir)/$${oldname}.1" ; \
 	done
 
 uninstall-hook:
diff -Naupr libdca-0.0.5.orig/src/Makefile.in libdca-0.0.5/src/Makefile.in
--- libdca-0.0.5/src/Makefile.in	2007-04-10 14:31:23.000000000 +0200
+++ libdca-0.0.5/src/Makefile.in	2007-04-10 14:31:23.000000000 +0200
@@ -562,7 +562,7 @@ install-data-hook:
 	for a in dcadec extract_dca; do \
 		oldname=`echo "$$a" | sed -e 's/ca/ts/' | sed '$(transform)'` ; \
 		name=`echo "$$a" | sed '$(transform)'` ; \
-		ln -sf "$(man1dir)/$${name}.1" "$(DESTDIR)$(man1dir)/$${oldname}.1" ; \
+		ln -sf "$${name}.1" "$(DESTDIR)$(man1dir)/$${oldname}.1" ; \
 	done
 
 uninstall-hook:

libdca-0.0.5-strict-aliasing.patch:

--- NEW FILE libdca-0.0.5-strict-aliasing.patch ---
diff -up libdca-0.0.5/libao/Makefile.in.aliasing libdca-0.0.5/libao/Makefile.in
--- libdca-0.0.5/libao/Makefile.in.aliasing	2007-11-02 21:16:15.000000000 +0100
+++ libdca-0.0.5/libao/Makefile.in	2007-11-02 21:16:46.000000000 +0100
@@ -172,7 +172,7 @@ sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-AM_CFLAGS = $(OPT_CFLAGS)
+AM_CFLAGS = $(OPT_CFLAGS) -fno-strict-aliasing
 AM_CPPFLAGS = -I$(top_srcdir)/include
 noinst_LTLIBRARIES = libao.la
 libao_la_SOURCES = audio_out.c audio_out_null.c audio_out_float.c \
diff -up libdca-0.0.5/libao/Makefile.am.aliasing libdca-0.0.5/libao/Makefile.am
--- libdca-0.0.5/libao/Makefile.am.aliasing	2007-04-08 10:23:11.000000000 +0200
+++ libdca-0.0.5/libao/Makefile.am	2007-11-02 21:16:08.000000000 +0100
@@ -1,4 +1,4 @@
-AM_CFLAGS = $(OPT_CFLAGS)
+AM_CFLAGS = $(OPT_CFLAGS) -fno-strict-aliasing
 AM_CPPFLAGS = -I$(top_srcdir)/include
 
 noinst_LTLIBRARIES = libao.la
diff -up libdca-0.0.5/libdca/bitstream.h.aliasing libdca-0.0.5/libdca/bitstream.h
--- libdca-0.0.5/libdca/bitstream.h.aliasing	2007-04-08 11:08:35.000000000 +0200
+++ libdca-0.0.5/libdca/bitstream.h	2007-11-02 21:20:07.000000000 +0100
@@ -29,22 +29,38 @@
 
 #else
 
-#   define swab32(x)\
-((((uint8_t*)&x)[0] << 24) | (((uint8_t*)&x)[1] << 16) |  \
- (((uint8_t*)&x)[2] << 8)  | (((uint8_t*)&x)[3]))
+static inline uint32_t swab32(uint32_t x) {
+	union {
+		uint32_t x32;
+		uint8_t x8[4];
+	} u;
+	u.x32 = x;
+	return u.x8[0] << 24 | u.x8[1] << 16 | u.x8[2] << 8 | u.x8[3];
+}
 
 #endif
 
 #ifdef WORDS_BIGENDIAN
 
-#   define swable32(x)\
-((((uint8_t*)&x)[0] << 16) | (((uint8_t*)&x)[1] << 24) |  \
- (((uint8_t*)&x)[2])  | (((uint8_t*)&x)[3] << 8))
+static inline uint32_t swable32(uint32_t x) {
+	union {
+		uint32_t x32;
+		uint8_t x8[4];
+	} u;
+	u.x32 = x;
+	return u.x8[0] << 16 | u.x8[1] << 24 | u.x8[2] | u.x8[3] << 8;
+}
 
 #else
 
-#   define swable32(x)\
-((((uint32_t)x) >> 16) | (((uint32_t)x) << 16))
+static inline uint32_t swable32(uint32_t x) {
+	union {
+		uint32_t x32;
+		uint16_t x16[2];
+	} u;
+	u.x32 = x;
+	return u.x16[0] << 16 | u.x16[1];
+}
 
 #endif
 


***** Error reading new file: [Errno 2] No such file or directory: 'libdca.spec'

Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/libdca/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	22 Jul 2008 16:52:34 -0000	1.1
+++ .cvsignore	3 Aug 2008 17:34:00 -0000	1.2
@@ -0,0 +1 @@
+libdca-0.0.5.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/free/rpms/libdca/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	22 Jul 2008 16:52:34 -0000	1.1
+++ sources	3 Aug 2008 17:34:00 -0000	1.2
@@ -0,0 +1 @@
+dab6b2795c66a82a6fcd4f8343343021  libdca-0.0.5.tar.bz2



More information about the rpmfusion-commits mailing list