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

Last change on this file since 2841 was 2712, checked in by andersk, 7 years ago
Update OpenAFS to 1.6.12
File size: 3.6 KB
  • openafs.spec

    old new  
    44%define pkgvers 1.6.12
    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}
     
    255255%if %{build_modules}
    256256BuildRequires: kernel-devel
    257257%endif
     258BuildRequires: libtool
    258259
    259260ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64
    260261
     262Patch1000: openafs-scripts.patch
     263Patch1003: openafs-systemd-csdb.patch
     264%define _default_patch_fuzz 2
     265
    261266#    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
    262267Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
    263268Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2
     
    337342%if %{build_userspace}
    338343
    339344%package client
     345Provides: scripts-openafs-client
    340346Requires: binutils, openafs = %{version}
    341347%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
    342348Requires: systemd-units
     
    388394%package -n dkms-%{name}
    389395Summary:        DKMS-ready kernel source for AFS distributed filesystem
    390396Group:          Development/Kernel
     397Provides:       scripts-dkms-%{name}
    391398Provides:       openafs-kernel = %{version}
    392399%if %{fedorakmod}
    393400Provides: %{name}-kmod = %{version}
     
    409416
    410417%if %{build_authlibs}
    411418%package authlibs
     419Provides: scripts-openafs-authlibs
    412420Summary: OpenAFS authentication shared libraries
    413421Group: Networking/Filesystems
    414422
     
    425433%endif
    426434
    427435%package authlibs-devel
     436Provides: scripts-openafs-authlibs-devel
    428437%if %{build_authlibs}
    429438Requires: openafs-authlibs = %{version}-%{release}
    430439%endif
     
    443452libraries.
    444453
    445454%package devel
     455Provides: scripts-openafs-devel
    446456Summary: OpenAFS Development Libraries and Headers
    447457Group: Development/Filesystems
    448458Requires: openafs = %{version}-%{release}
     
    472482administrators.
    473483
    474484%package kernel-source
     485Provides: scripts-openafs-kernel-source
    475486Summary: OpenAFS Kernel Module source tree
    476487Group: Networking/Filesystems
    477488Provides: openafs-kernel = %{version}
     
    521532
    522533%if %{krb5support}
    523534%package krb5
     535Provides: scripts-openafs-krb5
    524536Summary: OpenAFS programs to use with krb5
    525537Requires: openafs = %{version}
    526538Group: Networking/Filesystems
     
    547559%if %{build_modules}
    548560
    549561%if %{fedorakmod}
    550 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{depmod} %{kvariants} 2>/dev/null)}
     562%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{depmod} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)}
    551563
    552564%else
    553565
     
    704716#%setup -q -n %{srcdir}
    705717%setup -q -b 1 -n %{srcdir}
    706718
     719# Apply the Scripts patch
     720%patch1000 -p1 -b .scripts
     721%patch1003 -p1 -b .systemd-csdb
     722
    707723##############################################################################
    708724#
    709725# building
     
    877893%endif
    878894%endif
    879895
     896./regen.sh
     897
    880898./configure --with-afs-sysname=${sysname} \
    881899       --prefix=%{_prefix} \
    882900       --libdir=%{_libdir} \
     
    12731291rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
    12741292rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
    12751293rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1294%else
     1295chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
     1296chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
     1297chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
     1298chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1299chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so
     1300chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.*
    12761301%endif
    12771302
    12781303%endif
Note: See TracBrowser for help on using the repository browser.