Hello community, here is the log from the commit of package libilmbase6 for openSUSE:Factory checked in at 2012-02-15 16:16:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libilmbase6 (Old) and /work/SRC/openSUSE:Factory/.libilmbase6.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libilmbase6", Maintainer is "mvysko...@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/libilmbase6/libilmbase6.changes 2011-09-23 02:08:36.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libilmbase6.new/libilmbase6.changes 2012-02-15 16:16:32.000000000 +0100 @@ -1,0 +2,12 @@ +Sat Jan 21 08:43:00 UTC 2012 - jeng...@medozas.de + +- Remove redundant sections (cf. specfile guidelines) + +------------------------------------------------------------------- +Fri Jan 20 21:33:27 UTC 2012 - crrodrig...@opensuse.org + +- Reuse windows code to provide symbol visibility support. + test suite passes, so unless it is incomplete or buggy + this should be just fine, if something breaks, open a bug report. + +------------------------------------------------------------------- New: ---- ilmbase-visibility.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libilmbase6.spec ++++++ --- /var/tmp/diff_new_pack.sC1uhW/_old 2012-02-15 16:16:33.000000000 +0100 +++ /var/tmp/diff_new_pack.sC1uhW/_new 2012-02-15 16:16:33.000000000 +0100 @@ -1,7 +1,7 @@ # -# spec file for package libilmbase6 (Version 1.0.2) +# spec file for package libilmbase6 # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 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 @@ -15,26 +15,29 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: libilmbase6 -BuildRequires: gcc-c++ -BuildRequires: pkg-config -Summary: Base library for ILM software (OpenEXR) Version: 1.0.2 Release: 1 License: BSD-3-Clause -Group: Development/Libraries/C and C++ +Summary: Base library for ILM software (OpenEXR) Url: http://www.openexr.com -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: ilmbase-%version.tar.bz2 +Group: Development/Libraries/C and C++ +Source0: ilmbase-%{version}.tar.bz2 Source1: baselibs.conf #PATCH-FIX-OPENSUSE: missing header for memcpy/memset Patch0: libilmbase6-headers.patch # Renamed to libilmbase6 to met the Shared Library Policy +Patch1: ilmbase-visibility.patch +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc-c++ +BuildRequires: libtool +BuildRequires: pkg-config Obsoletes: IlmBase <= 1.0.1 Provides: IlmBase = %{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Base library for Industrial Light & Magic software (OpenEXR). @@ -53,9 +56,10 @@ %package -n libilmbase-devel License: BSD-3-Clause ; GPL-2.0+ -Requires: %{name} = %{version} libstdc++-devel -Group: Development/Libraries/C and C++ Summary: Base library for ILM software (OpenEXR) +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version} +Requires: libstdc++-devel # Renamed to libilmbase6 to met the Shared Library Policy Obsoletes: IlmBase-devel <= 1.0.1 Provides: IlmBase-devel = %{version} @@ -76,51 +80,49 @@ * Iex is an exception-handling library. %prep -%setup -q -n ilmbase-%version +%setup -q -n ilmbase-%{version} %patch0 -p1 -b .headers +%patch1 # remove a non unix READMEs rm README.win32 %build -export PTHREAD_LIBS="-lpthread" +./bootstrap %configure --disable-static --with-pic -%{__make} %{?jobs:-j%jobs} +make %{?_smp_mflags} %install %{makeinstall} -%{__rm} -f %{buildroot}%{_libdir}/*.la +rm -f %{buildroot}%{_libdir}/*.la %check #XXX: workaround for a build fail with gcc45 with -02 on i586 -%if %{suse_version} >= 1130 +%if 0%{?suse_version} >= 1130 %ifarch %ix86 -%{__make} CXXFLAGS="`echo "%optflags" | sed 's/O2/O1/'`" check +make CXXFLAGS="`echo "%{optflags}" | sed 's/O2/O1/'`" check %endif %endif -%{__make} check +make check %post -p /sbin/ldconfig %postun -p /sbin/ldconfig -%clean -rm -rf %{buildroot} - %files %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING LICENSE NEWS README* -%_libdir/libHalf.so.* -%_libdir/libIex.so.* -%_libdir/libImath.so.* -%_libdir/libIlmThread.so.* +%{_libdir}/libHalf.so.* +%{_libdir}/libIex.so.* +%{_libdir}/libImath.so.* +%{_libdir}/libIlmThread.so.* %files -n libilmbase-devel %defattr(-,root,root) %{_includedir}/OpenEXR -%_libdir/libHalf.so -%_libdir/libIex.so -%_libdir/libImath.so -%_libdir/libIlmThread.so -%_libdir/pkgconfig/IlmBase.pc +%{_libdir}/libHalf.so +%{_libdir}/libIex.so +%{_libdir}/libImath.so +%{_libdir}/libIlmThread.so +%{_libdir}/pkgconfig/IlmBase.pc %changelog ++++++ ilmbase-visibility.patch ++++++ --- IlmThread/IlmThread.h.orig +++ IlmThread/IlmThread.h @@ -110,7 +110,7 @@ #define ILMTHREAD_EXPORT __declspec(dllimport) #endif #else - #define ILMTHREAD_EXPORT + #define ILMTHREAD_EXPORT __attribute__ ((visibility ("default"))) #endif namespace IlmThread { --- Imath/ImathMatrixAlgo.cpp.orig +++ Imath/ImathMatrixAlgo.cpp @@ -47,7 +47,7 @@ #if defined(OPENEXR_DLL) #define EXPORT_CONST __declspec(dllexport) #else - #define EXPORT_CONST const + #define EXPORT_CONST __attribute__ ((visibility ("default"))) const #endif namespace Imath { --- Imath/ImathMatrixAlgo.h.orig +++ Imath/ImathMatrixAlgo.h @@ -63,7 +63,7 @@ #define IMATH_EXPORT_CONST extern __declspec(dllimport) #endif #else - #define IMATH_EXPORT_CONST extern const + #define IMATH_EXPORT_CONST extern __attribute__ ((visibility ("default"))) const #endif --- Half/half.h.orig +++ Half/half.h @@ -95,8 +95,8 @@ #endif #define HALF_EXPORT_CONST #else - #define HALF_EXPORT - #define HALF_EXPORT_CONST const + #define HALF_EXPORT __attribute__ ((visibility ("default"))) + #define HALF_EXPORT_CONST __attribute__ ((visibility ("default"))) const #endif class HALF_EXPORT half --- Imath/Makefile.am.orig +++ Imath/Makefile.am @@ -2,6 +2,7 @@ lib_LTLIBRARIES = libImath.la +libImath_la_CXXFLAGS = -fvisibility=hidden -fvisibility-inlines-hidden libImath_la_SOURCES = ImathShear.cpp ImathMatrixAlgo.cpp ImathVec.cpp \ ImathColorAlgo.cpp ImathFun.cpp \ ImathColorAlgo.h ImathMatrixAlgo.h ImathVec.h \ --- Half/Makefile.am.orig +++ Half/Makefile.am @@ -3,7 +3,7 @@ INCLUDES = -I$(top_srcdir)/config lib_LTLIBRARIES = libHalf.la - +libHalf_la_CXXFLAGS = -fvisibility=hidden -fvisibility-inlines-hidden libHalf_la_SOURCES = half.cpp half.h halfFunction.h halfLimits.h libHalf_la_LDFLAGS = -version-info @LIBTOOL_VERSION@ -no-undefined --- IlmThread/Makefile.am.orig +++ IlmThread/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in lib_LTLIBRARIES = libIlmThread.la - +libIlmThread_la_CXXFLAGS = -fvisibility=hidden -fvisibility-inlines-hidden libIlmThread_la_SOURCES = IlmThreadPool.h IlmThread.h \ IlmThreadSemaphore.h IlmThreadMutex.h \ IlmThreadPool.cpp IlmThread.cpp \ --- configure.ac.orig +++ configure.ac @@ -2,6 +2,7 @@ dnl Process this file with autoconf to p AC_INIT(IlmBase, 1.0.2) AC_SUBST(ILMBASE_VERSION, 1.0.2) AC_CANONICAL_HOST +AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SRCDIR(ImathTest/main.cpp) AM_CONFIG_HEADER(config/IlmBaseConfig.h) AM_INIT_AUTOMAKE(1.6.3) dnl Require automake 1.6.3 or better --- Imath/ImathRandom.h.orig +++ Imath/ImathRandom.h @@ -59,6 +59,8 @@ #include <stdlib.h> #include <math.h> +#define IMATH_RAND_EXPORT __attribute__ ((visibility ("default"))) + namespace Imath { //----------------------------------------------- @@ -67,7 +69,7 @@ namespace Imath { // length of 2^32. //----------------------------------------------- -class Rand32 +class IMATH_RAND_EXPORT Rand32 { public: @@ -127,7 +129,7 @@ class Rand32 // uniformly distributed sequence. //-------------------------------------------------------- -class Rand48 +class IMATH_RAND_EXPORT Rand48 { public: @@ -224,11 +226,11 @@ gaussSphereRand (Rand &rand); // erand48(), nrand48() and friends //--------------------------------- -double erand48 (unsigned short state[3]); -double drand48 (); -long int nrand48 (unsigned short state[3]); -long int lrand48 (); -void srand48 (long int seed); +IMATH_RAND_EXPORT double erand48 (unsigned short state[3]); +IMATH_RAND_EXPORT double drand48 (); +IMATH_RAND_EXPORT long int nrand48 (unsigned short state[3]); +IMATH_RAND_EXPORT long int lrand48 (); +IMATH_RAND_EXPORT void srand48 (long int seed); //--------------- --- Imath/ImathFun.h.orig +++ Imath/ImathFun.h @@ -233,11 +233,13 @@ modp (int x, int y) // //---------------------------------------------------------- +#pragma GCC visibility push(default) float succf (float f); float predf (float f); double succd (double d); double predd (double d); +#pragma GCC visibility pop // // Return true if the number is not a NaN or Infinity. -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org