| [2060] | 1 | --- rpmbuild/SPECS/openafs.spec | 
|---|
|  | 2 | +++ rpmbuild/SPECS/openafs.spec.~3~     2011-11-20 20:13:52.211673609 -0500 | 
|---|
| [1913] | 3 | @@ -4,7 +4,7 @@ | 
|---|
|  | 4 | %define pkgvers 1.6.0 | 
|---|
|  | 5 | # for beta/rc releases make pkgrel 0.<tag> | 
|---|
| [925] | 6 | # for real releases make pkgrel 1 (or more for extra releases) | 
|---|
| [2011] | 7 | -%define pkgrel 1 | 
|---|
|  | 8 | +%define pkgrel 1.99.scripts.%{scriptsversion} | 
|---|
| [925] | 9 |  | 
|---|
| [1913] | 10 | %{!?fedorakmod: %define fedorakmod 1} | 
|---|
|  | 11 | %{!?build_dkmspkg: %define build_dkmspkg 1} | 
|---|
| [2062] | 12 | @@ -237,6 +237,14 @@ | 
|---|
| [2060] | 13 |  | 
|---|
| [760] | 14 | ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64 | 
|---|
|  | 15 |  | 
|---|
| [1] | 16 | +Patch1000: openafs-scripts.patch | 
|---|
| [1914] | 17 | +Patch1001: openafs-localcsdb.patch | 
|---|
| [2011] | 18 | +Patch1002: openafs-systemd.patch | 
|---|
|  | 19 | +Patch1003: openafs-systemd-crond.patch | 
|---|
| [2060] | 20 | +Patch1004: openafs-linux-3.1-rcu.patch | 
|---|
|  | 21 | +Patch1005: openafs-linux-3.1-fsync.patch | 
|---|
| [2062] | 22 | +Patch1006: openafs-linux-3.1-zalloc.patch | 
|---|
| [1] | 23 | + | 
|---|
|  | 24 | #    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/... | 
|---|
|  | 25 | Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2 | 
|---|
|  | 26 | Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2 | 
|---|
| [2062] | 27 | @@ -316,6 +324,7 @@ | 
|---|
| [925] | 28 | %if %{build_userspace} | 
|---|
| [1] | 29 |  | 
|---|
| [925] | 30 | %package client | 
|---|
|  | 31 | +Provides: scripts-openafs-client | 
|---|
| [1693] | 32 | Requires: binutils, openafs = %{version} | 
|---|
| [925] | 33 |  | 
|---|
|  | 34 | %if %{fedorakmod} | 
|---|
| [2062] | 35 | @@ -376,6 +385,7 @@ | 
|---|
| [925] | 36 |  | 
|---|
|  | 37 | %if %{build_authlibs} | 
|---|
|  | 38 | %package authlibs | 
|---|
|  | 39 | +Provides: scripts-openafs-authlibs | 
|---|
|  | 40 | Summary: OpenAFS authentication shared libraries | 
|---|
|  | 41 | Group: Networking/Filesystems | 
|---|
|  | 42 |  | 
|---|
| [2062] | 43 | @@ -392,6 +402,7 @@ | 
|---|
| [925] | 44 | %endif | 
|---|
|  | 45 |  | 
|---|
|  | 46 | %package authlibs-devel | 
|---|
|  | 47 | +Provides: scripts-openafs-authlibs-devel | 
|---|
|  | 48 | %if %{build_authlibs} | 
|---|
| [2060] | 49 | Requires: openafs-authlibs = %{version}-%{release} | 
|---|
| [925] | 50 | %endif | 
|---|
| [2062] | 51 | @@ -410,6 +421,7 @@ | 
|---|
| [925] | 52 | libraries. | 
|---|
|  | 53 |  | 
|---|
|  | 54 | %package devel | 
|---|
|  | 55 | +Provides: scripts-openafs-devel | 
|---|
|  | 56 | Summary: OpenAFS Development Libraries and Headers | 
|---|
|  | 57 | Group: Development/Filesystems | 
|---|
| [2060] | 58 | Requires: openafs = %{version}-%{release} | 
|---|
| [2062] | 59 | @@ -439,6 +451,7 @@ | 
|---|
| [925] | 60 | administrators. | 
|---|
|  | 61 |  | 
|---|
|  | 62 | %package kernel-source | 
|---|
|  | 63 | +Provides: scripts-openafs-kernel-source | 
|---|
|  | 64 | Summary: OpenAFS Kernel Module source tree | 
|---|
|  | 65 | Group: Networking/Filesystems | 
|---|
| [1693] | 66 | Provides: openafs-kernel = %{version} | 
|---|
| [2062] | 67 | @@ -488,6 +501,7 @@ | 
|---|
| [925] | 68 |  | 
|---|
|  | 69 | %if %{krb5support} | 
|---|
|  | 70 | %package krb5 | 
|---|
|  | 71 | +Provides: scripts-openafs-krb5 | 
|---|
|  | 72 | Summary: OpenAFS programs to use with krb5 | 
|---|
| [1693] | 73 | Requires: openafs = %{version} | 
|---|
| [925] | 74 | Group: Networking/Filesystems | 
|---|
| [2062] | 75 | @@ -514,7 +528,7 @@ | 
|---|
| [929] | 76 | %if %{build_modules} | 
|---|
|  | 77 |  | 
|---|
|  | 78 | %if %{fedorakmod} | 
|---|
|  | 79 | -%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)} | 
|---|
|  | 80 | +%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)} | 
|---|
|  | 81 |  | 
|---|
|  | 82 | %else | 
|---|
|  | 83 |  | 
|---|
| [2062] | 84 | @@ -671,6 +685,15 @@ | 
|---|
| [1913] | 85 | #%setup -q -n %{srcdir} | 
|---|
|  | 86 | %setup -q -b 1 -n %{srcdir} | 
|---|
| [925] | 87 |  | 
|---|
| [1913] | 88 | +# Apply the Scripts patch | 
|---|
| [760] | 89 | +%patch1000 -p1 -b .scripts | 
|---|
| [1914] | 90 | +%patch1001 -p1 -b .localcsdb | 
|---|
| [2011] | 91 | +%patch1002 -p1 -b .systemd | 
|---|
|  | 92 | +%patch1003 -p1 -b .systemd-crond | 
|---|
| [2060] | 93 | +%patch1004 -p1 -b .rcu | 
|---|
|  | 94 | +%patch1005 -p1 -b .fsync | 
|---|
| [2062] | 95 | +%patch1006 -p1 -b .zalloc | 
|---|
| [1913] | 96 | + | 
|---|
| [760] | 97 | ############################################################################## | 
|---|
|  | 98 | # | 
|---|
| [1913] | 99 | # building | 
|---|
| [2062] | 100 | @@ -1212,6 +1235,13 @@ | 
|---|
| [1913] | 101 | rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so | 
|---|
|  | 102 | rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.* | 
|---|
|  | 103 | rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.* | 
|---|
|  | 104 | +%else | 
|---|
|  | 105 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so | 
|---|
|  | 106 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so | 
|---|
|  | 107 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.* | 
|---|
|  | 108 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.* | 
|---|
|  | 109 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so | 
|---|
|  | 110 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.* | 
|---|
|  | 111 | %endif | 
|---|
|  | 112 |  | 
|---|
|  | 113 | %endif | 
|---|