File reprepro.spec of Package reprepro
#
# spec file for package reprepro
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: reprepro
Version: 5.3.0
Release: 0
Summary: Handle local repositories of debian packages
License: GPL-2.0
Group: System/Packages
Url: https://salsa.debian.org/brlink/reprepro
Source0: http://deb.debian.org/debian/pool/main/r/reprepro/%{name}_%{version}.orig.tar.gz
Source1: http://deb.debian.org/debian/pool/main/r/reprepro/%{name}_%{version}.orig.tar.gz.asc
Source2: %{name}.keyring
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libarchive-devel
BuildRequires: zlib-devel
BuildRequires: xz-devel
%if 0%{?suse_version} >0
BuildRequires: libbz2-devel
BuildRequires: libgpgme-devel
%if 0%{?suse_version} >= 1140
BuildRequires: libdb-4_8-devel
# 0%%{?suse_version} >= 1140
%else
BuildRequires: libdb-4_5-devel
# 0%%{?suse_version} >= 1140
%endif
Requires: bzip2
Requires: gpg2
Requires: tar
# 0%%{?suse_version} >0
%else
%if 0%{?rhel_version} >= 700
BuildRequires: libdb-devel
# 0%%{?rhel_version} >= 700
%else
BuildRequires: db4-devel
# 0%%{?rhel_version} >= 700
%endif
BuildRequires: bzip2-devel
BuildRequires: gpgme-devel
Requires: bzip2
Requires: gnupg2
Requires: tar
# 0%%{?suse_version} >0
%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
%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