# We ship a .pc file but don't want to have a dep on pkg-config. We # strip the automatically generated dep here and instead co-own the # directory. %global __requires_exclude pkg-config %global gitversion 28cb22e %global gitdate 20130626 %global libmajor 8 %global libversion %{libmajor}.0.2 Name: pacman Version: 4.1.2 Release: 1.%{gitdate}git%{gitversion}%{?dist} Source: https://projects.archlinux.org/%{name}.git/snapshot/%{name}-%{gitversion}.tar.gz Url: https://www.archlinux.org/pacman License: GPLv2+ Summary: Package manager for the Arch distribution # mirrorlist retrieved from https://www.archlinux.org/mirrorlist/all # with mirrors.kernel.org uncommented Source1: mirrorlist BuildRequires: libtool BuildRequires: m4 BuildRequires: gettext-devel BuildRequires: asciidoc BuildRequires: doxygen BuildRequires: libarchive-devel BuildRequires: gpgme-devel BuildRequires: openssl-devel BuildRequires: libcurl-devel Requires: %{name}-filesystem = %{version}-%{release} %description Pacman is the package manager used by the Arch distribution. It is a frontend for the ALPM (Arch Linux Package Management) library. Pacman does not strive to "do everything." It will add, remove and upgrade packages in the system, and it will allow you to query the package database for installed packages, files and owners. It also attempts to handle dependencies automatically and can download packages from a remote server. Arch packages are simple archives, with .pkg.tar.gz extension for binary packages and .src.tar.gz for source packages. %package -n libalpm Summary: Arch Linux Package Management library %description -n libalpm This library is the backend behind Pacman — the package manager used by the Arch distribution. It uses simple compressed files as a package format, and maintains a text-based package database. %package -n libalpm-devel Summary: Development headers for libalpm Requires: libalpm%{_isa} = %{version}-%{release} %description -n libalpm-devel This package contains the public headers necessary to use libalpm. %package filesystem Summary: Pacman filesystem layout License: Public Domain BuildArch: noarch %description filesystem This package provides some directories used by pacman and related packages. %prep %setup -q -n %{name}-%{gitversion} %build ./autogen.sh %configure --enable-debug --enable-doxygen make %{?_smp_mflags} %install %make_install %find_lang pacman %find_lang pacman-scripts %find_lang libalpm cat pacman-scripts.lang >> pacman.lang # work around --disable-static not working find %{buildroot} \( -name '*.a' -o -name '*.la' \) -print -delete # work around some garbage files being installed find %{buildroot} -name '*_BUILD_*' -print -delete mkdir -p %{buildroot}%{_sysconfdir}/pacman.d install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pacman.d/ cat >>%{buildroot}%{_sysconfdir}/pacman.conf < - 4.1.2-1.20130626git28cb22e - Build from git snapshot. - Include /etc/pacman.d/mirrorlist. - Add pacman-filesystem package. - Add missing build dependencies and fix other packaging issues. * Fri Aug 16 2013 Zbigniew Jędrzejewski-Szmek - 4.1.2-1 - Initial packaging.