Ignore:
Timestamp:
Feb 14, 2006, 11:36:15 PM (14 years ago)
Author:
bcornec
Message:

RPMs are now made with a .spec containing m4 macros expanded with tools/mkrpm
this allows for a simpler spec file at the end,
which should be suited for at least Mandriva official packages.
Added a new mkspec tool which does the expansion
This way of dealing with distributions will be used is some other areas in the future

Location:
branches/stable/mindi/distributions/rpm
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/distributions/rpm/mindi.spec

    r347 r388  
    22# $Id$
    33#
    4 %define is_mandriva %(test -e /etc/mandriva-release && echo 1 || echo 0)
    5 %define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
    6 %define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)
    7 %define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
    8 %define is_redhat %(test -e /etc/redhat-release && echo 1 || echo 0)
    9 
    104%define name    mindi
    115%define version VVV
    126%define mrel    RRR
     7%define src     SSS
     8%define grp     GRP
     9%define addreqb bzip2 >= 0.9, mkisofs, ncurses, binutils, gawk, dosfstools
     10%define addreq  DDD
     11
    1312# if mandriva official build (rpm --with is_official)
    1413%{?is_official:%define rel %{mkrel} %{mrel}}%{!?is_official:%define rel %{mrel}}
    15 %define src     %{name}-%{version}.tgz
    16 %define grp     Archiving/Backup
    17 %define addreqb bzip2 >= 0.9, mkisofs, ncurses, binutils, gawk, dosfstools, afio
    18 
    19 %if %is_redhat
    20 %define grp     Applications/Archiving
    21 %define addreq  %{addreqb}, which, grep >= 2.5
    22 Autoreq:    0
    23 %endif
    24 
    25 %if %is_mandrake
    26 %define src     %{name}-%{version}.tar.bz2
    27 %define addreq  %{addreqb}, which, grep >= 2.5
    28 Autoreqprov: no
    29 %endif
    30 
    31 %if %is_mandriva
    32 %define src     %{name}-%{version}.tar.bz2
    33 %define addreq  %{addreqb}, which, grep >= 2.5
    34 Autoreqprov: no
    35 %endif
    36 
    37 %if %is_suse
    38 %define addreq  %{addreqb}
    39 %endif
    4014
    4115# define the mkrel macro if it is not already defined if mandriva offical build
     
    8256
    8357./install.sh
    84 
    85 %if %is_suse
    86 %{__rm} -rf $RPM_BUILD_ROOT/%{_datadir}/doc/%name-%{version}
    87 %endif
    8858
    8959%clean
Note: See TracChangeset for help on using the changeset viewer.