diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-02-08 13:57:42 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-02-27 12:25:33 +0100 |
commit | 899254993d9cfbc23dfbb5bb0c422ddd39b47288 (patch) | |
tree | e4261145df203549fbdad9432670f329d10824ac /nx-libs.spec | |
parent | 2ba23b3bcf8f51d12c34582c8e0c51abebad6fda (diff) | |
download | nx-libs-899254993d9cfbc23dfbb5bb0c422ddd39b47288.tar.gz nx-libs-899254993d9cfbc23dfbb5bb0c422ddd39b47288.tar.bz2 nx-libs-899254993d9cfbc23dfbb5bb0c422ddd39b47288.zip |
nx-libs.spec: Handle fonts dir symlinking and install /usr/share/nx/fonts symlink into nxagent bin:pkg. This change probably needs more fine-tuning for the various other RPM distros and versions out there.
Thanks to Orion Poplawski for providing a code
snippet with a general approach of handling this.
Diffstat (limited to 'nx-libs.spec')
-rw-r--r-- | nx-libs.spec | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nx-libs.spec b/nx-libs.spec index 7e3ca4796..6fa4e8342 100644 --- a/nx-libs.spec +++ b/nx-libs.spec @@ -272,8 +272,9 @@ Obsoletes: nx < 3.5.0-19 Provides: nx = %{version}-%{release} Provides: nx%{?_isa} = %{version}-%{release} Obsoletes: nxauth < 3.5.99.1 -%if 0%{?suse_version} -Requires: xorg-x11-fonts-core +%if 0%{?fedora} || 0%{?rhel} +# For /usr/share/X11/fonts +Requires: xorg-x11-font-utils %endif %description -n nxagent @@ -357,6 +358,13 @@ make install \ INSTALL_FILE="install -pm0644" \ INSTALL_PROGRAM="install -pm0755" +# this needs to be adapted distribution-wise... +%if 0%{?suse_version} +ln -s ../fonts %{buildroot}%{_datadir}/nx/fonts +%elif 0%{?fedora} || 0%{?rhel} +ln -s ../X11/fonts %{buildroot}%{_datadir}/nx/fonts +%endif + # Remove static libs (they don't exist on SLES, so using -f here) rm -f %{buildroot}%{_libdir}/*.a @@ -520,6 +528,7 @@ rm -r %{buildroot}%{_includedir}/nx-X11/Xtrans %dir %{_datadir}/nx %{_datadir}/nx/VERSION.nxagent %{_datadir}/man/man1/nxagent.1* +%{_datadir}/nx/fonts %files -n nxproxy %defattr(-,root,root) |