From b4bc4b14a71f2945f8846a7887de687a37703f0d Mon Sep 17 00:00:00 2001
From: root <Kedar Sovani kedars@marvell.com>
Date: Fri, 19 Dec 2008 11:26:48 +0530
Subject: [PATCH] fedora-release: Include repository paths for Fedora-ARM 10.

Signed-off-by: root <Kedar Sovani kedars@marvell.com>
---
 fedora-release-10-arm-repos.patch |  107 +++++++++++++++++++++++++++++++++++++
 fedora-release.spec               |    8 +++-
 2 files changed, 114 insertions(+), 1 deletions(-)
 create mode 100644 fedora-release-10-arm-repos.patch

diff --git a/fedora-release-10-arm-repos.patch b/fedora-release-10-arm-repos.patch
new file mode 100644
index 0000000..8e72e6a
--- /dev/null
+++ b/fedora-release-10-arm-repos.patch
@@ -0,0 +1,107 @@
+diff -urp fedora-release-10.orig/fedora-rawhide.repo fedora-release-10/fedora-rawhide.repo
+--- fedora-release-10.orig/fedora-rawhide.repo	2008-11-07 01:04:41.000000000 +0530
++++ fedora-release-10/fedora-rawhide.repo	2008-12-16 13:54:50.000000000 +0530
+@@ -20,21 +20,9 @@
+ 
+ [rawhide]
+ name=Fedora - Rawhide - Developmental packages for the next Fedora release
+-failovermethod=priority
+-#baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/$basearch/os/
+-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch
++mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=rawhide&arch=$basearch
+ enabled=0
+ gpgcheck=0
+-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test-$basearch file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
+-
+-[rawhide-debuginfo]
+-name=Fedora - Rawhide - Debug
+-failovermethod=priority
+-#baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/$basearch/debug/
+-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide-debug&arch=$basearch
+-enabled=0
+-gpgcheck=0
+-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test-$basearch file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
+ 
+ [rawhide-source]
+ name=Fedora - Rawhide - Source
+Only in fedora-release-10: fedora-rawhide.repo~
+diff -urp fedora-release-10.orig/fedora.repo fedora-release-10/fedora.repo
+--- fedora-release-10.orig/fedora.repo	2008-11-07 01:04:41.000000000 +0530
++++ fedora-release-10/fedora.repo	2008-12-16 13:54:22.000000000 +0530
+@@ -1,20 +1,8 @@
+ [fedora]
+ name=Fedora $releasever - $basearch
+-failovermethod=priority
+-#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
+-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
++mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=fedora-$releasever&arch=$basearch
+ enabled=1
+-gpgcheck=1
+-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
+-
+-[fedora-debuginfo]
+-name=Fedora $releasever - $basearch - Debug
+-failovermethod=priority
+-#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
+-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-$releasever&arch=$basearch
+-enabled=0
+-gpgcheck=1
+-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
++gpgcheck=0
+ 
+ [fedora-source]
+ name=Fedora $releasever - Source
+Only in fedora-release-10: fedora.repo~
+diff -urp fedora-release-10.orig/fedora-updates.repo fedora-release-10/fedora-updates.repo
+--- fedora-release-10.orig/fedora-updates.repo	2008-11-07 01:04:41.000000000 +0530
++++ fedora-release-10/fedora-updates.repo	2008-12-16 13:54:13.000000000 +0530
+@@ -1,20 +1,8 @@
+ [updates]
+ name=Fedora $releasever - $basearch - Updates
+-failovermethod=priority
+-#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
+-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
++mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=updates-released-f$releasever&arch=$basearch
+ enabled=1
+-gpgcheck=1
+-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
+-
+-[updates-debuginfo]
+-name=Fedora $releasever - $basearch - Updates - Debug
+-failovermethod=priority
+-#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/debug/
+-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-f$releasever&arch=$basearch
+-enabled=0
+-gpgcheck=1
+-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
++gpgcheck=0
+ 
+ [updates-source]
+ name=Fedora $releasever - Updates Source
+Only in fedora-release-10: fedora-updates.repo~
+diff -urp fedora-release-10.orig/fedora-updates-testing.repo fedora-release-10/fedora-updates-testing.repo
+--- fedora-release-10.orig/fedora-updates-testing.repo	2008-06-24 01:54:13.000000000 +0530
++++ fedora-release-10/fedora-updates-testing.repo	2008-12-16 13:53:54.000000000 +0530
+@@ -1,20 +1,8 @@
+ [updates-testing]
+ name=Fedora $releasever - $basearch - Test Updates
+-failovermethod=priority
+-#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/testing/$releasever/$basearch/
+-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f$releasever&arch=$basearch
+-enabled=0
+-gpgcheck=1
+-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test-$basearch
+-
+-[updates-testing-debuginfo]
+-name=Fedora $releasever - $basearch - Test Updates Debug
+-failovermethod=priority
+-#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/testing/$releasever/$basearch/debug/
+-mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-debug-f$releasever&arch=$basearch
++mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=updates-testing-f$releasever&arch=$basearch
+ enabled=0
+-gpgcheck=1
+-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test-$basearch
++gpgcheck=0
+ 
+ [updates-testing-source]
+ name=Fedora $releasever - Test Updates Source
diff --git a/fedora-release.spec b/fedora-release.spec
index 5d79639..a87c65f 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -4,11 +4,12 @@
 Summary:	Fedora release files
 Name:		fedora-release
 Version:	10
-Release:	1
+Release:	1.fa1
 License:	GPLv2
 Group:		System Environment/Base
 URL:		http://fedoraproject.org
 Source:		%{name}-%{version}.tar.gz
+Patch1:		fedora-release-10-arm-repos.patch
 Obsoletes:	redhat-release
 Provides:	redhat-release
 Provides:	system-release = %{version}-%{release}
@@ -25,6 +26,7 @@ define the release.
 
 %prep
 %setup -q
+%patch1 -p1
 
 %build
 
@@ -40,6 +42,7 @@ echo >> $RPM_BUILD_ROOT/etc/issue
 ln -s fedora-release $RPM_BUILD_ROOT/etc/redhat-release
 ln -s fedora-release $RPM_BUILD_ROOT/etc/system-release
 
+%ifnarch %{arm}
 install -d -m 755 $RPM_BUILD_ROOT/etc/pki/rpm-gpg
 
 install -m 644 RPM-GPG-KEY* $RPM_BUILD_ROOT/etc/pki/rpm-gpg/
@@ -55,6 +58,7 @@ done
 ln -s RPM-GPG-KEY-fedora-%{dist_version}-primary RPM-GPG-KEY-fedora
 ln -s RPM-GPG-KEY-fedora-test-%{dist_version}-primary RPM-GPG-KEY-fedora-test
 popd
+%endif
 
 install -d -m 755 $RPM_BUILD_ROOT/etc/yum.repos.d
 for file in fedora*repo ; do
@@ -86,8 +90,10 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %attr(0644,root,root) /etc/issue
 %config(noreplace) %attr(0644,root,root) /etc/issue.net
 %config %attr(0644,root,root) /etc/rpm/macros.dist
+%ifnarch %{arm}
 %dir /etc/pki/rpm-gpg
 /etc/pki/rpm-gpg/*
+%endif
 
 %changelog
 * Fri Oct 31 2008 Jesse Keating <jkeating@redhat.com> - 10-1
-- 
1.5.3.3

