diff --git a/sources b/sources index e96c468..fc4c10e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zypper-1.14.94.tar.gz) = 579f91def0c0e79ba81fe73341302ba1a8942a9878d2305ca11fb0a7747936612ed6eb91c68e6a0199687fd06ac0b9dc2fbae5dd9b895e484aa204b2b519dc2e +SHA512 (zypper-1.14.27.tar.gz) = cb5115c57b32bfed06ffd5be13ddc463457161f132ff44270377bfa047e858ca156fb057b19e650d5c211f8496786060e3c2e8237d19266a34af8f168a5ef2fc diff --git a/zypper.spec b/zypper.spec index 472978a..21ce278 100644 --- a/zypper.spec +++ b/zypper.spec @@ -1,21 +1,17 @@ -# Force out of source build -%undefine __cmake_in_source_build - -%global min_libzypp_ver 17.37.12 +%global min_libzypp_ver 17.11.0 Name: zypper -Version: 1.14.94 -Release: 2%{?dist} +Version: 1.14.27 +Release: 1%{?dist} Summary: Command line package manager using libzypp -# Automatically converted from old format: GPLv2+ - review is highly recommended. -License: GPL-2.0-or-later +License: GPLv2+ URL: http://en.opensuse.org/Portal:Zypper Source0: https://github.com/openSUSE/zypper/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: %{_bindir}/asciidoctor BuildRequires: %{_bindir}/xsltproc -BuildRequires: cmake >= 3.5 +BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: perl-generators @@ -27,6 +23,7 @@ BuildRequires: readline-devel BuildRequires: libxml2-devel BuildRequires: libzypp-devel >= %{min_libzypp_ver} Requires: libzypp%{?_isa} >= %{min_libzypp_ver} +Requires: procps # Blech, apparently we don't want bash-completion always... Cf. rhbz#1652183 Recommends: bash-completion @@ -39,8 +36,6 @@ Recommends: zypper-log Provides: zypper(oldpackage) Provides: zypper(updatestack-only) Provides: zypper(auto-agree-with-product-licenses) -Provides: zypper(purge-kernels) -Provides: zypper(include-all-archs) %description @@ -62,6 +57,7 @@ accessing the Zypper log file. Summary: apt/aptitude CLI compatibility interface for Zypper Provides: %{name}-apt = %{version}-%{release} Requires: %{name} = %{version}-%{release} +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Enhances: zypper BuildArch: noarch @@ -85,12 +81,15 @@ find -type f -exec sed -i -e "s|\${CMAKE_INSTALL_PREFIX}/lib/\${PACKAGE}|\${CMAK find -type f -exec sed -i -e "s|\${INSTALL_PREFIX}/share/doc/packages/\${PACKAGE}|\${INSTALL_PREFIX}/share/doc/\${PACKAGE}|g" {} ';' %build -%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDOC_INSTALL_DIR=%{_docdir} -DENABLE_BUILD_TESTS=ON -DENABLE_BUILD_TRANS=ON -%cmake_build +%cmake . -B"%{_vpath_builddir}" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDOC_INSTALL_DIR=%{_docdir} -DENABLE_BUILD_TESTS=ON -DENABLE_BUILD_TRANS=ON +%make_build -C %{_vpath_builddir} +%make_build -C %{_vpath_builddir}/po translations +%make_build -C %{_vpath_builddir}/tests %install -%cmake_install +%make_install -C %{_vpath_builddir} +%make_install -C %{_vpath_builddir}/po mkdir -p %{buildroot}%{_libexecdir}/zypper/commands @@ -107,11 +106,13 @@ ln -sf zypp-aptitude %{buildroot}%{_bindir}/zypp-apt-get rm %{buildroot}%{_bindir}/apt ln -sf zypp-aptitude %{buildroot}%{_bindir}/zypp-apt -%if "%{_sbindir}" != "/usr/sbin" -# If sbin-bin merge, move everything accordingly -mv %{buildroot}%{_prefix}/sbin/* %{buildroot}%{_sbindir} -rmdir %{buildroot}%{_prefix}/sbin -%endif +# Fix shebang for zypper-log +sed -e "s|/usr/bin/env python|/usr/bin/python3|g" -i %{buildroot}%{_sbindir}/zypper-log + +# Move the bash completion file +mkdir -p %{buildroot}%{_datadir}/bash-completion/completions +mv %{buildroot}%{_sysconfdir}/bash_completion.d/zypper.sh %{buildroot}%{_datadir}/bash-completion/completions/zypper +rm -rf %{buildroot}%{_sysconfdir}/bash_completion.d/ # Remove conflicting man page and rename needs-restarting rm %{buildroot}%{_mandir}/man1/needs-restarting.1* @@ -119,7 +120,7 @@ mv %{buildroot}%{_bindir}/needs-restarting %{buildroot}%{_bindir}/zypp-needs-res %check pushd %{_vpath_builddir}/tests -ctest -VV --output-on-failure . +ctest -VV . popd %files -f %{name}.lang @@ -156,115 +157,6 @@ popd %changelog -* Fri Jul 17 2026 Fedora Release Engineering - 1.14.94-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild - -* Fri Jan 16 2026 Neal Gompa - 1.14.94-1 -- Update to 1.14.94 - -* Fri Jul 25 2025 Fedora Release Engineering - 1.14.88-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Wed Mar 19 2025 Neal Gompa - 1.14.88-1 -- Rebase to 1.14.88 - -* Sun Jan 19 2025 Fedora Release Engineering - 1.14.73-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Fri Jul 26 2024 Miroslav Suchý - 1.14.73-3 -- convert license to SPDX - -* Sat Jul 20 2024 Fedora Release Engineering - 1.14.73-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Wed Jun 05 2024 Neal Gompa - 1.14.73-1 -- Update to 1.14.73 - -* Sun Apr 14 2024 Neal Gompa - 1.14.68-2 -- Rebuild for libzypp-tui soname fix - -* Mon Mar 04 2024 Neal Gompa - 1.14.68-1 -- Update to 1.14.68 - -* Sat Jan 27 2024 Fedora Release Engineering - 1.14.59-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sat Jul 22 2023 Fedora Release Engineering - 1.14.59-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Thu Mar 09 2023 Neal Gompa - 1.14.59-1 -- Update to 1.14.59 - -* Sat Jan 21 2023 Fedora Release Engineering - 1.14.55-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Fri Sep 02 2022 Neal Gompa - 1.14.55-1 -- Update to 1.14.55 (#1932773) - -* Sat Jul 23 2022 Fedora Release Engineering - 1.14.42-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Wed Jun 01 2022 Jitka Plesnikova - 1.14.42-5 -- Perl 5.36 rebuild - -* Sat Jan 22 2022 Fedora Release Engineering - 1.14.42-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Jul 23 2021 Fedora Release Engineering - 1.14.42-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri May 21 2021 Jitka Plesnikova - 1.14.42-2 -- Perl 5.34 rebuild - -* Thu Feb 11 2021 Neal Gompa - 1.14.42-1 -- Update to 1.14.42 (#1823433) - -* Thu Jan 28 2021 Fedora Release Engineering - 1.14.37-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Sat Aug 08 2020 Neal Gompa - 1.14.37-1 -- Update to 1.14.37 (#1823433) - -* Sat Aug 01 2020 Fedora Release Engineering - 1.14.35-5 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Wed Jul 29 2020 Fedora Release Engineering - 1.14.35-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Thu Jun 25 2020 Jitka Plesnikova - 1.14.35-3 -- Perl 5.32 rebuild - -* Fri Mar 20 2020 Neal Gompa - 1.14.35-2 -- Backport fixup commit for building with C++17 - -* Fri Mar 20 2020 Neal Gompa - 1.14.35-1 -- Update to 1.14.35 (#1805837) - -* Sat Mar 07 2020 Neal Gompa - 1.14.34-1 -- Update to 1.14.34 - -* Fri Jan 31 2020 Fedora Release Engineering - 1.14.33-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Mon Jan 27 2020 Neal Gompa - 1.14.33-1 -- Update to 1.14.33 (#1777955) - -* Tue Nov 12 2019 Neal Gompa - 1.14.32-1 -- Update to 1.14.32 (#1747529) - -* Tue Aug 27 2019 Neal Gompa - 1.14.29-1 -- Update to 1.14.29 (#1719278) - -* Sat Jul 27 2019 Fedora Release Engineering - 1.14.27-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Thu May 30 2019 Jitka Plesnikova - 1.14.27-3 -- Perl 5.30 rebuild - -* Tue May 28 2019 Björn Esser - 1.14.27-2 -- Rebuilt (libzypp) - * Mon Mar 25 2019 Björn Esser - 1.14.27-1 - Rebase to 1.14.27 (#1680605)