File arch-pacman.spec of Package arch-pacman

Name:           arch-pacman
Provides:       pacman
Version:        5.0.1
Release:        0
License:        GPL-2.0
Summary:        A library-based package manager with dependency support
Url:            https://www.archlinux.org/pacman/
Source0:        %{name}_%{version}.orig.tar.gz
BuildRequires:  curl
BuildRequires:  doxygen
BuildRequires:  gawk
BuildRequires:  git
BuildRequires:  m4
BuildRequires:  libtool
%if 0%{?fedora} > 23
BuildRequires:  pkgconfig
%else
BuildRequires:  pkg-config
%endif
%if 0%{?suse_version}
BuildRequires:  libarchive13
%else
BuildRequires:  libarchive
%endif
BuildRequires:  libarchive-devel
BuildRequires:  libcurl-devel
BuildRequires:  gettext-devel
BuildRequires:  gpgme-devel
BuildRequires:  sqlite
BuildRequires:  libxslt

Requires:       bash
Requires:       bsdtar
Requires:       bzip2
Requires:       curl
Requires:       gawk
Requires:       gettext
Requires:       gnupg

%description
pacman is a utility which manages software packages in Linux. It uses simple 
compressed files as a package format, and maintains a text-based package 
database (more of a hierarchy), just in case some hand tweaking is necessary.

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.

%package devel
Requires:       %{name} = %{version}
Summary:        Development files for pacman
License:        GPL-2.0
Group:          Development/Libraries/C and C++

%description devel
pacman is a utility which manages software packages in Linux. It uses simple 
compressed files as a package format, and maintains a text-based package 
database (more of a hierarchy), just in case some hand tweaking is necessary.

This package contains the files for developing applications using
pacman.

%prep
%setup -q -n pacman-%{version}

%build
%configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --enable-static \
  --disable-shared \
  --enable-doc \
  --enable-doxygen \
  --with-scriptlet-shell=/bin/bash \
  --with-pkg-ext=.pkg.tar.xz \
  --with-src-ext=.pkg.tar.xz
make %{?_smp_mflags}
make -C contrib

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
make DESTDIR=%{buildroot} -C contrib install

%find_lang libalpm
%find_lang pacman-scripts
%find_lang pacman

%clean
make clean

%files -f libalpm.lang -f pacman-scripts.lang -f pacman.lang
%defattr(-,root,root,-)

%config(noreplace) /etc/bash_completion.d/pacman
%config(noreplace) /etc/makepkg.conf
%config(noreplace) /etc/pacman.conf

%{_bindir}/bacman
%{_bindir}/checkupdates
%{_bindir}/cleanupdelta
%{_bindir}/makepkg
%{_bindir}/makepkg-template
%{_bindir}/paccache
%{_bindir}/pacdiff
%{_bindir}/paclist
%{_bindir}/paclog-pkglist
%{_bindir}/pacman
%{_bindir}/pacman-db-upgrade
%{_bindir}/pacman-key
%{_bindir}/pacman-optimize
%{_bindir}/pacscripts
%{_bindir}/pacsearch
%{_bindir}/pacsort
%{_bindir}/pactree
%{_bindir}/pkgdelta
%{_bindir}/rankmirrors
%{_bindir}/repo-add
%{_bindir}/repo-elephant
%{_bindir}/repo-remove
%{_bindir}/testpkg
%{_bindir}/updpkgsums
%{_bindir}/vercmp

%doc %{_mandir}/man1/*.gz
%doc %{_mandir}/man5/*.gz
%doc %{_mandir}/man8/*.gz
%{_datarootdir}/makepkg
%{_datarootdir}/pacman
%exclude %{_datarootdir}/zsh/site-functions/_pacman
%dir /var/lib/pacman

%files devel
%defattr(-,root,root)
%{_includedir}/*
%doc %{_mandir}/man3/*.gz
%{_libdir}/lib*
%{_libdir}/pkgconfig/*.pc

%changelog

openSUSE Build Service is sponsored by