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

Last change on this file since 2371 was 2371, checked in by andersk, 10 years ago
Update to OpenAFS 1.6.2pre3 for kernel 3.7 support
File size: 3.3 KB
  • openafs.spec

    old new  
    44%define pkgvers 1.6.2
    55# for beta/rc releases make pkgrel 0.<tag>
    66# for real releases make pkgrel 1 (or more for extra releases)
    7 %define pkgrel 0.pre3
     7%define pkgrel 0.pre3.99.scripts.%{scriptsversion}
    88
    99%{!?fedorakmod: %define fedorakmod 1}
    1010%{!?build_dkmspkg: %define build_dkmspkg 1}
     
    249249%if %{build_modules}
    250250BuildRequires: kernel-devel
    251251%endif
     252BuildRequires: libtool
    252253
    253254ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64
    254255
     256Patch1000: openafs-scripts.patch
     257Patch1002: openafs-systemd-crond.patch
     258Patch1003: openafs-systemd-csdb.patch
     259%define _default_patch_fuzz 2
     260
    255261#    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
    256262Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
    257263Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2
     
    331337%if %{build_userspace}
    332338
    333339%package client
     340Provides: scripts-openafs-client
    334341Requires: binutils, openafs = %{version}
    335342%if 0%{?fedora} >= 15
    336343Requires: systemd-units
     
    403410
    404411%if %{build_authlibs}
    405412%package authlibs
     413Provides: scripts-openafs-authlibs
    406414Summary: OpenAFS authentication shared libraries
    407415Group: Networking/Filesystems
    408416
     
    419427%endif
    420428
    421429%package authlibs-devel
     430Provides: scripts-openafs-authlibs-devel
    422431%if %{build_authlibs}
    423432Requires: openafs-authlibs = %{version}-%{release}
    424433%endif
     
    437446libraries.
    438447
    439448%package devel
     449Provides: scripts-openafs-devel
    440450Summary: OpenAFS Development Libraries and Headers
    441451Group: Development/Filesystems
    442452Requires: openafs = %{version}-%{release}
     
    466476administrators.
    467477
    468478%package kernel-source
     479Provides: scripts-openafs-kernel-source
    469480Summary: OpenAFS Kernel Module source tree
    470481Group: Networking/Filesystems
    471482Provides: openafs-kernel = %{version}
     
    515526
    516527%if %{krb5support}
    517528%package krb5
     529Provides: scripts-openafs-krb5
    518530Summary: OpenAFS programs to use with krb5
    519531Requires: openafs = %{version}
    520532Group: Networking/Filesystems
     
    541553%if %{build_modules}
    542554
    543555%if %{fedorakmod}
    544 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
     556%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)}
    545557
    546558%else
    547559
     
    698710#%setup -q -n %{srcdir}
    699711%setup -q -b 1 -n %{srcdir}
    700712
     713# Apply the Scripts patch
     714%patch1000 -p1 -b .scripts
     715%patch1002 -p1 -b .systemd-crond
     716%patch1003 -p1 -b .systemd-csdb
     717
    701718##############################################################################
    702719#
    703720# building
     
    869886%endif
    870887%endif
    871888
     889./regen.sh
     890
    872891./configure --with-afs-sysname=${sysname} \
    873892       --prefix=%{_prefix} \
    874893       --libdir=%{_libdir} \
     
    12781297rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
    12791298rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
    12801299rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1300%else
     1301chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
     1302chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
     1303chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
     1304chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1305chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so
     1306chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.*
    12811307%endif
    12821308
    12831309%endif
Note: See TracBrowser for help on using the repository browser.