|
|
2059025 |
Name: debmirror
|
|
|
2059025 |
Version: 20070123
|
|
|
2059025 |
Release: 8%{?dist}
|
|
|
2059025 |
Summary: Debian partial mirror script, with ftp and package pool support
|
|
|
2059025 |
|
|
|
2059025 |
Group: Applications/Internet
|
|
|
2059025 |
License: GPL+
|
|
|
2059025 |
URL: http://packages.qa.debian.org/d/%{name}.html
|
|
|
2059025 |
Source: http://ftp.debian.org/debian/pool/main/d/%{name}/%{name}_%{version}.tar.gz
|
|
|
2059025 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
2059025 |
BuildArch: noarch
|
|
|
2059025 |
Requires: patch, ed, gnupg, rsync, coreutils, findutils, gzip, bzip2
|
|
|
2059025 |
|
|
|
2059025 |
%description
|
|
|
2059025 |
This program downloads and maintains a partial local Debian mirror.
|
|
|
2059025 |
It can mirror any combination of architectures, distributions and
|
|
|
2059025 |
sections. Files are transferred by ftp, http, hftp or rsync, and package
|
|
|
2059025 |
pools are fully supported. It also does locking and updates trace files.
|
|
|
2059025 |
|
|
|
2059025 |
|
|
|
2059025 |
%prep
|
|
|
2059025 |
%setup -q
|
|
|
2059025 |
|
|
|
2059025 |
# filter file dependency on debmirror.conf
|
|
|
2059025 |
cat << \EOF > %{name}-req
|
|
|
2059025 |
#!/bin/sh
|
|
|
2059025 |
%{__perl_requires} $* |\
|
|
|
2059025 |
sed -e '/\/etc\/debmirror.conf/d'
|
|
|
2059025 |
EOF
|
|
|
2059025 |
|
|
|
2059025 |
%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
|
|
|
2059025 |
chmod +x %{__perl_requires}
|
|
|
2059025 |
|
|
|
2059025 |
|
|
|
2059025 |
%build
|
|
|
2059025 |
|
|
|
2059025 |
%install
|
|
|
2059025 |
rm -rf %{buildroot}
|
|
|
2059025 |
|
|
|
2059025 |
%{__install} -Dp -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
|
|
|
2059025 |
%{__install} -Dp -m 0644 %{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf
|
|
|
2059025 |
|
|
|
2059025 |
# generate a man page
|
|
|
2059025 |
%{__install} -d %{buildroot}%{_mandir}/man1
|
|
|
2059025 |
pod2man %{name} %{buildroot}%{_mandir}/man1/%{name}.1
|
|
|
2059025 |
|
|
|
2059025 |
%clean
|
|
|
2059025 |
rm -rf %{buildroot}
|
|
|
2059025 |
|
|
|
2059025 |
%files
|
|
|
2059025 |
%defattr(-,root,root,-)
|
|
|
2059025 |
%doc debian/copyright debian/changelog debian/NEWS.Debian doc/design.txt
|
|
|
2059025 |
%{_mandir}/man1/%{name}.1.gz
|
|
|
2059025 |
%{_bindir}/%{name}
|
|
|
2059025 |
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
|
|
2059025 |
|
|
|
2059025 |
|
|
|
2059025 |
%changelog
|
|
|
2059025 |
* Thu Apr 09 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> - 20070123-8
|
|
|
2059025 |
- Use GPL+ as license
|
|
|
2059025 |
- Use main debian url for Source
|
|
|
2059025 |
|
|
|
2059025 |
* Wed Apr 08 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> - 20070123-7
|
|
|
2059025 |
- Change url to a page with more content
|
|
|
2059025 |
- Use %%{name} macro
|
|
|
2059025 |
|
|
|
2059025 |
* Tue Apr 07 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> - 20070123-6
|
|
|
2059025 |
- Generate a man page from the source
|
|
|
2059025 |
- Add explicit Requires on system commands used
|
|
|
2059025 |
|
|
|
2059025 |
* Tue Apr 07 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> - 20070123-5
|
|
|
2059025 |
- Package cleanup for review
|
|
|
2059025 |
|
|
|
2059025 |
* Sat Nov 1 2008 Javier palacios <javiplx@gmail.com>
|
|
|
2059025 |
- 20070123-2
|
|
|
2059025 |
- Added suggestions from the review process
|
|
|
2059025 |
|
|
|
2059025 |
* Sat Oct 11 2008 Javier palacios <javiplx@gmail.com>
|
|
|
2059025 |
- 20070123-1
|
|
|
2059025 |
- First release
|
|
|
2059025 |
|