2007-01-10 17:50:00 +01:00
|
|
|
#
|
2010-04-07 18:27:28 +02:00
|
|
|
# spec file for package libzypp
|
2007-01-10 17:50:00 +01:00
|
|
|
#
|
2015-04-02 15:28:46 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-10 17:50:00 +01:00
|
|
|
#
|
2011-10-18 18:26:16 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-10 17:50:00 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2013-07-04 14:28:20 +02:00
|
|
|
%define force_gcc_46 0
|
2011-10-18 18:26:16 +02:00
|
|
|
|
2007-01-10 17:50:00 +01:00
|
|
|
Name: libzypp
|
2015-07-09 16:59:37 +02:00
|
|
|
Version: 15.9.0
|
2014-10-20 11:06:41 +02:00
|
|
|
Release: 0
|
|
|
|
Url: git://gitorious.org/opensuse/libzypp.git
|
2007-01-10 17:50:00 +01:00
|
|
|
Summary: Package, Patch, Pattern, and Product Management
|
2013-07-04 14:28:20 +02:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Packages
|
2014-10-20 11:06:41 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-07-11 17:26:42 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: %{name}-rpmlintrc
|
2007-04-20 01:16:38 +02:00
|
|
|
Provides: yast2-packagemanager
|
2007-01-10 17:50:00 +01:00
|
|
|
Obsoletes: yast2-packagemanager
|
2011-06-28 16:21:02 +02:00
|
|
|
|
|
|
|
# Features we provide (update doc/autoinclude/FeatureTest.doc):
|
2011-07-01 14:21:36 +02:00
|
|
|
Provides: libzypp(plugin) = 0
|
2014-09-25 18:16:12 +02:00
|
|
|
Provides: libzypp(plugin:appdata) = 0
|
2013-11-20 16:53:13 +01:00
|
|
|
Provides: libzypp(plugin:commit) = 1
|
2011-06-28 16:21:02 +02:00
|
|
|
Provides: libzypp(plugin:services) = 0
|
|
|
|
Provides: libzypp(plugin:system) = 0
|
|
|
|
Provides: libzypp(plugin:urlresolver) = 0
|
2015-03-11 12:01:01 +01:00
|
|
|
Provides: libzypp(repovarexpand) = 0
|
2011-06-28 16:21:02 +02:00
|
|
|
|
2010-03-01 01:43:27 +01:00
|
|
|
%if 0%{?suse_version}
|
2008-10-24 15:19:57 +02:00
|
|
|
Recommends: logrotate
|
2011-05-31 10:54:37 +02:00
|
|
|
# lsof is used for 'zypper ps':
|
|
|
|
Recommends: lsof
|
2011-06-06 17:11:19 +02:00
|
|
|
%endif
|
2007-03-01 22:15:26 +01:00
|
|
|
BuildRequires: cmake
|
2009-07-16 16:54:21 +02:00
|
|
|
BuildRequires: openssl-devel
|
2012-01-03 15:39:35 +01:00
|
|
|
%if 0%{?suse_version} >= 1130 || 0%{?fedora_version} >= 16
|
2010-04-27 11:52:07 +02:00
|
|
|
BuildRequires: libudev-devel
|
2011-05-26 19:14:01 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: hal-devel
|
|
|
|
%endif
|
2010-05-17 17:03:29 +02:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: dejagnu
|
|
|
|
BuildRequires: doxygen
|
2012-04-20 12:28:00 +02:00
|
|
|
%if 0%{?force_gcc_46}
|
2012-04-26 10:34:07 +02:00
|
|
|
BuildRequires: gcc46
|
|
|
|
BuildRequires: gcc46-c++
|
2012-04-16 15:14:15 +02:00
|
|
|
%else
|
2011-10-24 15:25:49 +02:00
|
|
|
BuildRequires: gcc-c++ >= 4.6
|
2012-04-16 15:14:15 +02:00
|
|
|
%endif
|
2010-05-17 17:03:29 +02:00
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: graphviz
|
2014-05-05 09:55:07 +02:00
|
|
|
BuildRequires: graphviz-gnome
|
2010-05-17 17:03:29 +02:00
|
|
|
BuildRequires: libxml2-devel
|
2012-03-19 14:20:30 +01:00
|
|
|
%if 0%{?suse_version} != 1110
|
|
|
|
# No libproxy on SLES
|
2010-12-22 16:34:28 +01:00
|
|
|
BuildRequires: libproxy-devel
|
2012-03-19 14:20:30 +01:00
|
|
|
%endif
|
2012-01-03 15:39:35 +01:00
|
|
|
|
|
|
|
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
%else
|
2011-11-07 15:59:40 +01:00
|
|
|
BuildRequires: pkg-config
|
2012-01-03 15:39:35 +01:00
|
|
|
%endif
|
2010-04-07 18:27:28 +02:00
|
|
|
|
2014-12-19 13:56:08 +01:00
|
|
|
BuildRequires: libsolv-devel >= 0.6.7
|
2011-05-19 17:06:27 +02:00
|
|
|
%if 0%{?suse_version} >= 1100
|
2014-09-24 16:07:07 +02:00
|
|
|
BuildRequires: libsolv-tools
|
2011-10-10 18:39:56 +02:00
|
|
|
%requires_eq libsolv-tools
|
2010-03-01 01:43:27 +01:00
|
|
|
%else
|
2011-10-10 18:39:56 +02:00
|
|
|
Requires: libsolv-tools
|
2010-03-01 01:43:27 +01:00
|
|
|
%endif
|
|
|
|
|
2009-02-23 23:24:01 +01:00
|
|
|
# required for testsuite, webrick
|
|
|
|
BuildRequires: ruby
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2008-02-26 11:52:16 +01:00
|
|
|
%if 0%{?suse_version}
|
2008-11-23 09:10:54 +01:00
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: expat-devel
|
|
|
|
%endif
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2011-10-18 18:26:16 +02:00
|
|
|
Requires: rpm
|
2011-09-07 13:05:51 +02:00
|
|
|
|
2008-11-23 09:10:54 +01:00
|
|
|
%if 0%{?suse_version}
|
2010-05-17 17:03:29 +02:00
|
|
|
BuildRequires: rpm-devel
|
2008-03-14 18:05:48 +01:00
|
|
|
%endif
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2011-08-01 18:20:37 +02:00
|
|
|
%if 0%{?fedora_version} || 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600
|
2010-05-17 17:03:29 +02:00
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: popt-devel
|
|
|
|
BuildRequires: rpm-devel
|
2008-02-26 11:52:16 +01:00
|
|
|
%endif
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2008-02-26 11:52:16 +01:00
|
|
|
%if 0%{?mandriva_version}
|
2008-03-14 18:05:48 +01:00
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: librpm-devel
|
2008-02-26 11:52:16 +01:00
|
|
|
%endif
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2008-02-26 11:52:16 +01:00
|
|
|
%if 0%{?suse_version}
|
2007-06-21 22:40:55 +02:00
|
|
|
Requires: gpg2
|
2008-02-26 11:52:16 +01:00
|
|
|
%else
|
2010-03-01 01:43:27 +01:00
|
|
|
Requires: gnupg2
|
2008-02-26 11:52:16 +01:00
|
|
|
%endif
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2011-12-08 12:27:09 +01:00
|
|
|
%define min_curl_version 7.19.4
|
2010-03-01 01:43:27 +01:00
|
|
|
%if 0%{?suse_version}
|
2011-05-19 17:06:27 +02:00
|
|
|
%if 0%{?suse_version} >= 1100
|
|
|
|
# Code11+
|
|
|
|
BuildRequires: libcurl-devel >= %{min_curl_version}
|
|
|
|
Requires: libcurl4 >= %{min_curl_version}
|
2010-03-01 01:43:27 +01:00
|
|
|
%else
|
2011-05-19 17:06:27 +02:00
|
|
|
# Code10
|
|
|
|
BuildRequires: curl-devel
|
2010-03-01 01:43:27 +01:00
|
|
|
%endif
|
2011-05-19 17:06:27 +02:00
|
|
|
%else
|
|
|
|
# Other distros (Fedora)
|
2009-12-04 12:10:16 +01:00
|
|
|
BuildRequires: libcurl-devel >= %{min_curl_version}
|
2011-05-19 17:06:27 +02:00
|
|
|
Requires: libcurl >= %{min_curl_version}
|
|
|
|
%endif
|
2007-01-10 17:50:00 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Package, Patch, Pattern, and Product Management
|
|
|
|
|
|
|
|
%package devel
|
2014-10-20 11:06:41 +02:00
|
|
|
Summary: Package, Patch, Pattern, and Product Management - developers files
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: yast2-packagemanager-devel
|
|
|
|
Obsoletes: yast2-packagemanager-devel
|
2013-07-04 14:28:20 +02:00
|
|
|
Requires: boost-devel
|
|
|
|
Requires: bzip2
|
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libstdc++-devel
|
2010-05-17 17:03:29 +02:00
|
|
|
Requires: libxml2-devel
|
2013-07-04 14:28:20 +02:00
|
|
|
Requires: libzypp = %{version}
|
2010-05-17 17:03:29 +02:00
|
|
|
Requires: openssl-devel
|
2013-07-04 14:28:20 +02:00
|
|
|
Requires: popt-devel
|
2010-05-17 17:03:29 +02:00
|
|
|
Requires: rpm-devel
|
|
|
|
Requires: zlib-devel
|
2012-01-03 16:16:07 +01:00
|
|
|
%if 0%{?suse_version} >= 1130 || 0%{?fedora_version} >= 16
|
2010-04-27 11:52:07 +02:00
|
|
|
Requires: libudev-devel
|
2011-05-26 19:14:01 +02:00
|
|
|
%else
|
|
|
|
Requires: hal-devel
|
|
|
|
%endif
|
2009-10-27 16:37:02 +01:00
|
|
|
Requires: cmake
|
2010-03-01 01:43:27 +01:00
|
|
|
%if 0%{?suse_version}
|
2011-05-19 17:06:27 +02:00
|
|
|
%if 0%{?suse_version} >= 1100
|
|
|
|
# Code11+
|
2011-10-18 18:26:16 +02:00
|
|
|
Requires: libcurl-devel >= %{min_curl_version}
|
2011-05-19 17:06:27 +02:00
|
|
|
%else
|
|
|
|
# Code10
|
2011-10-18 18:26:16 +02:00
|
|
|
Requires: curl-devel
|
2011-05-19 17:06:27 +02:00
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
# Other distros (Fedora)
|
2011-10-18 18:26:16 +02:00
|
|
|
Requires: libcurl-devel >= %{min_curl_version}
|
2011-05-19 17:06:27 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} >= 1100
|
2011-10-10 18:39:56 +02:00
|
|
|
%requires_ge libsolv-devel
|
2010-03-01 01:43:27 +01:00
|
|
|
%else
|
2011-10-10 18:39:56 +02:00
|
|
|
Requires: libsolv-devel
|
2010-03-01 01:43:27 +01:00
|
|
|
%endif
|
2014-10-20 11:06:41 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Package, Patch, Pattern, and Product Management - developers files
|
|
|
|
|
|
|
|
%package devel-doc
|
2007-01-10 17:50:00 +01:00
|
|
|
Summary: Package, Patch, Pattern, and Product Management - developers files
|
2014-10-20 11:06:41 +02:00
|
|
|
Group: Documentation/HTML
|
2007-01-10 17:50:00 +01:00
|
|
|
|
2014-10-20 11:06:41 +02:00
|
|
|
%description devel-doc
|
2007-01-10 17:50:00 +01:00
|
|
|
Package, Patch, Pattern, and Product Management - developers files
|
|
|
|
|
|
|
|
%prep
|
2007-03-01 22:15:26 +01:00
|
|
|
%setup -q
|
2007-01-10 17:50:00 +01:00
|
|
|
|
|
|
|
%build
|
2007-03-01 22:15:26 +01:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2012-04-20 12:28:00 +02:00
|
|
|
%if 0%{?force_gcc_46}
|
2012-04-16 15:14:15 +02:00
|
|
|
export CC=gcc-4.6
|
|
|
|
export CXX=g++-4.6
|
|
|
|
%endif
|
2008-05-28 17:00:23 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2010-05-17 17:03:29 +02:00
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
2011-05-27 14:17:55 +02:00
|
|
|
unset TRANSLATION_SET
|
2012-03-19 13:15:06 +01:00
|
|
|
unset EXTRA_CMAKE_OPTIONS
|
2014-09-23 17:30:55 +02:00
|
|
|
# Same codebase, but SLES may use it's own translation set.
|
|
|
|
# suse_version
|
|
|
|
# 1110 SLES11
|
|
|
|
# 1315 SLES12
|
2014-09-18 15:47:38 +02:00
|
|
|
%if 0%{?suse_version} == 1110 || 0%{?suse_version} == 1315
|
2015-05-06 11:17:15 +02:00
|
|
|
if [ -f ../po/sle-zypp-po.tar.bz2 ]; then
|
2011-05-27 14:17:55 +02:00
|
|
|
export TRANSLATION_SET=sle-zypp
|
|
|
|
fi
|
|
|
|
%endif
|
2014-09-18 15:47:38 +02:00
|
|
|
# No libproxy on SLE11
|
|
|
|
%if 0%{?suse_version} == 1110
|
|
|
|
export EXTRA_CMAKE_OPTIONS="-DDISABLE_LIBPROXY=ON"
|
|
|
|
%endif
|
|
|
|
|
2010-05-17 17:03:29 +02:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
2008-03-14 18:05:48 +01:00
|
|
|
-DDOC_INSTALL_DIR=%{_docdir} \
|
2007-04-04 20:54:31 +02:00
|
|
|
-DLIB=%{_lib} \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_SKIP_RPATH=1 \
|
2011-05-27 14:17:55 +02:00
|
|
|
-DUSE_TRANSLATION_SET=${TRANSLATION_SET:-zypp} \
|
2012-03-19 13:15:06 +01:00
|
|
|
${EXTRA_CMAKE_OPTIONS} \
|
2007-04-04 20:54:31 +02:00
|
|
|
..
|
2010-05-17 17:03:29 +02:00
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
|
|
|
make -C doc/autodoc %{?_smp_mflags}
|
|
|
|
make -C po %{?_smp_mflags} translations
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2009-02-27 16:14:30 +01:00
|
|
|
%if 0%{?run_testsuite}
|
2010-05-17 17:03:29 +02:00
|
|
|
make -C tests %{?_smp_mflags}
|
2009-02-27 16:14:30 +01:00
|
|
|
pushd tests
|
2009-03-07 11:42:29 +01:00
|
|
|
LD_LIBRARY_PATH=$PWD/../zypp:$LD_LIBRARY_PATH ctest .
|
2009-02-27 16:14:30 +01:00
|
|
|
popd
|
|
|
|
%endif
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2007-01-10 17:50:00 +01:00
|
|
|
#make check
|
|
|
|
|
|
|
|
%install
|
2008-03-14 18:05:48 +01:00
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
2007-03-01 22:15:26 +01:00
|
|
|
cd build
|
2007-01-10 17:50:00 +01:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2007-03-01 22:15:26 +01:00
|
|
|
make -C doc/autodoc install DESTDIR=$RPM_BUILD_ROOT
|
2011-08-01 18:20:37 +02:00
|
|
|
%if 0%{?fedora_version} || 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600
|
2011-04-14 10:27:51 +02:00
|
|
|
ln -s %{_sysconfdir}/yum.repos.d $RPM_BUILD_ROOT%{_sysconfdir}/zypp/repos.d
|
|
|
|
%else
|
2010-05-17 17:03:29 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zypp/repos.d
|
2011-04-14 10:27:51 +02:00
|
|
|
%endif
|
2010-05-17 17:03:29 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zypp/services.d
|
2015-05-21 13:20:45 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zypp/systemCheck.d
|
2012-04-16 15:14:15 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zypp/vendors.d
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zypp/multiversion.d
|
2010-05-17 17:03:29 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/zypp
|
2010-10-07 13:45:46 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/zypp/plugins
|
2014-09-25 18:16:12 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/zypp/plugins/appdata
|
2010-10-19 16:10:43 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/zypp/plugins/commit
|
2010-10-07 13:45:46 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/zypp/plugins/services
|
2010-10-19 16:10:43 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/zypp/plugins/system
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/zypp/plugins/urlresolver
|
2010-05-17 17:03:29 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_var}/lib/zypp
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_var}/log/zypp
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_var}/cache/zypp
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2007-03-01 22:15:26 +01:00
|
|
|
make -C po install DESTDIR=$RPM_BUILD_ROOT
|
2007-09-11 00:44:02 +02:00
|
|
|
# Create filelist with translations
|
2007-03-01 22:15:26 +01:00
|
|
|
cd ..
|
2007-01-10 17:50:00 +01:00
|
|
|
%{find_lang} zypp
|
|
|
|
|
|
|
|
%post
|
2010-03-01 01:43:27 +01:00
|
|
|
/sbin/ldconfig
|
2008-02-26 11:52:16 +01:00
|
|
|
if [ -f /var/cache/zypp/zypp.db ]; then rm /var/cache/zypp/zypp.db; fi
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2008-05-26 19:04:04 +02:00
|
|
|
# convert old lock file to new
|
|
|
|
# TODO make this a separate file?
|
|
|
|
# TODO run the sript only when updating form pre-11.0 libzypp versions
|
2010-05-17 17:03:29 +02:00
|
|
|
LOCKSFILE=%{_sysconfdir}/zypp/locks
|
|
|
|
OLDLOCKSFILE=%{_sysconfdir}/zypp/locks.old
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2008-05-26 19:04:04 +02:00
|
|
|
is_old(){
|
2008-12-07 21:57:57 +01:00
|
|
|
# if no such file, exit with false (1 in bash)
|
|
|
|
test -f ${LOCKSFILE} || return 1
|
2008-05-26 19:04:04 +02:00
|
|
|
TEMP_FILE=`mktemp`
|
|
|
|
cat ${LOCKSFILE} | sed '/^\#.*/ d;/.*:.*/d;/^[^[a-zA-Z\*?.0-9]*$/d' > ${TEMP_FILE}
|
|
|
|
if [ -s ${TEMP_FILE} ]
|
|
|
|
then
|
|
|
|
RES=0
|
|
|
|
else
|
|
|
|
RES=1
|
|
|
|
fi
|
|
|
|
rm -f ${TEMP_FILE}
|
|
|
|
return ${RES}
|
|
|
|
}
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2008-05-26 19:04:04 +02:00
|
|
|
append_new_lock(){
|
|
|
|
case "$#" in
|
|
|
|
1 )
|
|
|
|
echo "
|
|
|
|
solvable_name: $1
|
|
|
|
match_type: glob
|
|
|
|
" >> ${LOCKSFILE}
|
|
|
|
;;
|
|
|
|
2 ) #TODO version
|
|
|
|
echo "
|
|
|
|
solvable_name: $1
|
|
|
|
match_type: glob
|
|
|
|
version: $2
|
|
|
|
" >> ${LOCKSFILE}
|
|
|
|
;;
|
|
|
|
3 ) #TODO version
|
|
|
|
echo "
|
|
|
|
solvable_name: $1
|
|
|
|
match_type: glob
|
|
|
|
version: $2 $3
|
|
|
|
" >> ${LOCKSFILE}
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2008-05-26 19:04:04 +02:00
|
|
|
die() {
|
|
|
|
echo $1
|
|
|
|
exit 1
|
|
|
|
}
|
2010-03-01 01:43:27 +01:00
|
|
|
|
2008-05-26 19:04:04 +02:00
|
|
|
if is_old ${LOCKSFILE}
|
|
|
|
then
|
|
|
|
mv -f ${LOCKSFILE} ${OLDLOCKSFILE} || die "cannot backup old locks"
|
|
|
|
cat ${OLDLOCKSFILE}| sed "/^\#.*/d"| while read line
|
|
|
|
do
|
|
|
|
append_new_lock $line
|
|
|
|
done
|
|
|
|
fi
|
2007-01-10 17:50:00 +01:00
|
|
|
|
2010-03-01 01:43:27 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-10 17:50:00 +01:00
|
|
|
|
|
|
|
%clean
|
2008-03-14 18:05:48 +01:00
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
2007-01-10 17:50:00 +01:00
|
|
|
|
|
|
|
%files -f zypp.lang
|
|
|
|
%defattr(-,root,root)
|
2010-05-17 17:03:29 +02:00
|
|
|
%dir %{_sysconfdir}/zypp
|
2011-08-01 18:20:37 +02:00
|
|
|
%if 0%{?fedora_version} || 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600
|
2011-04-14 10:27:51 +02:00
|
|
|
%{_sysconfdir}/zypp/repos.d
|
|
|
|
%else
|
2010-05-17 17:03:29 +02:00
|
|
|
%dir %{_sysconfdir}/zypp/repos.d
|
2011-04-14 10:27:51 +02:00
|
|
|
%endif
|
2010-05-17 17:03:29 +02:00
|
|
|
%dir %{_sysconfdir}/zypp/services.d
|
2015-05-21 13:20:45 +02:00
|
|
|
%dir %{_sysconfdir}/zypp/systemCheck.d
|
2012-04-16 15:14:15 +02:00
|
|
|
%dir %{_sysconfdir}/zypp/vendors.d
|
|
|
|
%dir %{_sysconfdir}/zypp/multiversion.d
|
2010-05-17 17:03:29 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/zypp/zypp.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/zypp/systemCheck
|
2008-10-24 15:19:57 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/zypp-history.lr
|
2008-09-25 13:18:59 +02:00
|
|
|
%dir %{_var}/lib/zypp
|
|
|
|
%dir %{_var}/log/zypp
|
|
|
|
%dir %{_var}/cache/zypp
|
2010-05-17 17:03:29 +02:00
|
|
|
%{_prefix}/lib/zypp
|
|
|
|
%{_datadir}/zypp
|
|
|
|
%{_bindir}/*
|
2007-09-11 00:44:02 +02:00
|
|
|
%{_libdir}/libzypp*so.*
|
2014-10-05 01:32:20 +02:00
|
|
|
%doc %{_mandir}/man1/*.1.*
|
|
|
|
%doc %{_mandir}/man5/*.5.*
|
2007-01-10 17:50:00 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2007-03-01 22:15:26 +01:00
|
|
|
%{_libdir}/libzypp.so
|
2010-05-17 17:03:29 +02:00
|
|
|
%{_includedir}/zypp
|
|
|
|
%{_datadir}/cmake/Modules/*
|
2007-01-10 17:50:00 +01:00
|
|
|
%{_libdir}/pkgconfig/libzypp.pc
|
2007-12-02 15:09:03 +01:00
|
|
|
|
2014-10-20 11:06:41 +02:00
|
|
|
%files devel-doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_docdir}/%{name}
|
|
|
|
|
2007-02-27 13:42:36 +01:00
|
|
|
%changelog
|