Changeset 315 in MondoRescue for branches/2.06/mondo/mondo.spec


Ignore:
Timestamp:
Jan 13, 2006, 8:07:06 PM (15 years ago)
Author:
bcornec
Message:
  • svn.log now part of the rpms
  • .spec factorisation continues (mkrel, requires, ...)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/mondo/mondo.spec

    r313 r315  
    1313%define src     %{name}-%{version}.tgz
    1414%define grp     Archiving/Backup
     15%define addreqb mindi >= 1.05, bzip2 >= 0.9, afio, mkisofs, binutils, newt >= 0.50, slang >= 1.4.1
     16
     17# define the mkrel macro if it is not already defined
     18%{?!mkrel:%define mkrel(c:) %{-c:0.%{-c*}.}%{!?_with_unstable:%(perl -e '$_="%{1}";m/(.\*)(\\d+)$/;$rel=${2}-1;re;print "$1$rel";').%{?subrel:%subrel}%{!?subrel:1}.%{?distversion:%distversion}%{?!distversion:%(echo $[%{mdkversion}/10])}}%{?_with_unstable:%{1}}%{?distsuffix:%distsuffix}%{?!distsuffix:mdk}}
    1519
    1620%if %is_redhat
    17 %define src     Applications/Archiving
     21%define grp     Applications/Archiving
     22%define addreq  %{addreqb}
    1823Autoreq:        0
    1924%endif
     
    2126%if %is_mandrake
    2227%define src     %{name}-%{version}.tar.bz2
     28%define addreq  %{addreqb}
    2329Autoreqprov:    no
    2430%endif
     
    2632%if %is_mandriva
    2733%define src     %{name}-%{version}.tar.bz2
     34%define addreq  %{addreqb}
    2835Autoreqprov:    no
    2936%endif
    3037
    3138%if %is_suse
     39%define addreq  %{addreqb}
    3240%endif
    3341
     
    4755BuildRequires:  newt-devel >= 0.50, slang-devel >= 1.4.1, gcc
    4856%ifarch ia64
    49 Requires:   mindi >= 1.05, bzip2 >= 0.9, afio, mkisofs, binutils, elilo, newt >= 0.50, slang >= 1.4.1, buffer, parted
     57Requires:   %{addreq}, elilo, parted
    5058%else
    51 Requires:   mindi >= 1.05, bzip2 >= 0.9, afio, mkisofs, binutils, syslinux >= 1.52, newt >= 0.50, slang >= 1.4.1, buffer
     59Requires:   %{addreq}, syslinux >= 1.52
    5260%endif
    5361
     
    124132%files
    125133%defattr(644,root,root,755)
    126 %doc ChangeLog mondo/docs/en/1.6x-howto/*
     134%doc ChangeLog svn.log mondo/docs/en/1.6x-howto/*
    127135%doc INSTALL COPYING README TODO AUTHORS NEWS
    128136
Note: See TracChangeset for help on using the changeset viewer.