[apt-mirror/el6: 4/5] Updating to 0.4.9+snapshot (#988323)

Major Hayden mhayden at fedoraproject.org
Sun Jul 28 03:15:12 UTC 2013


commit c7ea49c2ef2c6cf9c5447065deba27f31feb440f
Author: Major Hayden <major at mhtx.net>
Date:   Sat Jul 27 22:04:47 2013 -0500

    Updating to 0.4.9+snapshot (#988323)

 .gitignore       |    1 +
 apt-mirror.patch |   22 ++++++++++++----------
 apt-mirror.spec  |   30 +++++++++++++-----------------
 dead.package     |    1 -
 sources          |    2 +-
 5 files changed, 27 insertions(+), 29 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d8f0dee..96712c7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 apt-mirror_0.4.5.orig.tar.gz
+/apt-mirror-0.4.9-de8906b.tar.gz
diff --git a/apt-mirror.patch b/apt-mirror.patch
index d430943..63550b6 100644
--- a/apt-mirror.patch
+++ b/apt-mirror.patch
@@ -1,15 +1,17 @@
---- apt-mirror-0.4.5/apt-mirror.orig	2008-09-27 14:18:46.000000000 +0200
-+++ apt-mirror-0.4.5/apt-mirror	2008-09-28 20:54:08.000000000 +0200
-@@ -27,7 +27,7 @@
+diff --git a/apt-mirror b/apt-mirror
+index f20dcfa..ef68a71 100755
+--- a/apt-mirror
++++ b/apt-mirror
+@@ -27,7 +27,7 @@ Main features:
  
  =head1 COMMENTS
  
 -apt-mirror uses F</etc/apt/mirror.list> as a configuration file.
 +apt-mirror uses F</etc/apt-mirror.list> as a configuration file.
- By default it is tuned to official debian mirror in Finland. Change
+ By default it is tuned to official Debian or Ubuntu mirrors. Change
  it for your needs.
  
-@@ -39,7 +39,7 @@
+@@ -39,7 +39,7 @@ Or uncomment line in F</etc/cron.d/apt-mirror> to enable daily mirror updates.
  
  =head1 FILES
  
@@ -18,12 +20,12 @@
          Main configuration file
  
  F</etc/cron.d/apt-mirror>
-@@ -96,7 +96,7 @@
+@@ -124,7 +124,7 @@ my %clean_directory = ();
  ######################################################################################
  ## Setting up $config_file variable
  
--$config_file = "/etc/apt/mirror.list";	# Default value
-+$config_file = "/etc/apt-mirror.list";	# Default value
- if($_ = shift) {
+-$config_file = "/etc/apt/mirror.list";    # Default value
++$config_file = "/etc/apt-mirror.list";    # Default value
+ if ( $_ = shift )
+ {
      die("apt-mirror: invalid config file specified") unless -f $_;
-     $config_file = $_;
diff --git a/apt-mirror.spec b/apt-mirror.spec
index 36673e2..5c7e303 100644
--- a/apt-mirror.spec
+++ b/apt-mirror.spec
@@ -1,13 +1,15 @@
+%global commit de8906bf3bf947e238ae097c872574907e7b3d4d
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
 Name:            apt-mirror
-Version:         0.4.5
-Release:         5%{?dist}
+Version:         0.4.9
+Release:         1.git%{shortcommit}%{?dist}
 Summary:         APT sources mirroring tool
 
 Group:           Development/Tools
 License:         GPLv2+
-# proof of licensing: http://packages.debian.org/changelogs/pool/main/a/apt-mirror/apt-mirror_0.4.5-1/apt-mirror.copyright (GPLv2+)
-URL:             http://apt-mirror.sourceforge.net/
-Source0:         http://downloads.sourceforge.net/%{name}/%{name}_%{version}.orig.tar.gz
+URL:             http://apt-mirror.github.io/
+Source0:         https://github.com/apt-mirror/apt-mirror/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
 Source1:         Debian-mirror.list
 Source2:         clean.sh
 Patch0:          %{name}.patch
@@ -21,18 +23,8 @@ Requires:        wget
 A small and efficient tool that lets you mirror a part of or
 the whole Debian GNU/Linux distribution or any other apt sources.
 
-Main features:
- * It uses a config similar to apts <sources.list>
- * It's fully pool comply
- * It supports multithreaded downloading
- * It supports multiple architectures at the same time
- * It can automatically remove unneeded files
- * It works well on overloaded channel to internet
- * It never produces an inconsistent mirror including while mirroring
- * It works on all POSIX complied systems with perl and wget
-
 %prep
-%setup -q
+%setup -qn %{name}-%{commit}
 %patch0 -p1 -b .mirror
 
 
@@ -72,7 +64,7 @@ rm -rf %{buildroot}
 
 %files
 %defattr(-,root,root,-)
-%doc CHANGELOG TODO
+%doc CHANGELOG
 %{_sbindir}/%{name}
 %{_mandir}/man1/%{name}.1.gz
 %config (noreplace) %{_sysconfdir}/%{name}.list
@@ -80,6 +72,10 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Sat Jul 27 2013 Major Hayden <major at mhtx.net> - 0.4.9-1.gitde8906b
+- Switched package source to new official GitHub repository
+- Updated patch
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.5-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 
diff --git a/sources b/sources
index 657c989..b373d7b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2db8e53ffed8c074ec40c2d2a6e88f88  apt-mirror_0.4.5.orig.tar.gz
+c696cfc7da63cb2ce844f057ad6aa359  apt-mirror-0.4.9-de8906b.tar.gz


More information about the scm-commits mailing list