[2591] | 1 | --- openafs.spec.orig 2014-05-25 21:15:54.539027644 -0400 |
---|
| 2 | +++ openafs.spec 2014-05-25 21:16:27.836268275 -0400 |
---|
[2337] | 3 | @@ -4,7 +4,7 @@ |
---|
[2615] | 4 | %define pkgvers 1.6.10 |
---|
[2066] | 5 | # for beta/rc releases make pkgrel 0.<tag> |
---|
[925] | 6 | # for real releases make pkgrel 1 (or more for extra releases) |
---|
[2637] | 7 | -%define pkgrel 2 |
---|
| 8 | +%define pkgrel 2.99.scripts.%{scriptsversion} |
---|
[925] | 9 | |
---|
[2066] | 10 | %{!?fedorakmod: %define fedorakmod 1} |
---|
| 11 | %{!?build_dkmspkg: %define build_dkmspkg 1} |
---|
[2644] | 12 | @@ -249,9 +249,19 @@ |
---|
[2335] | 13 | %if %{build_modules} |
---|
| 14 | BuildRequires: kernel-devel |
---|
| 15 | %endif |
---|
| 16 | +BuildRequires: libtool |
---|
[2066] | 17 | |
---|
[760] | 18 | ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64 |
---|
| 19 | |
---|
[1] | 20 | +Patch1000: openafs-scripts.patch |
---|
[2337] | 21 | +Patch1002: openafs-systemd-crond.patch |
---|
| 22 | +Patch1003: openafs-systemd-csdb.patch |
---|
[2637] | 23 | +Patch1004: openafs-afs_lookup-return.patch |
---|
| 24 | +Patch1005: openafs-d_revalidate-mtpt.patch |
---|
[2639] | 25 | +Patch1006: openafs-linux-3.17.patch |
---|
[2644] | 26 | +Patch1007: openafs-mvid-NULL-deref.patch |
---|
[2288] | 27 | +%define _default_patch_fuzz 2 |
---|
[1] | 28 | + |
---|
| 29 | # http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/... |
---|
| 30 | Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2 |
---|
| 31 | Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2 |
---|
[2633] | 32 | @@ -331,6 +338,7 @@ |
---|
[925] | 33 | %if %{build_userspace} |
---|
[1] | 34 | |
---|
[925] | 35 | %package client |
---|
| 36 | +Provides: scripts-openafs-client |
---|
[1693] | 37 | Requires: binutils, openafs = %{version} |
---|
[2591] | 38 | %if 0%{?fedora} >= 15 || 0%{?rhel} >= 7 |
---|
[2288] | 39 | Requires: systemd-units |
---|
[2633] | 40 | @@ -382,6 +390,7 @@ |
---|
[2376] | 41 | %package -n dkms-%{name} |
---|
| 42 | Summary: DKMS-ready kernel source for AFS distributed filesystem |
---|
| 43 | Group: Development/Kernel |
---|
| 44 | +Provides: scripts-dkms-%{name} |
---|
| 45 | Provides: openafs-kernel = %{version} |
---|
| 46 | %if %{fedorakmod} |
---|
| 47 | Provides: %{name}-kmod = %{version} |
---|
[2633] | 48 | @@ -403,6 +412,7 @@ |
---|
[925] | 49 | |
---|
| 50 | %if %{build_authlibs} |
---|
| 51 | %package authlibs |
---|
| 52 | +Provides: scripts-openafs-authlibs |
---|
| 53 | Summary: OpenAFS authentication shared libraries |
---|
| 54 | Group: Networking/Filesystems |
---|
| 55 | |
---|
[2633] | 56 | @@ -419,6 +429,7 @@ |
---|
[925] | 57 | %endif |
---|
| 58 | |
---|
| 59 | %package authlibs-devel |
---|
| 60 | +Provides: scripts-openafs-authlibs-devel |
---|
| 61 | %if %{build_authlibs} |
---|
[2066] | 62 | Requires: openafs-authlibs = %{version}-%{release} |
---|
[925] | 63 | %endif |
---|
[2633] | 64 | @@ -437,6 +448,7 @@ |
---|
[925] | 65 | libraries. |
---|
| 66 | |
---|
| 67 | %package devel |
---|
| 68 | +Provides: scripts-openafs-devel |
---|
| 69 | Summary: OpenAFS Development Libraries and Headers |
---|
| 70 | Group: Development/Filesystems |
---|
[2066] | 71 | Requires: openafs = %{version}-%{release} |
---|
[2633] | 72 | @@ -466,6 +478,7 @@ |
---|
[925] | 73 | administrators. |
---|
| 74 | |
---|
| 75 | %package kernel-source |
---|
| 76 | +Provides: scripts-openafs-kernel-source |
---|
| 77 | Summary: OpenAFS Kernel Module source tree |
---|
| 78 | Group: Networking/Filesystems |
---|
[1693] | 79 | Provides: openafs-kernel = %{version} |
---|
[2633] | 80 | @@ -515,6 +528,7 @@ |
---|
[925] | 81 | |
---|
| 82 | %if %{krb5support} |
---|
| 83 | %package krb5 |
---|
| 84 | +Provides: scripts-openafs-krb5 |
---|
| 85 | Summary: OpenAFS programs to use with krb5 |
---|
[1693] | 86 | Requires: openafs = %{version} |
---|
[925] | 87 | Group: Networking/Filesystems |
---|
[2633] | 88 | @@ -541,7 +555,7 @@ |
---|
[929] | 89 | %if %{build_modules} |
---|
| 90 | |
---|
| 91 | %if %{fedorakmod} |
---|
[2615] | 92 | -%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{depmod} %{kvariants} 2>/dev/null)} |
---|
| 93 | +%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{depmod} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)} |
---|
[929] | 94 | |
---|
| 95 | %else |
---|
| 96 | |
---|
[2644] | 97 | @@ -698,6 +712,15 @@ |
---|
[2066] | 98 | #%setup -q -n %{srcdir} |
---|
| 99 | %setup -q -b 1 -n %{srcdir} |
---|
[925] | 100 | |
---|
[2066] | 101 | +# Apply the Scripts patch |
---|
[760] | 102 | +%patch1000 -p1 -b .scripts |
---|
[2337] | 103 | +%patch1002 -p1 -b .systemd-crond |
---|
| 104 | +%patch1003 -p1 -b .systemd-csdb |
---|
[2637] | 105 | +%patch1004 -p1 -b .afs_lookup-return |
---|
[2639] | 106 | +%patch1005 -p1 -b .d_revalidate-mtpt |
---|
| 107 | +%patch1006 -p1 -b .linux-3.17 |
---|
[2644] | 108 | +%patch1007 -p1 -b .mvid-NULL-deref.patch |
---|
[2066] | 109 | + |
---|
[760] | 110 | ############################################################################## |
---|
| 111 | # |
---|
[2066] | 112 | # building |
---|
[2633] | 113 | @@ -871,6 +891,8 @@ |
---|
[2335] | 114 | %endif |
---|
| 115 | %endif |
---|
| 116 | |
---|
| 117 | +./regen.sh |
---|
| 118 | + |
---|
| 119 | ./configure --with-afs-sysname=${sysname} \ |
---|
| 120 | --prefix=%{_prefix} \ |
---|
| 121 | --libdir=%{_libdir} \ |
---|
[2633] | 122 | @@ -1267,6 +1289,13 @@ |
---|
[2066] | 123 | rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so |
---|
| 124 | rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.* |
---|
| 125 | rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.* |
---|
| 126 | +%else |
---|
| 127 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so |
---|
| 128 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so |
---|
| 129 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.* |
---|
| 130 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.* |
---|
| 131 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so |
---|
| 132 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.* |
---|
| 133 | %endif |
---|
| 134 | |
---|
| 135 | %endif |
---|