Obsoletes: yast2-packagemanager
# Features we provide (update doc/autoinclude/FeatureTest.doc):
-Provides: libzypp(plugin) = 0.1
+Provides: libzypp(plugin) = 0
Provides: libzypp(plugin:appdata) = 0
Provides: libzypp(plugin:commit) = 1
Provides: libzypp(plugin:services) = 1
BuildRequires: cmake
BuildRequires: openssl-devel
%if 0%{?suse_version} >= 1130 || 0%{?fedora_version} >= 16
-BuildRequires: libudev-devel
+BuildRequires: pkgconfig(libudev)
%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
BuildRequires: pkg-config
%endif
-BuildRequires: libsolv-devel >= 0.6.19
-BuildRequires: libsolv-devel < 0.7
+BuildRequires: libsolv-devel >= 0.6.23
%if 0%{?suse_version} >= 1100
BuildRequires: libsolv-tools
%requires_eq libsolv-tools
%else
Requires: hal-devel
%endif
+Requires: cmake
%if 0%{?suse_version}
%if 0%{?suse_version} >= 1100
# Code11+
%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