From 7c7e67c645435c95c9b417af852aaf8c86b387a6d097a2610806aca0727ac20d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Wed, 10 Sep 2014 15:54:00 +0000 Subject: [PATCH] Accepting request 247607 from home:elvigia:branches:multimedia:libs - libraw1394-exports.patch: Only symbols prefixed with raw1394_ are part of the public API, everything else is private. OBS-URL: https://build.opensuse.org/request/show/247607 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libraw1394?expand=0&rev=15 --- libraw1394-exports.patch | 11 +++++++++++ libraw1394.changes | 7 +++++++ libraw1394.spec | 13 +++++++------ 3 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 libraw1394-exports.patch diff --git a/libraw1394-exports.patch b/libraw1394-exports.patch new file mode 100644 index 0000000..2778cfe --- /dev/null +++ b/libraw1394-exports.patch @@ -0,0 +1,11 @@ +--- libraw1394-2.1.0.orig/src/Makefile.am ++++ libraw1394-2.1.0/src/Makefile.am +@@ -4,7 +4,7 @@ MAINTAINERCLEANFILES = Makefile.in + + lib_LTLIBRARIES = libraw1394.la + +-libraw1394_la_LDFLAGS = -version-info @lt_major@:@lt_revision@:@lt_age@ ++libraw1394_la_LDFLAGS = -export-symbols-regex '^raw1394_' -no-undefined -version-info @lt_major@:@lt_revision@:@lt_age@ + + libraw1394_la_SOURCES = \ + main.c \ diff --git a/libraw1394.changes b/libraw1394.changes index 89c3566..053aa3a 100644 --- a/libraw1394.changes +++ b/libraw1394.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Sep 4 18:51:55 UTC 2014 - crrodriguez@opensuse.org + +- libraw1394-exports.patch: Only symbols prefixed with + raw1394_ are part of the public API, everything else + is private. + ------------------------------------------------------------------- Sat Mar 23 13:57:19 UTC 2013 - zaitor@opensuse.org diff --git a/libraw1394.spec b/libraw1394.spec index f9498a0..0ad5d92 100644 --- a/libraw1394.spec +++ b/libraw1394.spec @@ -1,7 +1,7 @@ # # spec file for package libraw1394 # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,12 +28,14 @@ Url: http://www.dennedy.org/libraw1394/ Obsoletes: libraw1394-64bit %endif # +BuildRequires: libtool BuildRequires: openjade-devel BuildRequires: pkg-config BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: http://www.kernel.org/pub/linux/libs/ieee1394/%{name}-%{version}.tar.xz Source1: baselibs.conf -Patch: libraw1394.no-isodump.patch +Patch0: libraw1394.no-isodump.patch +Patch1: libraw1394-exports.patch %description The Linux kernel's IEEE 1394 subsystem provides access to the raw 1394 @@ -101,11 +103,10 @@ This archive contains the header files for libraw1394 development. %prep %setup -q -%patch -p1 - +%patch0 -p1 +%patch1 -p1 %build -#autoreconf --force --install -export CFLAGS="%optflags" +autoreconf --force --install %configure --disable-static --with-pic %{__make} %{?jobs:-j%jobs} all