Red Hat: update build script for newer Fedora versions
authorKen Dreyer <kdreyer@usgs.gov>
Thu, 7 Jul 2011 12:55:51 +0000 (08:55 -0400)
committerDerrick Brashear <shadow@dementia.org>
Tue, 12 Jul 2011 18:58:31 +0000 (11:58 -0700)
Remove old Fedora versions and add the currently-supported ones.

Change-Id: Ib514328cf944ea601028fb99273046cb2f5ea828
Reviewed-on: http://gerrit.openafs.org/4925
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/packaging/RedHat/mockbuild.pl

index d0706b2..5543c67 100755 (executable)
@@ -37,47 +37,7 @@ sub findKernels {
 }
 
 
-my %platconf = ( "fedora-5-i386" => { osver => "fc5",
-                                     kmod => '1',
-                                     basearch => 'i386',
-                                     updaterepo => 'updates-released',
-                                     results => 'fedora-5/i386' },
-                "fedora-5-x86_64" => { osver => "fc5",
-                                      kmod => '1',
-                                      basearch => 'x86_64',
-                                      updaterepo => 'updates-released',
-                                      results => 'fedora-5/x86_64' },
-                "fedora-6-i386" => { osver => "fc6", 
-                                     kmod => '1', 
-                                     basearch => 'i386',
-                                     updaterepo => 'updates-released',
-                                     results => "fedora-6/i386" },
-                "fedora-6-x86_64" => { osver => "fc6",
-                                       kmod => '1',
-                                       basearch => 'x86_64',
-                                       updaterepo => 'updates-released',
-                                       results => "fedora-6/x86_64" },
-                "fedora-7-i386" => { osver => "fc7", 
-                                     kmod => '1', 
-                                     basearch => 'i386',
-                                     updaterepo => 'updates-released',
-                                     results => "fedora-7/i386" },
-                "fedora-7-x86_64" => { osver => "fc7",
-                                       kmod => '1',
-                                       basearch => 'x86_64',
-                                       updaterepo => 'updates-released',
-                                       results => "fedora-7/x86_64" },
-                "fedora-8-i386" => { osver => "fc8", 
-                                     kmod => '1', 
-                                     basearch => 'i386',
-                                     updaterepo => 'updates-released',
-                                     results => "fedora-8/i386" },
-                "fedora-8-x86_64" => { osver => "fc8",
-                                       kmod => '1',
-                                       basearch => 'x86_64',
-                                       updaterepo => 'updates-released',
-                                       results => "fedora-8/x86_64" },
-                "centos-4-i386" => { osver => "el4",
+my %platconf = ( "centos-4-i386" => { osver => "el4",
                                     kmod => '1',
                                     basearch => 'i386',
                                     updaterepo => 'update',
@@ -97,57 +57,22 @@ my %platconf = ( "fedora-5-i386" => { osver => "fc5",
                                        basearch => 'x86_64',
                                        updaterepo => 'update',
                                        results => "rhel5/x86_64" },
-                "fedora-9-i386" => { osver => "fc9",
-                                     kmod => '1',
-                                     basearch => 'i386',
-                                     updaterepo => "updates-released",
-                                     results => 'fedora-9/i386' },
-                "fedora-9-x86_64" => { osver => "fc9",
-                                       kmod => "1",
-                                       basearch => "x86_64",
-                                       updaterepo => "updates-released",
-                                       results => "fedora-9/x86_64" },
-                "fedora-10-i386" => { osver => "fc10",
-                                     kmod => '1',
-                                     basearch => 'i386',
-                                     updaterepo => "updates-released",
-                                     results => 'fedora-10/i386' },
-                "fedora-10-x86_64" => { osver => "fc10",
-                                       kmod => "1",
-                                       basearch => "x86_64",
-                                       updaterepo => "updates-released",
-                                       results => "fedora-10/x86_64" },
-                "fedora-11-i386" => { osver => "fc11",
-                                     kmod => '1',
-                                     basearch => 'i386',
-#                                    updaterepo => "updates-released",
-                                     results => 'fedora-11/i386' },
-                "fedora-11-x86_64" => { osver => "fc11",
-                                       kmod => "1",
-                                       basearch => "x86_64",
-#                                      updaterepo => "updates-released",
-                                       results => "fedora-11/x86_64" },
-                "fedora-12-i386" => { osver => "fc12",
-                                     kmod => '1',
-                                     basearch => 'i386',
-#                                    updaterepo => "updates-released",
-                                     results => 'fedora-12/i386' },
-                "fedora-12-x86_64" => { osver => "fc12",
-                                       kmod => "1",
-                                       basearch => "x86_64",
-#                                      updaterepo => "updates-released",
-                                       results => "fedora-12/x86_64" },
-                 "fedora-13-i386" => { osver => "fc13",
+                 "fedora-14-i386" => { osver => "fc14",
                                         kmod => "1",
                                         basearch => "i386",
-#                                       updaterepo => "updates-released",
-                                        results => "fedora-13/i386" },
-                 "fedora-13-x86_64" => { osver => "fc13",
+                                        results => "fedora-14/i386" },
+                 "fedora-14-x86_64" => { osver => "fc14",
                                         kmod => "1",
                                         basearch => "x86_64",
-#                                       updaterepo => "updates-released",
-                                        results => "fedora-13/x86_64" },
-
+                                        results => "fedora-14/x86_64" },
+                 "fedora-15-i386" => { osver => "fc15",
+                                        kmod => "1",
+                                        basearch => "i386",
+                                        results => "fedora-15/i386" },
+                 "fedora-15-x86_64" => { osver => "fc15",
+                                        kmod => "1",
+                                        basearch => "x86_64",
+                                        results => "fedora-15/x86_64" },
                 "fedora-development-i386" => { osver => "fcd",
                                          kmod => '1',
                                          basearch => 'i386',
@@ -257,11 +182,7 @@ foreach my $platform (@platforms) {
       next if ($arch eq "noarch");
       next 
          if (exists($badkernels{$version}) && ($badkernels{$version}{$variant}));
-      if ($platform=~/fedora-5/) {
-         next if ($variant eq "xen0"); # Fedora 5 has some bad xen0 kernel-devels
-         next if ($variant eq "smp");
-      }
-      next if ($variant =~/debug$/); # Fedora 8 debug kernels are bad
+      next if ($variant =~/debug$/); # Fedora debug kernels are bad
 
       print "$arch : $variant : $version\n";
       $modulelist{$arch} ={} if !$modulelist{$arch};