From d0bdfab5f3b763c1a69043fc09a1814a148aa259 Mon Sep 17 00:00:00 2001 From: jkeating Date: Jun 23 2008 20:24:13 +0000 Subject: Go back to noarch Create symlinks from primary key to arch specific location Create compat generic symlink to primary keys Stop using download.fedora.redhat.com --- diff --git a/fedora-rawhide.repo b/fedora-rawhide.repo index 32ccf98..63f5b58 100644 --- a/fedora-rawhide.repo +++ b/fedora-rawhide.repo @@ -21,27 +21,27 @@ [rawhide] name=Fedora - Rawhide failovermethod=priority -#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/$basearch/os/ +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/$basearch/os/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch enabled=1 gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora +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.fedora.redhat.com/pub/fedora/linux/development/$basearch/debug/ +#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 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora +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 failovermethod=priority -#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/ +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/source/SRPMS/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide-source&arch=$basearch enabled=0 gpgcheck=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test-$basearch file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch diff --git a/fedora-release.spec b/fedora-release.spec index 8ac4191..ee8d844 100644 --- a/fedora-release.spec +++ b/fedora-release.spec @@ -17,6 +17,7 @@ Requires: fedora-release-notes >= 8 # upgrades, and just because we always want the release notes available # instead of explicitly asked for BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch %description Fedora release files such as yum configs and various /etc/ files that @@ -41,15 +42,18 @@ ln -s fedora-release $RPM_BUILD_ROOT/etc/system-release install -d -m 755 $RPM_BUILD_ROOT/etc/pki/rpm-gpg -# Install secondary arch specific keys here -%ifarch ia64 - install -m 644 RPM-GPG-KEY-fedora-ia64 $RPM_BUILD_ROOT/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora - install -m 644 RPM-GPG-KEY-fedora-test-ia64 $RPM_BUILD_ROOT/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test -# Assume any other arch should just get the primary keys -%else - install -m 644 RPM-GPG-KEY-fedora-primary $RPM_BUILD_ROOT/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora - install -m 644 RPM-GPG-KEY-fedora-test-primary $RPM_BUILD_ROOT/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test -%endif +install -m 644 RPM-GPG-KEY* $RPM_BUILD_ROOT/etc/pki/rpm-gpg/ + +# Install all the keys, link the primary keys to primary arch files +# and to compat generic location +pushd $RPM_BUILD_ROOT/etc/pki/rpm-gpg/ +for arch in i386 x86_64 ppc ppc64 + do + ln -s RPM-GPG-KEY-fedora-primary RPM-GPG-KEY-fedora-$arch + ln -s RPM-GPG-KEY-fedora-test-primary RPM-GPG-KEY-fedora-test-$arch + ln -s RPM-GPG-KEY-fedora-primary RPM-GPG-KEY-fedora + ln -s RPM-GPG-KEY-fedora-test-primary RPM-GPG-KEY-fedora-test +done install -d -m 755 $RPM_BUILD_ROOT/etc/yum.repos.d for file in fedora*repo ; do @@ -93,10 +97,9 @@ rm -rf $RPM_BUILD_ROOT %changelog * Wed Jun 11 2008 Jesse Keating - 9.90-2 -- Make fedora-release arch specific - Package up the ia64 key as the first secondary arch -- Install keys based on arch - Mark config files correctly +- Stop using download.fedora.redhat.com and use download.fedoraproject.org instead * Mon Mar 31 2008 Jesse Keating - 9.90-1 - Update for Fedora 10 rawhide. diff --git a/fedora-updates-testing.repo b/fedora-updates-testing.repo index 513340e..ec37c07 100644 --- a/fedora-updates-testing.repo +++ b/fedora-updates-testing.repo @@ -1,26 +1,26 @@ [updates-testing] name=Fedora $releasever - $basearch - Test Updates failovermethod=priority -#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/$releasever/$basearch/ +#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 +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.fedora.redhat.com/pub/fedora/linux/updates/testing/$releasever/$basearch/debug/ +#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 enabled=0 gpgcheck=1 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test-$basearch [updates-testing-source] name=Fedora $releasever - Test Updates Source failovermethod=priority -#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/testing/$releasever/SRPMS/ +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/testing/$releasever/SRPMS/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-source-f$releasever&arch=$basearch enabled=0 gpgcheck=1 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test-$basearch diff --git a/fedora-updates.repo b/fedora-updates.repo index 24342bb..9c84393 100644 --- a/fedora-updates.repo +++ b/fedora-updates.repo @@ -1,26 +1,26 @@ [updates] name=Fedora $releasever - $basearch - Updates failovermethod=priority -#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/ +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch enabled=0 gpgcheck=1 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch [updates-debuginfo] name=Fedora $releasever - $basearch - Updates - Debug failovermethod=priority -#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/debug/ +#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 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch [updates-source] name=Fedora $releasever - Updates Source failovermethod=priority -#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/SRPMS/ +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-f$releasever&arch=$basearch enabled=0 gpgcheck=1 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch diff --git a/fedora.repo b/fedora.repo index 7e5481f..640f7c5 100644 --- a/fedora.repo +++ b/fedora.repo @@ -1,26 +1,26 @@ [fedora] name=Fedora $releasever - $basearch failovermethod=priority -#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/ +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch enabled=0 gpgcheck=1 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch [fedora-debuginfo] name=Fedora $releasever - $basearch - Debug failovermethod=priority -#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/ +#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 file:///etc/pki/rpm-gpg/RPM-GPG-KEY +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch [fedora-source] name=Fedora $releasever - Source failovermethod=priority -#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/ +#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/ mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-$releasever&arch=$basearch enabled=0 gpgcheck=1 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch