BuildRequires: cmake
BuildRequires: openssl-devel
%if 0%{?suse_version} >= 1130 || 0%{?fedora_version} >= 16
-BuildRequires: pkgconfig(libudev)
+BuildRequires: libudev-devel
%else
BuildRequires: hal-devel
%endif
%endif
BuildRequires: gettext-devel
BuildRequires: graphviz
+BuildRequires: graphviz-gnome
BuildRequires: libxml2-devel
%if 0%{?suse_version} != 1110
# No libproxy on SLES
%endif
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
+unset TRANSLATION_SET
unset EXTRA_CMAKE_OPTIONS
+# Same codebase, but SLES may use it's own translation set.
+# suse_version
+# 1110 SLES11
+# 1315 SLES12
+%if 0%{?suse_version} == 1110 || 0%{?suse_version} == 1315
+if [ -f ../po/sle-zypp-po.tar.bz ]; then
+ export TRANSLATION_SET=sle-zypp
+fi
+%endif
# No libproxy on SLE11
%if 0%{?suse_version} == 1110
export EXTRA_CMAKE_OPTIONS="-DDISABLE_LIBPROXY=ON"
-DLIB=%{_lib} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=1 \
+ -DUSE_TRANSLATION_SET=${TRANSLATION_SET:-zypp} \
${EXTRA_CMAKE_OPTIONS} \
..
make %{?_smp_mflags} VERBOSE=1
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zypp/repos.d
%endif
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zypp/services.d
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zypp/systemCheck.d
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zypp/vendors.d
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zypp/multiversion.d
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zypp/credentials.d
%dir %{_sysconfdir}/zypp/repos.d
%endif
%dir %{_sysconfdir}/zypp/services.d
-%dir %{_sysconfdir}/zypp/systemCheck.d
%dir %{_sysconfdir}/zypp/vendors.d
%dir %{_sysconfdir}/zypp/multiversion.d
%dir %{_sysconfdir}/zypp/credentials.d