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

Last change on this file was 2062, checked in by geofft, 13 years ago
openafs: One last patch for Linux 3.1 support Marc Dionne says, "other than that I don't see anything missing in 1.6 for 3.1". Taken from http://gerrit.openafs.org/6104
File size: 3.3 KB
  • rpmbuild/SPECS/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 1
     7%define pkgrel 1.99.scripts.%{scriptsversion}
    88
    99%{!?fedorakmod: %define fedorakmod 1}
    1010%{!?build_dkmspkg: %define build_dkmspkg 1}
     
    237237
    238238ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64
    239239
     240Patch1000: openafs-scripts.patch
     241Patch1001: openafs-localcsdb.patch
     242Patch1002: openafs-systemd.patch
     243Patch1003: openafs-systemd-crond.patch
     244Patch1004: openafs-linux-3.1-rcu.patch
     245Patch1005: openafs-linux-3.1-fsync.patch
     246Patch1006: openafs-linux-3.1-zalloc.patch
     247
    240248#    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
    241249Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
    242250Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2
     
    316324%if %{build_userspace}
    317325
    318326%package client
     327Provides: scripts-openafs-client
    319328Requires: binutils, openafs = %{version}
    320329
    321330%if %{fedorakmod}
     
    376385
    377386%if %{build_authlibs}
    378387%package authlibs
     388Provides: scripts-openafs-authlibs
    379389Summary: OpenAFS authentication shared libraries
    380390Group: Networking/Filesystems
    381391
     
    392402%endif
    393403
    394404%package authlibs-devel
     405Provides: scripts-openafs-authlibs-devel
    395406%if %{build_authlibs}
    396407Requires: openafs-authlibs = %{version}-%{release}
    397408%endif
     
    410421libraries.
    411422
    412423%package devel
     424Provides: scripts-openafs-devel
    413425Summary: OpenAFS Development Libraries and Headers
    414426Group: Development/Filesystems
    415427Requires: openafs = %{version}-%{release}
     
    439451administrators.
    440452
    441453%package kernel-source
     454Provides: scripts-openafs-kernel-source
    442455Summary: OpenAFS Kernel Module source tree
    443456Group: Networking/Filesystems
    444457Provides: openafs-kernel = %{version}
     
    488501
    489502%if %{krb5support}
    490503%package krb5
     504Provides: scripts-openafs-krb5
    491505Summary: OpenAFS programs to use with krb5
    492506Requires: openafs = %{version}
    493507Group: Networking/Filesystems
     
    514528%if %{build_modules}
    515529
    516530%if %{fedorakmod}
    517 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
     531%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)}
    518532
    519533%else
    520534
     
    671685#%setup -q -n %{srcdir}
    672686%setup -q -b 1 -n %{srcdir}
    673687
     688# Apply the Scripts patch
     689%patch1000 -p1 -b .scripts
     690%patch1001 -p1 -b .localcsdb
     691%patch1002 -p1 -b .systemd
     692%patch1003 -p1 -b .systemd-crond
     693%patch1004 -p1 -b .rcu
     694%patch1005 -p1 -b .fsync
     695%patch1006 -p1 -b .zalloc
     696
    674697##############################################################################
    675698#
    676699# building
     
    12121235rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
    12131236rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
    12141237rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1238%else
     1239chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
     1240chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
     1241chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
     1242chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1243chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so
     1244chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.*
    12151245%endif
    12161246
    12171247%endif
Note: See TracBrowser for help on using the repository browser.