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

Last change on this file since 2414 was 2414, checked in by achernya, 10 years ago
Update to OpenAFS 1.6.2.1, also try to stop crashing
File size: 3.7 KB
  • openafs.spec

    old new  
    44%define pkgvers 1.6.2.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
     257Patch1002: openafs-systemd-crond.patch
     258Patch1003: openafs-systemd-csdb.patch
     259Patch1004: openafs-TryEvictVCache-crash.patch
     260%define _default_patch_fuzz 2
     261
    255262#    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
    256263Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
    257264Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2
     
    331338%if %{build_userspace}
    332339
    333340%package client
     341Provides: scripts-openafs-client
    334342Requires: binutils, openafs = %{version}
    335343%if 0%{?fedora} >= 15
    336344Requires: systemd-units
     
    382390%package -n dkms-%{name}
    383391Summary:        DKMS-ready kernel source for AFS distributed filesystem
    384392Group:          Development/Kernel
     393Provides:       scripts-dkms-%{name}
    385394Provides:       openafs-kernel = %{version}
    386395%if %{fedorakmod}
    387396Provides: %{name}-kmod = %{version}
     
    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%patch1002 -p1 -b .systemd-crond
     718%patch1003 -p1 -b .systemd-csdb
     719%patch1004 -p1 -b .vcache
     720
    701721##############################################################################
    702722#
    703723# building
     
    869889%endif
    870890%endif
    871891
     892./regen.sh
     893
    872894./configure --with-afs-sysname=${sysname} \
    873895       --prefix=%{_prefix} \
    874896       --libdir=%{_libdir} \
     
    12571279rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
    12581280rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
    12591281rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1282%else
     1283chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
     1284chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
     1285chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
     1286chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1287chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so
     1288chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.*
    12601289%endif
    12611290
    12621291%endif
Note: See TracBrowser for help on using the repository browser.