From e9e7fa543273fffa8131b2244e5c994fe22616e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 24 Nov 2013 16:48:53 +0100 Subject: RPM Packaging: fix build issue on openSUSE 13.1 --- ...e-14.0.0-tdehardwarebackend_fix_iocharset.patch | 25 +++++++++++++++++++ redhat/tdebase/tdebase-14.0.0.spec | 11 +++++--- redhat/tdebase/tdebase-3.5.13.2.spec | 29 ++++++++++++++-------- 3 files changed, 50 insertions(+), 15 deletions(-) create mode 100644 redhat/tdebase/tdebase-14.0.0-tdehardwarebackend_fix_iocharset.patch (limited to 'redhat/tdebase') diff --git a/redhat/tdebase/tdebase-14.0.0-tdehardwarebackend_fix_iocharset.patch b/redhat/tdebase/tdebase-14.0.0-tdehardwarebackend_fix_iocharset.patch new file mode 100644 index 000000000..c02c3e6c6 --- /dev/null +++ b/redhat/tdebase/tdebase-14.0.0-tdehardwarebackend_fix_iocharset.patch @@ -0,0 +1,25 @@ +--- tdebase/tdeioslave/media/mediamanager/tdehardwarebackend.cpp.new 2013-11-11 21:27:09.960234089 +0100 ++++ tdebase/tdeioslave/media/mediamanager/tdehardwarebackend.cpp 2013-11-11 21:32:16.081679386 +0100 +@@ -979,9 +979,21 @@ + } + + if (valids.contains("utf8")) { +- value = config.readBoolEntry("utf8", true); ++ // From "man mount": only some filesystems support 'iocharset' option. ++ if( (sdevice->fileSystemName() == "fat") ++ || (sdevice->fileSystemName() == "iso9660") ++ || (sdevice->fileSystemName() == "jfs") ++ || (sdevice->fileSystemName() == "msdos") ++ || (sdevice->fileSystemName() == "ntfs") ++ || (sdevice->fileSystemName() == "umsdos") ++ || (sdevice->fileSystemName() == "vfat") ++ ) { ++ value = false; //config.readBoolEntry("utf8", true); ++ } else { ++ value = false; ++ } + tmp = TQString("utf8=%1").arg(value ? "true" : "false"); + result << tmp; + } + + if (valids.contains("shortname")) { diff --git a/redhat/tdebase/tdebase-14.0.0.spec b/redhat/tdebase/tdebase-14.0.0.spec index 2a995a7b8..661c5d6e2 100644 --- a/redhat/tdebase/tdebase-14.0.0.spec +++ b/redhat/tdebase/tdebase-14.0.0.spec @@ -322,6 +322,9 @@ BuildRequires: libvorbis-devel BuildRequires: glib2-devel BuildRequires: pcre-devel +# SASL support +BuildRequires: cyrus-sasl-devel + # LIBUSB support BuildRequires: pam-devel %if 0%{?mageia} || 0%{?mandriva} || 0%{?pclinuxos} @@ -3337,10 +3340,10 @@ if [ -d "/usr/include/samba-4.0" ]; then export CMAKE_INCLUDE_PATH="${CMAKE_INCLUDE_PATH}:/usr/include/samba-4.0" fi -%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} -%__mkdir_p build -cd build -%endif +if ! rpm -E %%cmake|grep -q "cd build"; then + %__mkdir_p build + cd build +fi %cmake \ -DCMAKE_BUILD_TYPE="RelWithDebInfo" \ diff --git a/redhat/tdebase/tdebase-3.5.13.2.spec b/redhat/tdebase/tdebase-3.5.13.2.spec index 90071914c..b8f3cc267 100644 --- a/redhat/tdebase/tdebase-3.5.13.2.spec +++ b/redhat/tdebase/tdebase-3.5.13.2.spec @@ -192,7 +192,6 @@ Requires: fedora-release-notes %define tde_aboutpage /usr/share/doc/fedora-release-notes-19/index.html %endif - # RHEL 4 Theme %if 0%{?rhel} == 4 Requires: desktop-backgrounds-basic @@ -349,6 +348,9 @@ BuildRequires: libvorbis-devel BuildRequires: glib2-devel BuildRequires: pcre-devel +# SASL support +BuildRequires: cyrus-sasl-devel + # LIBUSB support BuildRequires: pam-devel %if 0%{?mageia} || 0%{?mandriva} || 0%{?pclinuxos} @@ -424,6 +426,7 @@ BuildRequires: gnome-screensaver BuildRequires: %{_lib}xscrnsaver%{?mgaversion:1}-devel %endif %if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version} >= 1220 +BuildRequires: xscreensaver BuildRequires: libXScrnSaver-devel %endif %if 0%{?suse_version} == 1140 @@ -498,18 +501,24 @@ BuildRequires: libsmbclient-devel BuildRequires: imake %endif +# XKB support +%if 0%{?suse_version} == 1140 +BuildRequires: xorg-x11-libxkbfile-devel +%endif +%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} >= 1210 +BuildRequires: libxkbfile-devel +%endif + # X11 stuff ... %if 0%{?rhel} == 4 BuildRequires: xorg-x11-devel %endif %if 0%{?suse_version} == 1140 -BuildRequires: xorg-x11-libxkbfile-devel BuildRequires: xorg-x11-libfontenc-devel %endif %if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} >= 1220 -BuildRequires: libxkbfile-devel BuildRequires: libfontenc-devel %endif @@ -586,9 +595,6 @@ Requires: openssl # RHEL 6 Configuration files are provided in separate packages %if 0%{?rhel} || 0%{?fedora} -%if "%{?tde_prefix}" == "/usr" -Requires: kde-settings-kdm -%endif Requires: redhat-menus %endif @@ -3368,7 +3374,8 @@ Windows and Samba shares. %build -unset QTDIR; . /etc/profile.d/qt3.sh +unset QTDIR QTINC QTLIB +. /etc/profile.d/qt3.sh export PATH="%{tde_bindir}:${PATH}" export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}" @@ -3386,10 +3393,10 @@ if [ -d "/usr/include/samba-4.0" ]; then export CMAKE_INCLUDE_PATH="${CMAKE_INCLUDE_PATH}:/usr/include/samba-4.0" fi -%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} -%__mkdir_p build -cd build -%endif +if ! rpm -E %%cmake|grep -q "cd build"; then + %__mkdir_p build + cd build +fi %cmake \ -DCMAKE_BUILD_TYPE="RelWithDebInfo" \ -- cgit v1.2.1