From f9963ad7b51c747912a8347f42529e289489157c Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Apr 09 2009 21:26:30 +0000 Subject: Initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..54fe9ee 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +debmirror_20070123.tar.gz diff --git a/debmirror.spec b/debmirror.spec new file mode 100644 index 0000000..3505591 --- /dev/null +++ b/debmirror.spec @@ -0,0 +1,81 @@ +Name: debmirror +Version: 20070123 +Release: 8%{?dist} +Summary: Debian partial mirror script, with ftp and package pool support + +Group: Applications/Internet +License: GPL+ +URL: http://packages.qa.debian.org/d/%{name}.html +Source: http://ftp.debian.org/debian/pool/main/d/%{name}/%{name}_%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: patch, ed, gnupg, rsync, coreutils, findutils, gzip, bzip2 + +%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 + +# filter file dependency on debmirror.conf +cat << \EOF > %{name}-req +#!/bin/sh +%{__perl_requires} $* |\ +sed -e '/\/etc\/debmirror.conf/d' +EOF + +%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req +chmod +x %{__perl_requires} + + +%build + +%install +rm -rf %{buildroot} + +%{__install} -Dp -m 0755 %{name} %{buildroot}%{_bindir}/%{name} +%{__install} -Dp -m 0644 %{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf + +# generate a man page +%{__install} -d %{buildroot}%{_mandir}/man1 +pod2man %{name} %{buildroot}%{_mandir}/man1/%{name}.1 + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc debian/copyright debian/changelog debian/NEWS.Debian doc/design.txt +%{_mandir}/man1/%{name}.1.gz +%{_bindir}/%{name} +%config(noreplace) %{_sysconfdir}/%{name}.conf + + +%changelog +* Thu Apr 09 2009 Ruben Kerkhof - 20070123-8 +- Use GPL+ as license +- Use main debian url for Source + +* Wed Apr 08 2009 Ruben Kerkhof - 20070123-7 +- Change url to a page with more content +- Use %%{name} macro + +* Tue Apr 07 2009 Ruben Kerkhof - 20070123-6 +- Generate a man page from the source +- Add explicit Requires on system commands used + +* Tue Apr 07 2009 Ruben Kerkhof - 20070123-5 +- Package cleanup for review + +* Sat Nov 1 2008 Javier palacios +- 20070123-2 +- Added suggestions from the review process + +* Sat Oct 11 2008 Javier palacios +- 20070123-1 +- First release + diff --git a/import.log b/import.log new file mode 100644 index 0000000..ad0dbf2 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +debmirror-20070123-8_fc11:HEAD:debmirror-20070123-8.fc11.src.rpm:1239311795 diff --git a/sources b/sources index e69de29..60379dd 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e89d7b8aae00fbf0743b2cd6bc99d746 debmirror_20070123.tar.gz