%define oname zypp %define name lib%{oname} %define major 1709 %define libname %mklibname %oname %major %define develname %mklibname %oname -d Name: %name Version: 17.9.0 %define subrel 1 Release: %mkrel 1 Summary: Zypp package management library License: GPLv2+ Group: System/Libraries URL: http://en.opensuse.org/Zypp Source0: %{name}-%{version}.tar.gz Patch1: libzypp-9.1.2-buildfix.patch Patch2: 508b1201f23b44ee90dee6dbbeb3ac5f8bd4c089.patch Patch3: ea50981352bb5c7ab48663edaeb2df1ddd66953e.patch BuildRequires: asciidoc BuildRequires: boost-devel BuildRequires: cmake BuildRequires: doxygen BuildRequires: expat-devel BuildRequires: gpgme-devel BuildRequires: graphviz BuildRequires: libcurl-devel BuildRequires: libproxy-devel BuildRequires: libsolv-devel BuildRequires: libudev-devel BuildRequires: libxml2-devel BuildRequires: openssl-devel BuildRequires: rpm-devel BuildRequires: zsync %description ZYpp is a Linux software management engine with a powerful dependency resolver and a convenient package management API. %package -n %{oname}-common Group: System/Libraries Summary: Configuration files and utilities for %{name} %description -n %{oname}-common Configuration files and utilities for %{name}. %package -n %{libname} Group: System/Libraries Summary: Zypp package manager library Requires: %{oname}-common Requires: libsolv-tools %description -n %{libname} ZYpp is a Linux software management engine with a powerful dependency resolver and a convenient package management API. %package -n %{develname} Group: Development/C Summary: Development files for %{name} Provides: %{name}-devel = %{version}-%{release} Requires: %{libname} = %{version}-%{release} Requires: libsolv-devel %description -n %{develname} Header files and development libraries for %{name}. %package doc Group: Development/C Summary: Development documentation for %{name} Requires: %{name}-devel = %{version}-%{release} BuildArch: noarch %description doc API documentation for %{name} generated using by doxygen. %prep %setup -q %autopatch -p1 %build %cmake -DFEDORA:BOOL=TRUE %make_build %make_build doc %install cd build %makeinstall_std %files -n %{oname}-common %dir %{_sysconfdir}/%{oname} %config(noreplace) %{_sysconfdir}/%{oname}/%{oname}.conf %config(noreplace) %{_sysconfdir}/logrotate.d/zypp-history.lr %{_mandir}/man5/locks.5.* # not sure about the following %{_sysconfdir}/%{oname}/systemCheck %{_sysconfdir}/%{oname}/needreboot %{_bindir}/zypp-CheckAccessDeleted %{_bindir}/zypp-NameReqPrv %{_datadir}/%{oname} %{_mandir}/man1/zypp-CheckAccessDeleted.1.* %{_mandir}/man1/zypp-NameReqPrv.1.* %files -n %{libname} %{_libdir}/%{name}.so.%{major}* %files -n %{develname} %{_includedir}/%{oname} %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %{_datadir}/cmake/Modules/FindZypp.cmake %{_datadir}/cmake/Modules/ZyppCommon.cmake %files doc %doc build/doc/autodoc/html %changelog * Sat May 23 2020 neoclust <neoclust> 17.9.0-1.1.mga7 + Revision: 1587103 - Add P1 and P2 to fix CVE-2019-18900 (mga#26068) * Sat Jan 05 2019 cjw <cjw> 17.9.0-1.mga7 + Revision: 1349390 - 17.9.0 * Fri Jan 25 2013 cjw <cjw> 11.6.3-4.mga3 + Revision: 392200 - patch2: fix build with gcc 4.7 * Sat Jan 12 2013 umeabot <umeabot> 11.6.3-3.mga3 + Revision: 358755 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Dec 18 2012 tv <tv> 11.6.3-2.mga3 + Revision: 332294 - rebuild for new rpm * Sun Jul 01 2012 colin <colin> 11.6.3-1.mga3 + Revision: 266250 - New version: 11.6.3 (needed for new gcc-4.7) - Switch to libsolv from libsatsolver - Rebuild for new libudev major * Sun Jun 10 2012 tv <tv> 9.1.2-4.mga3 + Revision: 259368 - rebuild for new rpm-4.10.0 * Mon Feb 13 2012 dmorgan <dmorgan> 9.1.2-3.mga2 + Revision: 208372 - Rebuild against rpm 4.9.1.2 * Fri Sep 02 2011 tv <tv> 9.1.2-2.mga2 + Revision: 137803 - make the huge doc subpackage be noarch * Fri Jun 17 2011 cjw <cjw> 9.1.2-1.mga2 + Revision: 108554 - add BuildRequires: graphviz - imported package libzypp