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

Last change on this file since 2270 was 2200, checked in by ezyang, 13 years ago
Upgrade OpenAFS to 1.6.1 (undeployed)
File size: 3.1 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-remote-fs.patch
     242Patch1002: openafs-systemd-crond.patch
     243Patch1003: openafs-systemd-csdb.patch
     244
    240245#    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
    241246Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
    242247Source1: 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-remote-fs
     692%patch1002 -p1 -b .systemd-crond
     693%patch1003 -p1 -b .systemd-csdb
     694
    674695##############################################################################
    675696#
    676697# 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.