source: branches/fc19-dev/server/fedora/specs/openafs.spec.patch @ 2522

Last change on this file since 2522 was 2522, checked in by achernya, 11 years ago
Merge r2487-r2521 from trunk to branches/fc19-dev
File size: 3.7 KB
  • openafs.spec

    old new  
    44%define pkgvers 1.6.5.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-d_drop.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
     
    331337%if %{build_userspace}
    332338
    333339%package client
     340Provides: scripts-openafs-client
    334341Requires: binutils, openafs = %{version}
    335342%if 0%{?fedora} >= 15
    336343Requires: systemd-units
     
    382389%package -n dkms-%{name}
    383390Summary:        DKMS-ready kernel source for AFS distributed filesystem
    384391Group:          Development/Kernel
     392Provides:       scripts-dkms-%{name}
    385393Provides:       openafs-kernel = %{version}
    386394%if %{fedorakmod}
    387395Provides: %{name}-kmod = %{version}
     
    403411
    404412%if %{build_authlibs}
    405413%package authlibs
     414Provides: scripts-openafs-authlibs
    406415Summary: OpenAFS authentication shared libraries
    407416Group: Networking/Filesystems
    408417
     
    419428%endif
    420429
    421430%package authlibs-devel
     431Provides: scripts-openafs-authlibs-devel
    422432%if %{build_authlibs}
    423433Requires: openafs-authlibs = %{version}-%{release}
    424434%endif
     
    437447libraries.
    438448
    439449%package devel
     450Provides: scripts-openafs-devel
    440451Summary: OpenAFS Development Libraries and Headers
    441452Group: Development/Filesystems
    442453Requires: openafs = %{version}-%{release}
     
    466477administrators.
    467478
    468479%package kernel-source
     480Provides: scripts-openafs-kernel-source
    469481Summary: OpenAFS Kernel Module source tree
    470482Group: Networking/Filesystems
    471483Provides: openafs-kernel = %{version}
     
    515527
    516528%if %{krb5support}
    517529%package krb5
     530Provides: scripts-openafs-krb5
    518531Summary: OpenAFS programs to use with krb5
    519532Requires: openafs = %{version}
    520533Group: Networking/Filesystems
     
    541554%if %{build_modules}
    542555
    543556%if %{fedorakmod}
    544 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
     557%{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} | sed '/^%package/ aProvides: scripts-kmod-openafs' 2>/dev/null)}
    545558
    546559%else
    547560
     
    698711#%setup -q -n %{srcdir}
    699712%setup -q -b 1 -n %{srcdir}
    700713
     714# Apply the Scripts patch
     715%patch1000 -p1 -b .scripts
     716%patch1002 -p1 -b .systemd-crond
     717%patch1003 -p1 -b .systemd-csdb
     718%patch1004 -p1 -b .d_drop
     719
    701720##############################################################################
    702721#
    703722# building
     
    869887%endif
    870888%endif
    871889
     890./regen.sh
     891
    872892./configure --with-afs-sysname=${sysname} \
    873893       --prefix=%{_prefix} \
    874894       --libdir=%{_libdir} \
     
    12571277rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
    12581278rm -f $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
    12591279rm -f $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1280%else
     1281chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so
     1282chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so
     1283chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsauthent.so.*
     1284chmod +x $RPM_BUILD_ROOT%{_libdir}/libafsrpc.so.*
     1285chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so
     1286chmod +x $RPM_BUILD_ROOT%{_libdir}/libkopenafs.so.*
    12601287%endif
    12611288
    12621289%endif
Note: See TracBrowser for help on using the repository browser.