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

Last change on this file since 2060 was 2060, checked in by ezyang, 11 years ago
Backport OpenAFS patches to make it work with Linux 3.1
File size: 3.2 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
     246
    240247#    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
    241248Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
    242249Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2
     
    316323%if %{build_userspace}
    317324
    318325%package client
     326Provides: scripts-openafs-client
    319327Requires: binutils, openafs = %{version}
    320328
    321329%if %{fedorakmod}
     
    376384
    377385%if %{build_authlibs}
    378386%package authlibs
     387Provides: scripts-openafs-authlibs
    379388Summary: OpenAFS authentication shared libraries
    380389Group: Networking/Filesystems
    381390
     
    392401%endif
    393402
    394403%package authlibs-devel
     404Provides: scripts-openafs-authlibs-devel
    395405%if %{build_authlibs}
    396406Requires: openafs-authlibs = %{version}-%{release}
    397407%endif
     
    410420libraries.
    411421
    412422%package devel
     423Provides: scripts-openafs-devel
    413424Summary: OpenAFS Development Libraries and Headers
    414425Group: Development/Filesystems
    415426Requires: openafs = %{version}-%{release}
     
    439450administrators.
    440451
    441452%package kernel-source
     453Provides: scripts-openafs-kernel-source
    442454Summary: OpenAFS Kernel Module source tree
    443455Group: Networking/Filesystems
    444456Provides: openafs-kernel = %{version}
     
    488500
    489501%if %{krb5support}
    490502%package krb5
     503Provides: scripts-openafs-krb5
    491504Summary: OpenAFS programs to use with krb5
    492505Requires: openafs = %{version}
    493506Group: Networking/Filesystems
     
    514527%if %{build_modules}
    515528
    516529%if %{fedorakmod}
    517 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
     530%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)}
    518531
    519532%else
    520533
     
    671684#%setup -q -n %{srcdir}
    672685%setup -q -b 1 -n %{srcdir}
    673686
     687# Apply the Scripts patch
     688%patch1000 -p1 -b .scripts
     689%patch1001 -p1 -b .localcsdb
     690%patch1002 -p1 -b .systemd
     691%patch1003 -p1 -b .systemd-crond
     692%patch1004 -p1 -b .rcu
     693%patch1005 -p1 -b .fsync
     694
    674695##############################################################################
    675696#
    676697# building
     
    12121233rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
    12131234rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
    12141235rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1236%else
     1237chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
     1238chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
     1239chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
     1240chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1241chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so
     1242chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.*
    12151243%endif
    12161244
    12171245%endif
Note: See TracBrowser for help on using the repository browser.