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

Last change on this file since 2703 was 2671, checked in by andersk, 8 years ago
Update OpenAFS to 1.6.11pre2
File size: 3.6 KB
  • openafs.spec

    old new  
    44%define pkgvers 1.6.11
    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.pre2
     7%define pkgrel 0.pre2.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
     257Patch1003: openafs-systemd-csdb.patch
     258%define _default_patch_fuzz 2
     259
    255260#    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
    256261Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
    257262Source1: 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%patch1003 -p1 -b .systemd-csdb
     718
    701719##############################################################################
    702720#
    703721# 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.