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

Last change on this file since 2337 was 2337, checked in by andersk, 10 years ago
Revert to OpenAFS 1.6.1 plus minimal patches for Linux 3.6
File size: 3.5 KB
  • openafs.spec

    old new  
    44%define pkgvers 1.6.1
    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}
     
    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
     257Patch1001: openafs-systemd-remote-fs.patch
     258Patch1002: openafs-systemd-crond.patch
     259Patch1003: openafs-systemd-csdb.patch
     260Patch1004: openafs-linux-support.patch
     261%define _default_patch_fuzz 2
     262
    255263#    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
    256264Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
    257265Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2
     
    331339%if %{build_userspace}
    332340
    333341%package client
     342Provides: scripts-openafs-client
    334343Requires: binutils, openafs = %{version}
    335344%if 0%{?fedora} >= 15
    336345Requires: systemd-units
     
    403412
    404413%if %{build_authlibs}
    405414%package authlibs
     415Provides: scripts-openafs-authlibs
    406416Summary: OpenAFS authentication shared libraries
    407417Group: Networking/Filesystems
    408418
     
    419429%endif
    420430
    421431%package authlibs-devel
     432Provides: scripts-openafs-authlibs-devel
    422433%if %{build_authlibs}
    423434Requires: openafs-authlibs = %{version}-%{release}
    424435%endif
     
    437448libraries.
    438449
    439450%package devel
     451Provides: scripts-openafs-devel
    440452Summary: OpenAFS Development Libraries and Headers
    441453Group: Development/Filesystems
    442454Requires: openafs = %{version}-%{release}
     
    466478administrators.
    467479
    468480%package kernel-source
     481Provides: scripts-openafs-kernel-source
    469482Summary: OpenAFS Kernel Module source tree
    470483Group: Networking/Filesystems
    471484Provides: openafs-kernel = %{version}
     
    515528
    516529%if %{krb5support}
    517530%package krb5
     531Provides: scripts-openafs-krb5
    518532Summary: OpenAFS programs to use with krb5
    519533Requires: openafs = %{version}
    520534Group: Networking/Filesystems
     
    541555%if %{build_modules}
    542556
    543557%if %{fedorakmod}
    544 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
     558%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)}
    545559
    546560%else
    547561
     
    698712#%setup -q -n %{srcdir}
    699713%setup -q -b 1 -n %{srcdir}
    700714
     715# Apply the Scripts patch
     716%patch1000 -p1 -b .scripts
     717%patch1001 -p1 -b .systemd-remote-fs
     718%patch1002 -p1 -b .systemd-crond
     719%patch1003 -p1 -b .systemd-csdb
     720%patch1004 -p1 -b .end-writeback
     721
    701722##############################################################################
    702723#
    703724# building
     
    869890%endif
    870891%endif
    871892
     893./regen.sh
     894
    872895./configure --with-afs-sysname=${sysname} \
    873896       --prefix=%{_prefix} \
    874897       --libdir=%{_libdir} \
     
    12781301rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
    12791302rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
    12801303rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1304%else
     1305chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
     1306chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
     1307chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
     1308chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1309chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so
     1310chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.*
    12811311%endif
    12821312
    12831313%endif
Note: See TracBrowser for help on using the repository browser.