Package createrepo: Specfile

Name: createrepo
Version: 0.10.4
Release: alt1
Summary: Creates a common metadata repository

License: GPL-2.0 and LGPL-2.1
Group: System/Base
URL: http://createrepo.baseurl.org/

Source: %name-%version.tar.gz
Patch0: %name-disable-deltarpm-support.patch

BuildArch: noarch

BuildRequires(pre): rpm-build-python

%add_findreq_skiplist %_sysconfdir/bash_completion.d/*
%py_requires sqlite3

%description
This program generates a repodata dir and xml files for a repository of rpm
packages. This repository is compatible with apt/yum/smart/yast and many other
package-repository-related tools.

%prep
%setup
%patch0 -p2
# Set correct python2 executable in shebang
subst 's|#!.*python.*$|#!%__python|' $(grep -Rl '#!.*python.*$' *)

%install
%makeinstall_std PKGDIR=%python_sitelibdir/%name

%files
%doc README
%_bindir/*
%_sysconfdir/bash_completion.d/*
%python_sitelibdir/%name
%_datadir/%name
%_man1dir/*
%_man8dir/*

%changelog
* Sun Sep 19 2021 Andrey Cherepanov <cas@altlinux.org> 0.10.4-alt1
- Initial build in Sisyphus.