diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-12-17 12:09:54 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-12-17 12:10:04 +0100 |
commit | a96a43f14b27ab9ff51c4dbd4e60024374baa4d7 (patch) | |
tree | 707f80d309130d98b1b80ae471c6a679e7ce5b7c /nx-libs.spec | |
parent | ded201707148e26756653c9aba0e46fb0c5e027b (diff) | |
download | nx-libs-a96a43f14b27ab9ff51c4dbd4e60024374baa4d7.tar.gz nx-libs-a96a43f14b27ab9ff51c4dbd4e60024374baa4d7.tar.bz2 nx-libs-a96a43f14b27ab9ff51c4dbd4e60024374baa4d7.zip |
Enable Xinerama support for RPM packages. (Fixes: #370).
Diffstat (limited to 'nx-libs.spec')
-rw-r--r-- | nx-libs.spec | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nx-libs.spec b/nx-libs.spec index a851141a5..84e53c1d6 100644 --- a/nx-libs.spec +++ b/nx-libs.spec @@ -235,6 +235,8 @@ various limitations in the core protocol. Group: System Environment/Libraries Summary: Xinerama extension to the NX Protocol Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: libX11 +Requires: libXext %description -n libNX_Xinerama Xinerama is an extension to the X Window System which enables @@ -534,7 +536,6 @@ chmod a+x my_configure; export SHLIBGLOBALSFLAGS="%{__global_ldflags}" make %{?_smp_mflags} CONFIGURE="$PWD/my_configure" USRLIBDIR=%{_libdir}/nx SHLIBDIR=%{_libdir}/nx - %install make install \ DESTDIR=%{buildroot} \ @@ -577,6 +578,9 @@ rm -r %{buildroot}%{_includedir}/nx/X11/Xtrans %post -n libNX_Xext -p /sbin/ldconfig %post -n libNX_Xfixes -p /sbin/ldconfig %post -n libNX_Xinerama -p /sbin/ldconfig +ln -s -f %{_libdir}/libX11.so.6 %{_libdir}/X11/Xinerama/libNX_X11.so.6 +ln -s -f %{_libdir}/libXext.so.6 %{_libdir}/X11/Xinerama/libNX_Xext.so.6 + %post -n libNX_Xpm -p /sbin/ldconfig %post -n libNX_Xrandr -p /sbin/ldconfig %post -n libNX_Xrender -p /sbin/ldconfig @@ -585,6 +589,10 @@ rm -r %{buildroot}%{_includedir}/nx/X11/Xtrans %post -n libXcompext -p /sbin/ldconfig %post -n libXcompshad -p /sbin/ldconfig +%preun -n libNX_Xinerama +rm -f %{_libdir}/X11/Xinerama/libNX_X11.so.6 +rm -f %{_libdir}/X11/Xinerama/libNX_Xext.so.6 + %postun -p /sbin/ldconfig %postun -n libNX_X11 -p /sbin/ldconfig %postun -n libNX_Xau -p /sbin/ldconfig @@ -689,6 +697,7 @@ rm -r %{buildroot}%{_includedir}/nx/X11/Xtrans %files -n libNX_Xinerama %{_libdir}/nx/X11/libNX_Xinerama.so.1* +%{_libdir}/nx/X11/Xinerama/ %files -n libNX_Xpm-devel %{_libdir}/nx/X11/libNX_Xpm.so |