Changeset 315 in MondoRescue for branches/2.06/mindi/mindi.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/mindi/mindi.spec

    r314 r315  
    1111%define version VVV
    1212%define mrel    RRR
     13%define release %{mrel}
    1314%define src     %{name}-%{version}.tgz
    1415%define grp     Archiving/Backup
    1516%define addreqb bzip2 >= 0.9, mkisofs, ncurses, binutils, gawk, dosfstools, afio
     17
     18# define the mkrel macro if it is not already defined
     19%{?!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}}
    1620
    1721%if %is_redhat
     
    2428%define src     %{name}-%{version}.tar.bz2
    2529%define addreq  %{addreqb}, which
     30%define release %{mkrel} %{mrel}
    2631Autoreqprov: no
    2732%endif
     
    3035%define src     %{name}-%{version}.tar.bz2
    3136%define addreq  %{addreqb}, which
     37%define release %{mkrel} %{mrel}
    3238Autoreqprov: no
    3339%endif
     
    4046Name:       %name
    4147Version:    %version
    42 Release:    %mrel
     48Release:    %release
    4349License:    GPL
    4450Group:      %{grp}
     
    96102%defattr(644,root,root,755)
    97103%config(noreplace) %{_sysconfdir}/mindi/deplist.txt
    98 %doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox
     104%doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox svn.log
    99105%{_mandir}
    100106%{_libdir}/mindi
Note: See TracChangeset for help on using the changeset viewer.