source: MondoRescue/branches/2.0.7/mondo/distributions/rpm/mondo.spec @ 455

Last change on this file since 455 was 455, checked in by bcornec, 15 years ago
  • Fix install pb for SuSE based distro around doc location (/usr/share/doc/packages)
  • Introduces Epoch for easier updates and Obsoleted packages (on Mandriva for now)
  • Property svn:keywords set to Id
File size: 2.7 KB
RevLine 
[35]1#
2# $Id: mondo.spec 455 2006-04-02 14:34:36Z bcornec $
3#
[1]4
[53]5%define name    mondo
[237]6%define version VVV
[313]7%define mrel    RRR
[316]8# if mandriva official build (rpm --with is_official)
9%{?is_official:%define rel %{mkrel} %{mrel}}%{!?is_official:%define rel %{mrel}}
[388]10%define src     SSS
11%define grp     GRP
[444]12%define addreqb mindi >= 1.0.7, bzip2 >= 0.9, afio, mkisofs, binutils, newt >= 0.50, slang >= 1.4.1
[395]13%define addreq  DDD
[423]14%define rel     %{mrel}
[53]15
[1]16Summary:    A program which a Linux user can utilize to create a rescue/restore CD/tape
[455]17Summary(fr):    Un programme pour les utilisateurs de Linux pour créer un CD/tape de sauvegarde/restauration
[1]18Summary(it):    Un programma per utenti Linux per creare un CD/tape di rescue
19Summary(sp):    Un programa para los usuarios de Linux por crear una CD/cinta de restoracion/rescate
[53]20
21Name:       %{name}
22Version:    %{version}
[423]23Release:    %{rel}
[1]24License:    GPL
[313]25Group:      %{grp}
[53]26Url:        http://mondorescue.berlios.de
27Source:     %{src}
28BuildRoot:  %{_tmppath}/%{name}-%{version}
[1]29BuildRequires:  newt-devel >= 0.50, slang-devel >= 1.4.1, gcc
[455]30Epoch:      %(echo %%{mrel} | cut -d- -f1 | sed "s~M~~")
31OBS
[1]32%ifarch ia64
[315]33Requires:   %{addreq}, elilo, parted
[1]34%else
[315]35Requires:   %{addreq}, syslinux >= 1.52
[1]36%endif
37
38%description
[423]39Mondo is a GPL disaster recovery solution to create backup media
40(CD, DVD, tape, network images) that can be used to redeploy the
41damaged system, as well as deploy similar or less similar systems.
[1]42
43%description -l fr
44Objectif
45""""""""
[423]46Mondo est une solution GPL de sauvegarde en cas de désastre pour
47créer des médias (CD, DVD, bande, images réseau) qui peuvent être
48utilisés pour redéployer le système endomangé, aussi bien que des
49systèmes similaires, ou moins similaires.
[1]50
51%description -l it
52Scopo
53"""""
54Mondo e' un programma che permette a qualsiasi utente Linux
55di creare un cd di rescue/restore (o piu' cd qualora l'installazione
56dovesse occupare piu' di 2Gb circa). Funziona con gli azionamenti di
57nastro, ed il NFS, anche.
58
59%description -l sp
60Objectivo
61"""""""""
62Mondo es un programa que permite cualquier usuario de Linux a crear una CD
63de restoracion/rescate (o CDs, si su instalacion es >2GO aprox.).  Funciona
64con cintas y NFS, tambien.
65
66%prep
[53]67%setup -q -n %name-%{version}
[1]68
[53]69%build
[453]70%configure --program-prefix=%{?_program_prefix}
[415]71%{__make} VERSION=%{version}
[1]72
73%install
[53]74%{__rm} -rf $RPM_BUILD_ROOT
75%makeinstall
[1]76
77%clean
78%{__rm} -rf $RPM_BUILD_ROOT
79
80%files
[53]81%defattr(644,root,root,755)
[367]82%doc ChangeLog svn.log
[53]83%doc INSTALL COPYING README TODO AUTHORS NEWS
[402]84%doc docs/en/mondorescue-howto.html docs/en/mondorescue-howto.pdf
[1]85
[53]86%attr(755,root,root) %{_sbindir}/*
[424]87%attr(755,root,root) %{_datadir}/%{name}/restore-scripts/%{name}/*
88%attr(755,root,root) %{_datadir}/%{name}/autorun
89%attr(755,root,root) %{_datadir}/%{name}/post-nuke.sample/usr/bin/post-nuke
90%{_datadir}/%{name}/*
[423]91%{_mandir}/man8/*
[53]92
[402]93%changelog
Note: See TracBrowser for help on using the repository browser.