source: branches/fc15-dev/server/fedora/specs/openafs.spec.patch @ 1930

Last change on this file since 1930 was 1930, checked in by achernya, 11 years ago
Update to OpenAFS 1.6.0pre7
File size: 2.9 KB
  • openafs.spec

    old new  
    44%define pkgvers 1.6.0
    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.pre7
     7%define pkgrel 0.pre7.99.scripts.%{scriptsversion}
    88
    99%{!?fedorakmod: %define fedorakmod 1}
    1010%{!?build_dkmspkg: %define build_dkmspkg 1}
     
    247247%endif
    248248ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64
    249249
     250Patch1000: openafs-scripts.patch
     251Patch1001: openafs-localcsdb.patch
     252
    250253#    http://dl.openafs.org/dl/openafs/candidate/%{afsvers}/...
    251254Source0: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-src.tar.bz2
    252255Source1: http://www.openafs.org/dl/openafs/%{afsvers}/openafs-%{afsvers}-doc.tar.bz2
     
    326329%if %{build_userspace}
    327330
    328331%package client
     332Provides: scripts-openafs-client
    329333Requires: binutils, openafs = %{version}
    330334
    331335%if %{fedorakmod}
     
    386390
    387391%if %{build_authlibs}
    388392%package authlibs
     393Provides: scripts-openafs-authlibs
    389394Summary: OpenAFS authentication shared libraries
    390395Group: Networking/Filesystems
    391396
     
    402407%endif
    403408
    404409%package authlibs-devel
     410Provides: scripts-openafs-authlibs-devel
    405411%if %{build_authlibs}
    406412Requires: openafs-authlibs = %{version}
    407413%endif
     
    420426libraries.
    421427
    422428%package devel
     429Provides: scripts-openafs-devel
    423430Summary: OpenAFS Development Libraries and Headers
    424431Group: Development/Filesystems
    425432
     
    448455administrators.
    449456
    450457%package kernel-source
     458Provides: scripts-openafs-kernel-source
    451459Summary: OpenAFS Kernel Module source tree
    452460Group: Networking/Filesystems
    453461Provides: openafs-kernel = %{version}
     
    497505
    498506%if %{krb5support}
    499507%package krb5
     508Provides: scripts-openafs-krb5
    500509Summary: OpenAFS programs to use with krb5
    501510Requires: openafs = %{version}
    502511Group: Networking/Filesystems
     
    523532%if %{build_modules}
    524533
    525534%if %{fedorakmod}
    526 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
     535%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)}
    527536
    528537%else
    529538
     
    680689#%setup -q -n %{srcdir}
    681690%setup -q -b 1 -n %{srcdir}
    682691
     692# Apply the Scripts patch
     693%patch1000 -p1 -b .scripts
     694%patch1001 -p1 -b .localcsdb
     695
    683696##############################################################################
    684697#
    685698# building
     
    12151228rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
    12161229rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
    12171230rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1231%else
     1232chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
     1233chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
     1234chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
     1235chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1236chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so
     1237chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.*
    12181238%endif
    12191239
    12201240%endif
Note: See TracBrowser for help on using the repository browser.