source: branches/fc15-dev/server/fedora/specs/openafs.spec.patch @ 1913

Last change on this file since 1913 was 1913, checked in by achernya, 11 years ago
Update OpenAFS from 1.4.14 to 1.6.0pre6 kaduk finished porting the openafs-scripts patch to 1.6.0, which was then lightly modified be me to get it to compile -- mostly fixing typos. The openafs.spec.patch was also fixed, including another chmod +x hack on some libraries to get rpm to properly process them for Provides directives. Interestingly, these libraries had the correct mode in 1.4.14. The patches that were added to get 1.4.14 to compile have also been removed, as 1.6.0pre6 compiles on kernel 2.6.38 unmodified. openafs-numsysnames is getting removed because 32 is now the default. openafs-localcsdb is getting removed because the change was included in kaduk's patchset.
File size: 2.8 KB
  • openafs.spec

    old new  
    44%define pkgvers 1.6.0
    55# for beta/rc releases make pkgrel 0.<tag>
    66# for real releases make pkgrel 1 (or more for extra releases)
    7 %define pkgrel 0.pre6
     7%define pkgrel 0.pre6.99.scripts.%{scriptsversion}
    88
    99%{!?fedorakmod: %define fedorakmod 1}
    1010%{!?build_dkmspkg: %define build_dkmspkg 1}
     
    247247%endif
    248248ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64
    249249
     250Patch1000: openafs-scripts.patch
     251
    250252#    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
    251253Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
    252254Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2
     
    326328%if %{build_userspace}
    327329
    328330%package client
     331Provides: scripts-openafs-client
    329332Requires: binutils, openafs = %{version}
    330333
    331334%if %{fedorakmod}
     
    386389
    387390%if %{build_authlibs}
    388391%package authlibs
     392Provides: scripts-openafs-authlibs
    389393Summary: OpenAFS authentication shared libraries
    390394Group: Networking/Filesystems
    391395
     
    402406%endif
    403407
    404408%package authlibs-devel
     409Provides: scripts-openafs-authlibs-devel
    405410%if %{build_authlibs}
    406411Requires: openafs-authlibs = %{version}
    407412%endif
     
    420425libraries.
    421426
    422427%package devel
     428Provides: scripts-openafs-devel
    423429Summary: OpenAFS Development Libraries and Headers
    424430Group: Development/Filesystems
    425431
     
    448454administrators.
    449455
    450456%package kernel-source
     457Provides: scripts-openafs-kernel-source
    451458Summary: OpenAFS Kernel Module source tree
    452459Group: Networking/Filesystems
    453460Provides: openafs-kernel = %{version}
     
    497504
    498505%if %{krb5support}
    499506%package krb5
     507Provides: scripts-openafs-krb5
    500508Summary: OpenAFS programs to use with krb5
    501509Requires: openafs = %{version}
    502510Group: Networking/Filesystems
     
    523531%if %{build_modules}
    524532
    525533%if %{fedorakmod}
    526 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
     534%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)}
    527535
    528536%else
    529537
     
    680688#%setup -q -n %{srcdir}
    681689%setup -q -b 1 -n %{srcdir}
    682690
     691# Apply the Scripts patch
     692%patch1000 -p1 -b .scripts
     693
    683694##############################################################################
    684695#
    685696# building
     
    12151226rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
    12161227rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
    12171228rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1229%else
     1230chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
     1231chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
     1232chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
     1233chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1234chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so
     1235chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.*
    12181236%endif
    12191237
    12201238%endif
Note: See TracBrowser for help on using the repository browser.