Changeset 53


Ignore:
Timestamp:
Oct 8, 2005, 1:47:29 AM (14 years ago)
Author:
bcornec
Message:

mondo.spec sharable between distributions (natively OK for mdk/mdv)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.04_berlios/mondo/mondo.spec

    r35 r53  
    22# $Id$
    33#
    4 %define _prefix /usr
    5 %define libversion 2.0x_berlios
    6 %define __ln ln
     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
     10%define name    mondo
     11%define version 2.04_berlios
     12%define mrel    1
     13
     14%if %is_redhat
     15%define release %{mrel}
     16%define src     %{name}-%{version}.tgz
     17Group:          Applications/Archiving
     18Autoreq:        0
     19%endif
     20
     21%if %is_mandrake
     22%define release %{mrel}mdk
     23%define src     %{name}-%{version}.tar.bz2
     24Group:          Archiving/Backup
     25Autoreqprov:    no
     26%endif
    727
    828Summary:    A program which a Linux user can utilize to create a rescue/restore CD/tape
    9 Summary(fr):    Un programme pour les utilisateurs de Linux pour crr un CD/tape de sauvegarde/restauration
     29Summary(fr):    Un programme pour les utilisateurs de Linux pour cr�r un CD/tape de sauvegarde/restauration
    1030Summary(it):    Un programma per utenti Linux per creare un CD/tape di rescue
    1131Summary(sp):    Un programa para los usuarios de Linux por crear una CD/cinta de restoracion/rescate
    12 Name:       mondo
    13 Version:    2.04_berlios
    14 Release:    1
     32
     33Name:       %{name}
     34Version:    %{version}
     35Release:    %{release}
    1536License:    GPL
    16 Group:      Applications/Archiving
    17 Url:        http://www.mondorescue.org
    18 Source:     %{name}-%{version}.tgz
    19 BuildRoot:  %{_tmppath}/%{name}-%{version}-root
     37Url:        http://mondorescue.berlios.de
     38Source:     %{src}
     39BuildRoot:  %{_tmppath}/%{name}-%{version}
    2040BuildRequires:  newt-devel >= 0.50, slang-devel >= 1.4.1, gcc
    2141%ifarch ia64
    22 Requires:   mindi >= 1.02, bzip2 >= 0.9, afio, mkisofs, binutils, elilo, newt >= 0.50, slang >= 1.4.1, buffer, parted
     42Requires:   mindi >= 1.04_berlios, bzip2 >= 0.9, afio, mkisofs, binutils, elilo, newt >= 0.50, slang >= 1.4.1, buffer, parted
    2343%{!?_without_xmondo:BuildRequires:    gcc-c++, XFree86-devel, qt-devel, kdelibs-devel, libpng-devel}
    2444%else
    25 Requires:   mindi >= 1.02, bzip2 >= 0.9, afio, mkisofs, binutils, syslinux >= 1.52, newt >= 0.50, slang >= 1.4.1, cdrecord, buffer
     45Requires:   mindi >= 1.04_berlios, bzip2 >= 0.9, afio, mkisofs, binutils, syslinux >= 1.52, newt >= 0.50, slang >= 1.4.1, cdrecord, buffer
    2646%{!?_without_xmondo:BuildRequires:    gcc-c++, XFree86-devel, qt-devel, kdelibs-devel, arts-devel, libart_lgpl-devel, libpng-devel}
    2747%endif
    28 Prefix:     %{_prefix}
    29 Autoreq:    0
    30 
    31 %package xmondo
    32 Summary:    A QT based graphical front end for %{name}
    33 Group:      Applications/Archiving
    34 Requires:   %{name} = %{version}-${release}, qt, kdelibs
    35 
    36 %package devel
    37 Summary:    Header files for building against Mondo
    38 Group:      Development/Libraries
     48
     49#%package xmondo
     50#Summary:   A QT based graphical front end for %{name}
     51#Group:     Applications/Archiving
     52#Requires:  %{name} = %{version}-${release}, qt, kdelibs
     53#
     54#%package %{name}-devel
     55#Summary:   Header files for building against Mondo
     56#%if %is_mandrake
     57#Group:     Development/Libraries
     58#%endif
     59#if %is_redhat
     60#Group:     Development/Other
     61#%endif
     62#Provides: libmondo-devel mondo-devel
     63#Obsoletes: libmondo-devel
     64#
     65#%description -n %{name}-devel
     66#Mondo libraries and includes
    3967
    4068%description
    41 Objective
    42 """""""""
    43 To produce a program which any Linux user can utilize to create
    44 a rescue/restore CD (or CDs, if their installation is >2Gb approx.). Also
    45 works for tapes and NFS.
     69Mondo is a GPL disaster recovery solution to create backup media (CD, DVD, tape, network images) that can be used to redeploy the damaged system, as well as deploy similar or less similar systems.
    4670
    4771%description -l fr
    4872Objectif
    4973""""""""
    50 Mondo a pour but de fournir un programme utilisable par n'importe quel
    51 utilsateur de Linux pour cr�r un CD de sauvegarde/restauration
    52 (ou plusieurs CDs, si son installation d�asse les 2Go environ). Cela
    53 functionne avec des systemes d'entrainement de bande magnetique, et NFS,
    54 aussi.
     74Mondo est une solution GPL de sauvegarde en cas de désastre pour créer des médias (CD, DVD, bande, images réseau) qui peuvent être utilisés pour redéployer le système endomangé, aussi bien que des systèmes similaires, ou moins similaires.
    5575
    5676%description -l it
     
    6989con cintas y NFS, tambien.
    7090
    71 %description xmondo
    72 Xmondo is a QT based graphical frontend to mondoarchive.  It can help you
    73 set up a backup by following onscreen prompts.
    74 
    75 %description devel
    76 mondo-devel contains a few header files that are necessary for developing
    77 with mondo.
     91#%description xmondo
     92#Xmondo is a QT based graphical frontend to mondoarchive.  It can help you
     93#set up a backup by following onscreen prompts.
    7894
    7995%prep
    80 %setup -q
    81 # clear out any CVS directories if they exist
    82 for dir in `find . -name CVS`
    83 do
    84   rm -rf ${dir}
    85 done
    86 
     96%setup -q -n %name-%{version}
     97
     98%build
    8799%configure %{!?_without_xmondo:--with-x11}
    88 
    89 %build
    90100%{__make} VERSION=%{version} CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT"
    91101
    92102%install
    93 rm -Rf /usr/local/share/mondo
    94 %{__mkdir} -p $RPM_BUILD_ROOT%{_datadir}/mondo
    95 %{__mkdir} -p $RPM_BUILD_ROOT%{_includedir}/mondo
    96 %{__mkdir} -p $RPM_BUILD_ROOT%{_sbindir}
    97 %{__mkdir} -p $RPM_BUILD_ROOT%{_libdir}
    98 %{__mkdir} -p $RPM_BUILD_ROOT%{_mandir}/man8
    99 for fname in mondo/mondoarchive/.libs/mondoarchive mondo/mondorestore/.libs/mondorestore ; do
    100     %{__install} -m 755 $fname $RPM_BUILD_ROOT%{_sbindir}
    101     %{__install} -m 755 $fname $RPM_BUILD_ROOT%{_datadir}/mondo
    102 done
    103 %{!?_without_xmondo:%{__install} -m 755 mondo/xmondo/.libs/xmondo $RPM_BUILD_ROOT%{_sbindir}}
    104 
    105 for f in libmondo libmondo.so libmondo-newt libmondo-newt.so libmondo-newt.1 libmondo-newt.so.1 libmondo-newt.1.0.0 libmondo-newt.so.1.0.0 libmondo.2 libmondo.so.2 libmondo.2.0.3 libmondo.so.2.0.3 ; do
    106     fname=mondo/common/.libs/$f
    107     if [ -e "$fname" ] ; then
    108 
    109 # Hugo's way
    110 #        %{__install} -m 755 $fname $RPM_BUILD_ROOT%{_libdir}
    111 # ----------
    112 # Joshua's way
    113          %{__cp} -d $fname $RPM_BUILD_ROOT%{_libdir}
    114 # ----------
    115    
    116     fi
    117 done
    118 %{!?_without_xmondo:%{__install} -m 755 mondo/common/.libs/libXmondo-%{libversion}.so $RPM_BUILD_ROOT%{_libdir}}
    119 %{!?_without_xmondo:%{__ln} -s libXmondo-%{libversion}.so $RPM_BUILD_ROOT%{_libdir}/libXmondo.so}
    120 %{!?_without_xmondo:%{__install} -m 644 mondo/xmondo/mondo.png $RPM_BUILD_ROOT%{_datadir}/mondo}
    121 %{__install} -m 755 mondo/do-not-compress-these       $RPM_BUILD_ROOT%{_datadir}/mondo
    122 %{__install} -m 755 mondo/autorun                     $RPM_BUILD_ROOT%{_datadir}/mondo
    123 %{__install} -m 644 mondo/mondoarchive/mondoarchive.8 $RPM_BUILD_ROOT%{_mandir}/man8
    124 gzip -9 -f $RPM_BUILD_ROOT%{_mandir}/man8/mondoarchive.8
    125 %{__cp} -Rf mondo/restore-scripts  $RPM_BUILD_ROOT%{_datadir}/mondo
    126 %{__cp} -Rf mondo/post-nuke.sample $RPM_BUILD_ROOT%{_datadir}/mondo
    127 for fname in mondo/common/my-stuff.h mondo/common/mondostructures.h mondo/common/libmondo-*-EXT.h mondo/common/X-specific-EXT.h mondo/common/newt-specific-EXT.h; do
    128     %{__install} -m 644 $fname $RPM_BUILD_ROOT%{_includedir}/mondo
    129 done
     103%{__rm} -rf $RPM_BUILD_ROOT
     104%makeinstall
    130105
    131106%post
    132 ldconfig
     107/sbin/ldconfig
     108
     109%postun
     110/sbin/ldconfig
    133111
    134112%clean
     
    136114
    137115%files
    138 %defattr(-,root,root,-)
    139 %doc ChangeLog mondo/docs/en/*
    140 %dir %{_datadir}/mondo
    141 %{_sbindir}/mondorestore
    142 %{_sbindir}/mondoarchive
    143 %{_datadir}/mondo/mondorestore
    144 %{_datadir}/mondo/post-nuke.sample/*
    145 %{_datadir}/mondo/restore-scripts/*
    146 %{_datadir}/mondo/do-not-compress-these
    147 %{_datadir}/mondo/mondoarchive
    148 %{_datadir}/mondo/autorun
    149 %{_mandir}/man8/mondoarchive.8*
    150 %{_libdir}
     116%defattr(644,root,root,755)
     117%doc ChangeLog mondo/docs/en/1.6x-howto/*
     118%doc INSTALL COPYING README TODO AUTHORS NEWS
     119
     120%attr(755,root,root) %{_sbindir}/*
     121%attr(755,root,root) %{_datadir}/%{name}/restore-scripts/%{name}
     122%{_datadir}/%{name}
     123%{_mandir}/*
     124%{_libdir}/*
    151125
    152126%{!?_without_xmondo:%files xmondo}
     
    156130%{!?_without_xmondo:%{_datadir}/mondo/mondo.png}
    157131
    158 %files devel
    159 %dir %{_includedir}/mondo
    160 %{_includedir}/mondo/*
    161 
    162132%changelog
    163133* Tue Sep 06 2005 Bruno Cornec <bcornec@users.berlios.de> 2.04_berlios
    164134- Merge of patches mentionned on mondo ML + ia64 updates
     135- Add -p option
    165136
    166137* Tue May 03 2005 Hugo Rabson <hugorabson@msn.com> 2.04_cvs_20050503
Note: See TracChangeset for help on using the changeset viewer.