File debmirror.spec of Package debmirror
#
# spec file for package debmirror
#
# Copyright (c) 2020 Samu Voutilainen
#
# 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.
Name: debmirror
Version: 2.33
Release: 0
Summary: Debian partial mirror script, with ftp and package pool support
License: GPL-2.0-or-later
Group: System/Management
BuildArch: noarch
URL: https://salsa.debian.org/debian/debmirror
Source0: %{name}-%{version}.tar.xz
# TODO: This *may* be for tests only.
#Requires: perl(LockFile::Lock::Simple)
BuildRequires: perl(LockFile::Simple)
BuildRequires: perl(LWP::UserAgent)
Requires: perl(LockFile::Simple)
#Requires: perl(LWP::UserAgent)
%description
This program downloads and maintains a partial local Debian mirror.
It can mirror any combination of architectures, distributions and
sections. Files are transferred by ftp, http, hftp or rsync, and package
pools are fully supported. It also does locking and updates trace files.
%prep
%setup -q
%build
%make_build
%check
make check
%install
install -D -m 0755 debmirror %{buildroot}%{_bindir}/debmirror
install -d -m 0755 %{buildroot}/%{_mandir}/man1
install -D -m 0644 debmirror.1 %{buildroot}/%{_mandir}/man1/debmirror.1
install -D -m 0644 doc/design.txt %{buildroot}/%{_docdir}/%{name}/design.txt
install -D -m 0644 examples/debmirror.conf %{buildroot}/%{_docdir}/%{name}/examples/debmirror.conf
%files
%dir %{_docdir}/%{name}
%dir %{_docdir}/%{name}/examples
%{_bindir}/debmirror
%doc %{_mandir}/man1/debmirror.1*
%doc %{_docdir}/%{name}/design.txt
%doc %{_docdir}/%{name}/examples/debmirror.conf
%changelog