File reprepro.spec of Package reprepro

#
# spec file for package reprepro
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           reprepro
Version:        5.4.7
Release:        0
Summary:        Handle local repositories of debian packages
License:        GPL-2.0-only
Group:          System/Packages
URL:            http://ftp.de.debian.org/debian/pool/main/r/reprepro/
Source:         http://ftp.de.debian.org/debian/pool/main/r/reprepro/%{name}_%{version}.orig.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# BuildArch:      noarch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libarchive-devel
BuildRequires:  zlib-devel
%if 0%{?suse_version} >0
BuildRequires:  libbz2-devel
BuildRequires:  libgpgme-devel
BuildRequires:  libdb-4_8-devel
Requires:       bzip2
Requires:       gpg2
Requires:       tar
%else
BuildRequires:  bzip2-devel
BuildRequires:  db4-devel
BuildRequires:  gpgme-devel
Requires:       bzip2
Requires:       gnupg2
Requires:       tar
%endif

%description
This project is a lightweight feature complete manager of a debian
package (i.e. binary .deb and source .dsc+.tar.gz+.diff.gz) repository.
Emphasis is put on having all packages in the pool/-directory,
maximal checking of all sources, generation of signed Release file,
Contents, ...

%prep
%setup -q

%build
./autogen.sh
%configure
%__make %{?_smp_mflags} VERBOSE=1

%install
%__make install DESTDIR=%{buildroot}
%__mkdir -p docs/examples
%__mv docs/*example docs/examples

%files
%defattr(-,root,root)
%{_bindir}/*
%defattr(644,root,root)
%doc AUTHORS ChangeLog COPYING README TODO docs/FAQ docs/*.html docs/*completion docs/short-howto docs/examples
%{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by