#
# spec file for package libzypp
#
-# Copyright (c) 2005-2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2005-2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-# norootforbuild
+%define force_gcc_46 0
Name: @PACKAGE@
-License: GPL-2.0+
-Group: System/Packages
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Package, Patch, Pattern, and Product Management
+License: GPL-2.0+
+Group: System/Packages
Version: @VERSION@
-Release: 1
+Release: 0
Source: %{name}-%{version}.tar.bz2
Source1: %{name}-rpmlintrc
Provides: yast2-packagemanager
# Features we provide (update doc/autoinclude/FeatureTest.doc):
Provides: libzypp(plugin) = 0
-Provides: libzypp(plugin:commit) = 0
+Provides: libzypp(plugin:commit) = 1
Provides: libzypp(plugin:services) = 0
Provides: libzypp(plugin:system) = 0
Provides: libzypp(plugin:urlresolver) = 0
BuildRequires: boost-devel
BuildRequires: dejagnu
BuildRequires: doxygen
+%if 0%{?force_gcc_46}
+BuildRequires: gcc46
+BuildRequires: gcc46-c++
+%else
BuildRequires: gcc-c++ >= 4.6
+%endif
BuildRequires: gettext-devel
BuildRequires: graphviz
BuildRequires: libxml2-devel
+%if 0%{?suse_version} != 1110
+# No libproxy on SLES
BuildRequires: libproxy-devel
+%endif
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: pkgconfig
BuildRequires: pkg-config
%endif
-BuildRequires: libsolv-devel
+BuildRequires: libsolv-devel >= 0.4.1
%if 0%{?suse_version} >= 1100
%requires_eq libsolv-tools
%else
%if 0%{?suse_version}
BuildRequires: rpm-devel
-Requires: /usr/bin/uuidgen
-%if 0%{?suse_version} > 1020
-BuildRequires: hicolor-icon-theme
-%endif
%endif
%if 0%{?fedora_version} || 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600
%if 0%{?mandriva_version}
BuildRequires: glib2-devel
BuildRequires: librpm-devel
-# uuidgen
-Requires: e2fsprogs
%endif
%if 0%{?suse_version}
Ladislav Slezak <lslezak@suse.cz>
%package devel
-License: GPL-2.0+
-Requires: libzypp = %{version}
+Requires: boost-devel
+Requires: bzip2
+Requires: glibc-devel
+Requires: libstdc++-devel
Requires: libxml2-devel
+Requires: libzypp = %{version}
Requires: openssl-devel
+Requires: popt-devel
Requires: rpm-devel
-Requires: glibc-devel
Requires: zlib-devel
-Requires: bzip2
-Requires: popt-devel
-Requires: boost-devel
-Requires: libstdc++-devel
%if 0%{?suse_version} >= 1130 || 0%{?fedora_version} >= 16
Requires: libudev-devel
%else
%build
mkdir build
cd build
+%if 0%{?force_gcc_46}
+export CC=gcc-4.6
+export CXX=g++-4.6
+%endif
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
unset TRANSLATION_SET
+unset EXTRA_CMAKE_OPTIONS
# SLE11-* might want its own translation set:
%if 0%{?suse_version} == 1110
if [ -f ../po/sle-zypp-po.tar.bz ]; then
export TRANSLATION_SET=sle-zypp
+ export EXTRA_CMAKE_OPTIONS="-DDISABLE_LIBPROXY=ON"
fi
%endif
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=1 \
-DUSE_TRANSLATION_SET=${TRANSLATION_SET:-zypp} \
+ ${EXTRA_CMAKE_OPTIONS} \
..
make %{?_smp_mflags} VERBOSE=1
make -C doc/autodoc %{?_smp_mflags}
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/vendors.d
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zypp/multiversion.d
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/zypp
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/zypp/plugins
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/zypp/plugins/commit
%dir %{_sysconfdir}/zypp/repos.d
%endif
%dir %{_sysconfdir}/zypp/services.d
+%dir %{_sysconfdir}/zypp/vendors.d
+%dir %{_sysconfdir}/zypp/multiversion.d
%config(noreplace) %{_sysconfdir}/zypp/zypp.conf
%config(noreplace) %{_sysconfdir}/zypp/systemCheck
%config(noreplace) %{_sysconfdir}/logrotate.d/zypp-history.lr