- provide fake libxcb-atom.so.1 (bnc #741465) for older openSUSE

releases since it apparently vanished with xcb-util 0.3.8 :-(

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xorg-x11-libs?expand=0&rev=174
This commit is contained in:
Stefan Dirsch 2012-01-16 13:21:10 +00:00 committed by Git OBS Bridge
parent b6272f6325
commit af653e6b00
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 16 11:25:52 CET 2012 - sndirsch@suse.de
- provide fake libxcb-atom.so.1 (bnc #741465) for older openSUSE
releases since it apparently vanished with xcb-util 0.3.8 :-(
-------------------------------------------------------------------
Sat Jan 7 18:02:53 UTC 2012 - chris@computersalat.de

View File

@ -23,9 +23,11 @@ BuildRequires: fdupes fontconfig-devel freetype2-devel gperf libXi6-devel libex
%ifarch ppc64 s390x x86_64
Provides: libXaw.so.8()(64bit) libXaw.so.7()(64bit) libXaw.so.6()(64bit)
Provides: libXaw8.so.8()(64bit) libXaw7.so.7()(64bit) libXaw6.so.6()(64bit)
Provides: libxcb-atom.so.1()(64bit)
%else
Provides: libXaw.so.8 libXaw.so.7 libXaw.so.6
Provides: libXaw8.so.8 libXaw7.so.7 libXaw6.so.6
Provides: libxcb-atom.so.1
%endif
# bug437293
%ifarch ppc64
@ -144,6 +146,14 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
# for compatibility reasons
ln -s libXaw7.so.7 $RPM_BUILD_ROOT/%{_libdir}/libXaw8.so.8
ln -s libXaw.so.7 $RPM_BUILD_ROOT/%{_libdir}/libXaw.so.8
# create fake libxcb-atom.so.1 (bnc #741465)
> xcb-atom.c
gcc -Wall -ansi -pedantic -c xcb-atom.c -fPIC
gcc -shared -Wl,-soname,libxcb-atom.so.1 \
-o $RPM_BUILD_ROOT%{_libdir}/libxcb-atom.so.1 xcb-atom.o
%if %suse_version > 1110
%{__rm} -f %{buildroot}%{_libdir}/*.la
%endif
%fdupes -s $RPM_BUILD_ROOT/%_mandir
%clean