Changeset 317 in MondoRescue for trunk/mindi/mindi.spec


Ignore:
Timestamp:
Jan 13, 2006, 8:46:06 PM (15 years ago)
Author:
bcornec
Message:

merge -r309:316 $SVN_M/branches/2.06

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi/mindi.spec

    r262 r317  
    1010%define name    mindi
    1111%define version VVV
    12 %define mrel    1
     12%define mrel    RRR
     13# if mandriva official build (rpm --with is_official)
     14%{?is_official:%define rel %{mkrel} %{mrel}}%{!?is_official:%define rel %{mrel}}
    1315%define src     %{name}-%{version}.tgz
     16%define grp     Archiving/Backup
     17%define addreqb bzip2 >= 0.9, mkisofs, ncurses, binutils, gawk, dosfstools, afio
    1418
    1519%if %is_redhat
    16 Group:          Applications/Archiving
     20%define grp     Applications/Archiving
     21%define addreq  %{addreqb}, which
    1722Autoreq:    0
    1823%endif
     
    2025%if %is_mandrake
    2126%define src     %{name}-%{version}.tar.bz2
    22 Group:          Archiving/Backup
     27%define addreq  %{addreqb}, which
    2328Autoreqprov: no
    2429%endif
     
    2631%if %is_mandriva
    2732%define src     %{name}-%{version}.tar.bz2
    28 Group:          Archiving/Backup
     33%define addreq  %{addreqb}, which
    2934Autoreqprov: no
    3035%endif
    3136
    3237%if %is_suse
    33 Group:          Archiving/Backup
     38%define addreq  %{addreqb}
     39%endif
     40
     41# define the mkrel macro if it is not already defined if mandriva offical build
     42%if is_official
     43%{?!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}}
    3444%endif
    3545
     
    3747Name:       %name
    3848Version:    %version
    39 Release:    %mrel
     49Release:    %rel
    4050License:    GPL
    41 Group:      System/Kernel and hardware
     51Group:      %{grp}
    4252Url:        http://mondorescue.berlios.de
    4353Source:     %{src}
    4454BuildRoot:  %{_tmppath}/%{name}-%{version}
    45 Requires:   bzip2 >= 0.9, mkisofs, ncurses, binutils, gawk, dosfstools, afio, which
     55Requires:   %{addreq}
    4656# Not on all systems
    4757#Conflicts: bonnie++
     
    93103%defattr(644,root,root,755)
    94104%config(noreplace) %{_sysconfdir}/mindi/deplist.txt
    95 %doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox
     105%doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox svn.log
    96106%{_mandir}
    97107%{_libdir}/mindi
Note: See TracChangeset for help on using the changeset viewer.