[2429] | 1 | --- openafs.spec.orig 2013-06-12 22:45:03.694169507 -0400 |
---|
| 2 | +++ openafs.spec 2013-06-12 22:46:25.703169507 -0400 |
---|
[2337] | 3 | @@ -4,7 +4,7 @@ |
---|
[2429] | 4 | %define pkgvers 1.6.3 |
---|
[2066] | 5 | # for beta/rc releases make pkgrel 0.<tag> |
---|
[925] | 6 | # for real releases make pkgrel 1 (or more for extra releases) |
---|
[2429] | 7 | -%define pkgrel 0.pre3 |
---|
| 8 | +%define pkgrel 0.pre3.99.scripts.%{scriptsversion} |
---|
[925] | 9 | |
---|
[2066] | 10 | %{!?fedorakmod: %define fedorakmod 1} |
---|
| 11 | %{!?build_dkmspkg: %define build_dkmspkg 1} |
---|
[2429] | 12 | @@ -249,9 +249,15 @@ |
---|
[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 |
---|
[2288] | 23 | +%define _default_patch_fuzz 2 |
---|
[1] | 24 | + |
---|
| 25 | # http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/... |
---|
| 26 | Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2 |
---|
| 27 | Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2 |
---|
[2371] | 28 | @@ -331,6 +337,7 @@ |
---|
[925] | 29 | %if %{build_userspace} |
---|
[1] | 30 | |
---|
[925] | 31 | %package client |
---|
| 32 | +Provides: scripts-openafs-client |
---|
[1693] | 33 | Requires: binutils, openafs = %{version} |
---|
[2288] | 34 | %if 0%{?fedora} >= 15 |
---|
| 35 | Requires: systemd-units |
---|
[2376] | 36 | @@ -382,6 +389,7 @@ |
---|
| 37 | %package -n dkms-%{name} |
---|
| 38 | Summary: DKMS-ready kernel source for AFS distributed filesystem |
---|
| 39 | Group: Development/Kernel |
---|
| 40 | +Provides: scripts-dkms-%{name} |
---|
| 41 | Provides: openafs-kernel = %{version} |
---|
| 42 | %if %{fedorakmod} |
---|
| 43 | Provides: %{name}-kmod = %{version} |
---|
| 44 | @@ -403,6 +411,7 @@ |
---|
[925] | 45 | |
---|
| 46 | %if %{build_authlibs} |
---|
| 47 | %package authlibs |
---|
| 48 | +Provides: scripts-openafs-authlibs |
---|
| 49 | Summary: OpenAFS authentication shared libraries |
---|
| 50 | Group: Networking/Filesystems |
---|
| 51 | |
---|
[2376] | 52 | @@ -419,6 +428,7 @@ |
---|
[925] | 53 | %endif |
---|
| 54 | |
---|
| 55 | %package authlibs-devel |
---|
| 56 | +Provides: scripts-openafs-authlibs-devel |
---|
| 57 | %if %{build_authlibs} |
---|
[2066] | 58 | Requires: openafs-authlibs = %{version}-%{release} |
---|
[925] | 59 | %endif |
---|
[2376] | 60 | @@ -437,6 +447,7 @@ |
---|
[925] | 61 | libraries. |
---|
| 62 | |
---|
| 63 | %package devel |
---|
| 64 | +Provides: scripts-openafs-devel |
---|
| 65 | Summary: OpenAFS Development Libraries and Headers |
---|
| 66 | Group: Development/Filesystems |
---|
[2066] | 67 | Requires: openafs = %{version}-%{release} |
---|
[2376] | 68 | @@ -466,6 +477,7 @@ |
---|
[925] | 69 | administrators. |
---|
| 70 | |
---|
| 71 | %package kernel-source |
---|
| 72 | +Provides: scripts-openafs-kernel-source |
---|
| 73 | Summary: OpenAFS Kernel Module source tree |
---|
| 74 | Group: Networking/Filesystems |
---|
[1693] | 75 | Provides: openafs-kernel = %{version} |
---|
[2376] | 76 | @@ -515,6 +527,7 @@ |
---|
[925] | 77 | |
---|
| 78 | %if %{krb5support} |
---|
| 79 | %package krb5 |
---|
| 80 | +Provides: scripts-openafs-krb5 |
---|
| 81 | Summary: OpenAFS programs to use with krb5 |
---|
[1693] | 82 | Requires: openafs = %{version} |
---|
[925] | 83 | Group: Networking/Filesystems |
---|
[2376] | 84 | @@ -541,7 +554,7 @@ |
---|
[929] | 85 | %if %{build_modules} |
---|
| 86 | |
---|
| 87 | %if %{fedorakmod} |
---|
| 88 | -%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)} |
---|
| 89 | +%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)} |
---|
| 90 | |
---|
| 91 | %else |
---|
| 92 | |
---|
[2429] | 93 | @@ -698,6 +711,11 @@ |
---|
[2066] | 94 | #%setup -q -n %{srcdir} |
---|
| 95 | %setup -q -b 1 -n %{srcdir} |
---|
[925] | 96 | |
---|
[2066] | 97 | +# Apply the Scripts patch |
---|
[760] | 98 | +%patch1000 -p1 -b .scripts |
---|
[2337] | 99 | +%patch1002 -p1 -b .systemd-crond |
---|
| 100 | +%patch1003 -p1 -b .systemd-csdb |
---|
[2066] | 101 | + |
---|
[760] | 102 | ############################################################################## |
---|
| 103 | # |
---|
[2066] | 104 | # building |
---|
[2376] | 105 | @@ -869,6 +887,8 @@ |
---|
[2335] | 106 | %endif |
---|
| 107 | %endif |
---|
| 108 | |
---|
| 109 | +./regen.sh |
---|
| 110 | + |
---|
| 111 | ./configure --with-afs-sysname=${sysname} \ |
---|
| 112 | --prefix=%{_prefix} \ |
---|
| 113 | --libdir=%{_libdir} \ |
---|
[2376] | 114 | @@ -1257,6 +1277,13 @@ |
---|
[2066] | 115 | rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so |
---|
| 116 | rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.* |
---|
| 117 | rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.* |
---|
| 118 | +%else |
---|
| 119 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so |
---|
| 120 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so |
---|
| 121 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.* |
---|
| 122 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.* |
---|
| 123 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so |
---|
| 124 | +chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.* |
---|
| 125 | %endif |
---|
| 126 | |
---|
| 127 | %endif |
---|