Name: apt Version: 1.7.2 Release: 1%{?dist} %global forgeurl https://github.com/Debian/apt/ %global tag %{version} %forgemeta -i URL: %{forgeurl} Source: %{forgesource} Patch0: dpkg_datadir.patch License: GPLv2+ Summary: Main commandline package manager for Debian and its derivatives BuildRequires: cmake BuildRequires: docbook-style-xsl BuildRequires: doxygen BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: libdb-devel BuildRequires: perl(Dpkg) BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(gnutls) BuildRequires: pkgconfig(liblz4) BuildRequires: pkgconfig(libseccomp) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(libzstd) BuildRequires: pkgconfig(zlib) BuildRequires: po4a BuildRequires: w3m Suggests: %{name}-doc = %{version}-%{release} %description apt is the main commandline package manager for Debian and its derivatives. It provides commandline tools for searching and managing as well as querying information about packages as well as low-level access to all features provided by the libapt-pkg and libapt-inst libraries which higher-level package managers can depend upon. Included tools are: - apt-get for retrieval of packages and information about them from authenticated sources and for installation, upgrade and removal of packages together with their dependencies - apt-cache for querying available information about installed as well as installable packages - apt-cdrom to use removable media as a source for packages - apt-config as an interface to the configuration settings - apt-key as an interface to manage authentication keys - apt-extracttemplates to be used by debconf to prompt for configuration questions before installation. - apt-ftparchive creates Packages and other index files needed to publish an archive of debian packages - apt-sortpkgs is a Packages/Sources file normalizer. The libraries libapt-pkg and libapt-inst are also maintained as part of this project, alongside various additional binaries like the acquire-methods used by them. Bindings for Python (python-apt) and Perl (libapt-pkg-perl) are available as separated projects. %package libs Summary: The libraries libapt-pkg and libapt-inst Suggests: %{name}-doc = %{version}-%{release} %description libs %{summary}. %package devel Summary: Development files for libapt-pkg and libapt-inst Requires: %{name}-libs%{?_isa} = %{version}-%{release} Suggests: %{name}-doc = %{version}-%{release} %description devel %{summary}. %package doc Summary: Documentation for apt and apt-libs packages BuildArch: noarch %description doc %{summary}. %prep %forgeautosetup -p1 # Upstream considers LZMA mandatory, for now sed -i 's/LZMA REQUIRED/LZMA/' CMakeLists.txt sed -i /LZMA_INCLUDE_DIRS/d apt-pkg/CMakeLists.txt sed -i /LZMA_LIBRARIES/d apt-pkg/CMakeLists.txt %build %cmake . %make_build %install %make_install %files %license COPYING COPYING.GPL %doc AUTHORS README.md %{_bindir}/* %{_datadir}/bash-completion/ %{_datadir}/locale/*/LC_MESSAGES/apt*.mo %{_libexecdir}/* %{_mandir}/*/man[158]*/* %{_mandir}/man[158]*/* %files libs %license COPYING COPYING.GPL %doc AUTHORS README.md %{_datadir}/locale/*/LC_MESSAGES/libapt*.mo %{_libdir}/* %files devel %license COPYING COPYING.GPL %doc AUTHORS README.md %{_includedir}/* %files doc %license COPYING COPYING.GPL %doc AUTHORS README.md %{_docdir}/* %changelog * Mon Feb 18 2018 Dridi Boukelmoune - 20190120-1 - Initial spec