Accepting request 234258 from home:Mailaender:branches:multimedia:libs

fixed the build, but did not manage to enable multi-threading support

OBS-URL: https://build.opensuse.org/request/show/234258
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/lcms2?expand=0&rev=60
This commit is contained in:
OBS User mrdocs 2014-05-19 06:24:06 +00:00 committed by Git OBS Bridge
parent e3db1a826e
commit 486b562150
2 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 16 06:27:26 UTC 2014 - mailaender@opensuse.org
- Fixed missing dependency pthread
-------------------------------------------------------------------
Mon Mar 17 16:20:45 UTC 2014 - adrian@suse.de

View File

@ -25,6 +25,8 @@ Version: 2.6
Release: 0
%if 0%{?suse_version}
BuildRequires: autoconf
BuildRequires: glibc-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
@ -102,7 +104,8 @@ chmod a-x doc/* COPYING AUTHORS
#export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
#export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
autoreconf -fiv
%configure --disable-static
# FIXME --without-threads is a workaround for a linker error
%configure --disable-static --without-threads
make %{?_smp_flags}
@ -112,13 +115,9 @@ make %{?_smp_flags}
# make utils
%install
make install DESTDIR=%{buildroot}
%makeinstall
rm $RPM_BUILD_ROOT/%_libdir/liblcms2.la
%clean
rm -rf $RPM_BUILD_ROOT
rm %{buildroot}/%{_libdir}/liblcms2.la
%post -n liblcms2-2 -p /sbin/ldconfig