Sync from SUSE:ALP:Source:Standard:1.0 zypper revision 6d931832f87084dc1237c978b720df4f

This commit is contained in:
Adrian Schröter 2024-02-27 11:42:15 +01:00
commit 5d6fc28691
5 changed files with 7216 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
zypper-1.14.68.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

1
zypper-rpmlintrc Normal file
View File

@ -0,0 +1 @@
addFilter(".*devel-file-in-non-devel-package.*")

6941
zypper.changes Normal file

File diff suppressed because it is too large Load Diff

248
zypper.spec Normal file
View File

@ -0,0 +1,248 @@
#
# spec file for package zypper
#
# Copyright (c) 2023 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: zypper
BuildRequires: augeas-devel >= 1.10.0
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel >= 1.33.1
%endif
BuildRequires: cmake >= 3.1
BuildRequires: gcc-c++ >= 7
BuildRequires: gettext-devel >= 0.15
BuildRequires: libzypp-devel >= 17.31.7
BuildRequires: readline-devel >= 5.1
BuildRequires: libxml2-devel
Requires: procps
%if 0%{?suse_version}
Requires: libaugeas0 >= 1.10.0
%requires_ge libzypp
Recommends: logrotate
Recommends: zypper-log
%else
Requires: augeas >= 1.10.0
%endif
# required for documentation
BuildRequires: rubygem(asciidoctor)
# TUI library which is built and shipped with libzypp-devel
BuildRequires: libzypp-tui-devel >= 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Command line software manager using libzypp
License: GPL-2.0-or-later
Group: System/Packages
Version: 1.14.68
Release: 0
Source: %{name}-%{version}.tar.bz2
Source1: %{name}-rpmlintrc
Url: https://github.com/openSUSE/zypper
Provides: y2pmsh
Obsoletes: y2pmsh
Provides: zypper(auto-agree-with-product-licenses)
Provides: zypper(oldpackage)
Provides: zypper(updatestack-only)
Provides: zypper(purge-kernels)
%description
Zypper is a command line tool for managing software. It can be used to add
package repositories, search for packages, install, remove, or update packages,
install patches, hardware drivers, verify dependencies, and more.
Zypper can be used interactively or non-interactively by user, from scripts,
or front-ends.
Authors:
--------
Jan Kupec <jkupec@suse.cz>
Michael Andres <ma@suse.de>
Duncan Mac-Vicar <dmacvicar@suse.de>
Martin Vidner <mvidner@suse.cz>
Josef Reidinger <jreidinger@suse.cz>
%package log
Requires: /bin/bash
Requires: /usr/bin/awk
Requires: /usr/bin/grep
BuildArch: noarch
Summary: CLI for accessing the zypper logfile
Group: System/Packages
%description -n zypper-log
CLI for accessing the zypper logfile
%package aptitude
Summary: aptitude compatibility with zypper
Group: System/Packages
Requires: perl
Requires: zypper
BuildArch: noarch
%description aptitude
provides compatibility to Debian's aptitude command using zypper
Authors:
--------
Bernhard M. Wiedemann <bernhard+aptitude4zypp lsmod de>
%package needs-restarting
Summary: needs-restarting compatibility with zypper
Group: System/Packages
Requires: zypper
%if 0%{?suse_version}
Supplements: zypper
%endif
BuildArch: noarch
%description needs-restarting
provides compatibility to YUM needs-restarting command using zypper
Authors:
--------
Michael Andres <ma@suse.de>
%prep
%setup -q
%build
mkdir -p build
cd build
CMAKE_FLAGS=
%if 0%{?suse_version} == 1500 && 0%{?sle_version} && 0%{?sle_version} <= 150100
# Fixed in 1.14.34: Do not allow the abbreviation of cli arguments (bsc#1164543)
# On SLE15/Leap 15.0 and 15.1 we will stay bug-compatible and accept the
# abbreviations in order not to break tools. In 15.2 they must be fixed.
CMAKE_FLAGS="$CMAKE_FLAGS -DLEGACY_ENABLE_LONGOPT_ABBREV=1"
%endif
cmake $CMAKE_FLAGS \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DSYSCONFDIR=%{_sysconfdir} \
-DMANDIR=%{_mandir} \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DCMAKE_C_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_BUILD_TESTS=ON \
..
#gettextize -f
make %{?_smp_mflags}
%check
pushd build/tests
ctest --output-on-failure .
popd
%install
cd build
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/zypper
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/zypper/commands
# yzpper symlink
ln -s zypper $RPM_BUILD_ROOT%{_bindir}/yzpper
# Create filelist with translations
cd ..
%{find_lang} zypper
%{__install} -d -m755 $RPM_BUILD_ROOT%{_var}/log
touch $RPM_BUILD_ROOT%{_var}/log/zypper.log
%if %{defined _distconfdir}
# Move logratate files form /etc/logrotate.d to /usr/etc/logrotate.d
mkdir -p %{buildroot}/%{_distconfdir}/logrotate.d
mv %{buildroot}/%{_sysconfdir}/logrotate.d/zypper.lr %{buildroot}%{_distconfdir}/logrotate.d
mv %{buildroot}/%{_sysconfdir}/logrotate.d/zypp-refresh.lr %{buildroot}%{_distconfdir}/logrotate.d
%endif
%clean
rm -rf "$RPM_BUILD_ROOT"
%if %{defined _distconfdir}
%pre
# Prepare for migration to /usr/etc; save any old .rpmsave
for i in logrotate.d/zypper.lr logrotate.d/zypp-refresh.lr; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
done
%endif
%if %{defined _distconfdir}
%posttrans
# Migration to /usr/etc, restore just created .rpmsave
for i in logrotate.d/zypper.lr logrotate.d/zypp-refresh.lr; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
done
%endif
%files -f zypper.lang
%defattr(-,root,root)
%if 0%{?suse_version} >= 1500
%license COPYING
%endif
%config(noreplace) %{_sysconfdir}/zypp/zypper.conf
%if %{defined _distconfdir}
%{_distconfdir}/logrotate.d/zypper.lr
%{_distconfdir}/logrotate.d/zypp-refresh.lr
%else
%config(noreplace) %{_sysconfdir}/logrotate.d/zypper.lr
%config(noreplace) %{_sysconfdir}/logrotate.d/zypp-refresh.lr
%endif
%{_datadir}/bash-completion/completions/zypper
%{_bindir}/zypper
%{_bindir}/yzpper
%{_bindir}/installation_sources
%{_sbindir}/zypp-refresh
%dir %{_datadir}/zypper
%{_datadir}/zypper/zypper.aug
%dir %{_datadir}/zypper/xml
%{_datadir}/zypper/xml/xmlout.rnc
%{_prefix}/lib/zypper
%doc %{_mandir}/man8/zypper.8*
%doc %{_mandir}/man8/zypp-refresh.8*
%doc %dir %{_datadir}/doc/packages/zypper
%doc %{_datadir}/doc/packages/zypper/HACKING
# declare ownership of the log file but prevent
# it from being erased by rpm -e
%ghost %config(noreplace) %attr (640,root,root) %{_var}/log/zypper.log
%files log
%defattr(-,root,root)
%{_sbindir}/zypper-log
%doc %{_mandir}/man8/zypper-log.8*
%files aptitude
%defattr(-,root,root)
%{_bindir}/aptitude
%{_bindir}/apt-get
%{_bindir}/apt
%dir %{_sysconfdir}/zypp/apt-packagemap.d/
%config(noreplace) %{_sysconfdir}/zypp/apt-packagemap.d/*
%files needs-restarting
%defattr(-,root,root)
%{_bindir}/needs-restarting
%doc %{_mandir}/man1/needs-restarting.1*
%changelog