source: trunk/server/fedora/specs/openafs.spec.patch @ 2170

Last change on this file since 2170 was 2170, checked in by ezyang, 11 years ago
Port csdb patch to systemd, and include mousetrap db.
File size: 3.3 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 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-systemd.patch
     242Patch1002: openafs-systemd-crond.patch
     243Patch1003: openafs-systemd-csdb.patch
     244Patch1004: openafs-linux-3.1-rcu.patch
     245Patch1005: openafs-linux-3.1-fsync.patch
     246Patch1006: openafs-linux-3.1-zalloc.patch
     247Patch1007: openafs-linux-3.2-nlink.patch
     248
    240249#    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
    241250Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
    242251Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2
     
    316325%if %{build_userspace}
    317326
    318327%package client
     328Provides: scripts-openafs-client
    319329Requires: binutils, openafs = %{version}
    320330
    321331%if %{fedorakmod}
     
    376386
    377387%if %{build_authlibs}
    378388%package authlibs
     389Provides: scripts-openafs-authlibs
    379390Summary: OpenAFS authentication shared libraries
    380391Group: Networking/Filesystems
    381392
     
    392403%endif
    393404
    394405%package authlibs-devel
     406Provides: scripts-openafs-authlibs-devel
    395407%if %{build_authlibs}
    396408Requires: openafs-authlibs = %{version}-%{release}
    397409%endif
     
    410422libraries.
    411423
    412424%package devel
     425Provides: scripts-openafs-devel
    413426Summary: OpenAFS Development Libraries and Headers
    414427Group: Development/Filesystems
    415428Requires: openafs = %{version}-%{release}
     
    439452administrators.
    440453
    441454%package kernel-source
     455Provides: scripts-openafs-kernel-source
    442456Summary: OpenAFS Kernel Module source tree
    443457Group: Networking/Filesystems
    444458Provides: openafs-kernel = %{version}
     
    488502
    489503%if %{krb5support}
    490504%package krb5
     505Provides: scripts-openafs-krb5
    491506Summary: OpenAFS programs to use with krb5
    492507Requires: openafs = %{version}
    493508Group: Networking/Filesystems
     
    514529%if %{build_modules}
    515530
    516531%if %{fedorakmod}
    517 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
     532%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)}
    518533
    519534%else
    520535
     
    671686#%setup -q -n %{srcdir}
    672687%setup -q -b 1 -n %{srcdir}
    673688
     689# Apply the Scripts patch
     690%patch1000 -p1 -b .scripts
     691%patch1001 -p1 -b .systemd
     692%patch1002 -p1 -b .systemd-crond
     693%patch1003 -p1 -b .systemd-csdb
     694%patch1004 -p1 -b .rcu
     695%patch1005 -p1 -b .fsync
     696%patch1006 -p1 -b .zalloc
     697%patch1007 -p1 -b .nlink
     698
    674699##############################################################################
    675700#
    676701# building
     
    12121237rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
    12131238rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
    12141239rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1240%else
     1241chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
     1242chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
     1243chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
     1244chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1245chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so
     1246chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.*
    12151247%endif
    12161248
    12171249%endif
Note: See TracBrowser for help on using the repository browser.