From b06c496085d9ec1b8948e9efb960e3767e2f9262c9889caa1a0c14c4ad5c4c8a Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Wed, 30 Mar 2011 09:48:40 +0000 Subject: [PATCH] - Should build in SLE-11-SP1 now OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=46 --- sssd.changes | 5 +++++ sssd.spec | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/sssd.changes b/sssd.changes index 427bef7..76e0e13 100644 --- a/sssd.changes +++ b/sssd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 30 09:47:23 UTC 2011 - rhafer@suse.de + +- Should build in SLE-11-SP1 now + ------------------------------------------------------------------- Tue Mar 29 13:23:57 UTC 2011 - rhafer@suse.de diff --git a/sssd.spec b/sssd.spec index f96fa37..2aa5ddc 100644 --- a/sssd.spec +++ b/sssd.spec @@ -34,6 +34,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %define pipepath %{sssdstatedir}/pipes %define pubconfpath %{sssdstatedir}/pubconf +# SLES11 doesn't know the python_* macros +%if %suse_version <= 1110 +%define python_sitelib %py_sitedir +%define python_sitearch %py_sitedir +%endif + ### Build Dependencies ### BuildRequires: autoconf BuildRequires: automake @@ -149,6 +155,18 @@ rm -f \ $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_ipa.la \ $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_simple.la \ $RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.la + +%if %suse_version <= 1110 +# remove some unsupported languages, sssd does not contain +# translations for these anyway +rm -rf \ + $RPM_BUILD_ROOT/usr/share/locale/fa_IR \ + $RPM_BUILD_ROOT/usr/share/locale/ja_JP \ + $RPM_BUILD_ROOT/usr/share/locale/lt_LT \ + $RPM_BUILD_ROOT/usr/share/locale/ta_IN \ + $RPM_BUILD_ROOT/usr/share/locale/vi_VN +%endif + %find_lang %{name} --all-name %clean