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

Last change on this file since 2644 was 2644, checked in by andersk, 10 years ago
OpenAFS: avoid mvid NULL deref in check_bad_parent Patch from http://gerrit.openafs.org/11616 .
File size: 4.0 KB
  • openafs.spec

    old new  
    44%define pkgvers 1.6.10
    55# for beta/rc releases make pkgrel 0.<tag>
    66# for real releases make pkgrel 1 (or more for extra releases)
    7 %define pkgrel 2
     7%define pkgrel 2.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-afs_lookup-return.patch
     260Patch1005: openafs-d_revalidate-mtpt.patch
     261Patch1006: openafs-linux-3.17.patch
     262Patch1007: openafs-mvid-NULL-deref.patch
     263%define _default_patch_fuzz 2
     264
    255265#    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
    256266Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
    257267Source1: 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 || 0%{?rhel} >= 7
    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} %{depmod} %{kvariants} 2>/dev/null)}
     558%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{depmod} %{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 .afs_lookup-return
     720%patch1005 -p1 -b .d_revalidate-mtpt
     721%patch1006 -p1 -b .linux-3.17
     722%patch1007 -p1 -b .mvid-NULL-deref.patch
     723
    701724##############################################################################
    702725#
    703726# building
     
    871891%endif
    872892%endif
    873893
     894./regen.sh
     895
    874896./configure --with-afs-sysname=${sysname} \
    875897       --prefix=%{_prefix} \
    876898       --libdir=%{_libdir} \
     
    12671289rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
    12681290rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
    12691291rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1292%else
     1293chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
     1294chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
     1295chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
     1296chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1297chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so
     1298chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.*
    12701299%endif
    12711300
    12721301%endif
Note: See TracBrowser for help on using the repository browser.