source: branches/fc13-dev/server/fedora/specs/openafs.spec.patch @ 1625

Last change on this file since 1625 was 1625, checked in by ezyang, 12 years ago
Upgrade OpenAFS to 1.4.12 for newest Fedora 13 kernel (could not use old version because it did not support the new kernel; some header files were moved around.)
File size: 2.5 KB
RevLine 
[1625]1--- openafs.spec.orig   2010-06-01 08:47:21.000000000 -0400
2+++ openafs.spec        2010-09-08 20:46:41.000000000 -0400
[925]3@@ -8,7 +8,7 @@
4 # for beta/rc releases make pkgrel 0.X.<tag>
5 # for real releases make pkgrel 1 (or more for extra releases)
6 #%define pkgrel 0.1.rc1
[1625]7-%define pkgrel 1.2
8+%define pkgrel 1.2.99scripts.%{scriptsversion}
[925]9 
10 %if %{?osvers:0}%{!?osvers:1}
11 %define osvers 1
[1625]12@@ -261,6 +261,10 @@
[760]13 %endif
14 ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64
15 
[1]16+Patch1000: openafs-scripts.patch
[1079]17+Patch1003: openafs-localcsdb.patch
[1259]18+Patch1005: openafs-numsysnames.patch
[1]19+
20 #    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
21 Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
22 Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2
[1555]23@@ -343,6 +348,7 @@
[925]24 %if %{build_userspace}
[1]25 
[925]26 %package client
27+Provides: scripts-openafs-client
[1625]28 Requires: binutils, openafs = %{version}
[925]29 
30 %if %{fedorakmod}
[1555]31@@ -403,6 +409,7 @@
[925]32 
33 %if %{build_authlibs}
34 %package authlibs
35+Provides: scripts-openafs-authlibs
36 Summary: OpenAFS authentication shared libraries
37 Group: Networking/Filesystems
38 
[1555]39@@ -419,6 +426,7 @@
[925]40 %endif
41 
42 %package authlibs-devel
43+Provides: scripts-openafs-authlibs-devel
44 %if %{build_authlibs}
[1625]45 Requires: openafs-authlibs = %{version}
[925]46 %endif
[1555]47@@ -437,6 +445,7 @@
[925]48 libraries.
49 
50 %package devel
51+Provides: scripts-openafs-devel
52 Summary: OpenAFS Development Libraries and Headers
53 Group: Development/Filesystems
54 
[1555]55@@ -465,6 +474,7 @@
[925]56 administrators.
57 
58 %package kernel-source
59+Provides: scripts-openafs-kernel-source
60 Summary: OpenAFS Kernel Module source tree
61 Group: Networking/Filesystems
[1625]62 Provides: openafs-kernel = %{version}
[1555]63@@ -514,6 +524,7 @@
[925]64 
65 %if %{krb5support}
66 %package krb5
67+Provides: scripts-openafs-krb5
68 Summary: OpenAFS programs to use with krb5
[1625]69 Requires: openafs = %{version}
[925]70 Group: Networking/Filesystems
[1555]71@@ -540,7 +551,7 @@
[929]72 %if %{build_modules}
73 
74 %if %{fedorakmod}
75-%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
76+%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)}
77 
78 %else
79 
[1625]80@@ -699,6 +710,9 @@
[925]81 
[1]82 # Patch openafs to build a kernel module named "openafs" instead of "libafs"
83 %patch0 -p1 -b .kmod26
[760]84+%patch1000 -p1 -b .scripts
[1079]85+%patch1003 -p1 -b .localcsdb
[1259]86+%patch1005 -p1 -b .numsysnames
[1]87 
[760]88 ##############################################################################
89 #
Note: See TracBrowser for help on using the repository browser.