SPECS: mkcdrec.spec - pl fixes, partial cleanup

qboosh qboosh at pld-linux.org
Sun Nov 27 21:16:22 CET 2005


Author: qboosh                       Date: Sun Nov 27 20:16:22 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- pl fixes, partial cleanup

---- Files affected:
SPECS:
   mkcdrec.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/mkcdrec.spec
diff -u SPECS/mkcdrec.spec:1.1 SPECS/mkcdrec.spec:1.2
--- SPECS/mkcdrec.spec:1.1	Sun Nov 27 18:19:35 2005
+++ SPECS/mkcdrec.spec	Sun Nov 27 21:16:17 2005
@@ -1,40 +1,64 @@
 # $Revision$, $Date$
-%define _prefix /var/opt/mkcdrec
-%define _webmin_root /usr/libexec/webmin
-%define _webmin_access_file /etc/webmin/webmin.acl
-%define _webmin_cache_cile /etc/webmin/module.infos.cache
-%define _boot_arch x86
+%define		_boot_arch		x86
 Summary:	mkCDrec (make CD-ROM Recovery) disaster recovery tool-set
-Summary(pl):	mkCDrec (zrób CD-ROM odzyskyjący system)
+Summary(pl):	mkCDrec - zestaw narzędzi do tworzenia płyt do odtwarzania systemu po awarii
 Name:		mkcdrec
 Version:	0.8.9
 Release:	0.1
+License:	GPL
+Group:		System/Tools
 Source0:	http://mkcdrec.ota.be/project/mkCDrec_v%{version}.tar.gz
 # Source0-md5:	0cbe2efbd083ce9745c5d5c5cea1c7c2
 ##Source1: busybox-1.01.tar.bz2
 URL:		http://mkcdrec.ota.be/
-License:	GPL
-Group:		System/Tools
-Provides:	perl(mkcdrec-lib.pl)
 Requires:	MAKEDEV
-
+Provides:	perl(mkcdrec-lib.pl)
 %if %{_boot_arch}==ia64
-Prereq:		chkconfig fileutils cdrecord mkisofs tar ash mtools rsync
-Requires:	kernel >= 2.0.0, util-linux >= 2.11, perl >= 5.0, parted >= 1.6
 BuildRequires:	gcc >= 2.96
+Requires:	ash
+Requires:	chkconfig
+Requires:	cdrtools
+Requires:	cdrtools-mkisofs
+Requires:	fileutils
+Requires:	mtools
+Requires:	parted >= 1.6
+Requires:	perl-base >= 5.0
+Requires:	rsync
+Requires:	tar
+Requires:	util-linux >= 2.11
 %endif
 %if %{_boot_arch}==x86_64
-Prereq:		fileutils cdrecord mkisofs tar ash rsync syslinux
-Requires:	kernel >= 2.0.0, util-linux >= 2.11, perl >= 5.0
 BuildRequires:	gcc >= 2.96
+Requires:	ash
+Requires:	cdrtools
+Requires:	cdrtools-mkisofs
+Requires:	fileutils
+Requires:	perl-base >= 5.0
+Requires:	rsync
+Requires:	syslinux
+Requires:	tar
+Requires:	util-linux >= 2.11
 %endif
 %if %{_boot_arch}==x86
-Prereq:		coreutils fileutils cdrecord mkisofs tar ash syslinux rsync
-Requires:	kernel >= 2.0.0, util-linux >= 2.11, perl >= 5.0
-BuildRequires:	syslinux >= 1.60, gcc >= 2.96
+BuildRequires:	gcc >= 2.96
+BuildRequires:	syslinux >= 1.60
+Requires:	ash
+Requires:	coreutils
+Requires:	cdrtools
+Requires:	cdrtools-mkisofs
+Requires:	perl-base >= 5.0
+Requires:	rsync
+Requires:	syslinux
+Requires:	tar
+Requires:	util-linux >= 2.11
 %endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_prefix			/var/opt/mkcdrec
+%define		_webmin_root		/usr/lib/webmin
+%define		_webmin_access_file	/etc/webmin/webmin.acl
+%define		_webmin_cache_cile	/etc/webmin/module.infos.cache
+
 %description
 mkCDrec (Make CDROM Recovery) makes a bootable (El Torito) disaster
 recovery image, including backups of the Linux system to one or more
@@ -49,25 +73,29 @@
 Disaster Recovery (OBDR) is also supported as recovery method.
 
 %description -l pl
-mkCDrec (zrób odzyskujący CDROM) tworzy uruchamialną (El Torito)
-płtkę zawierają system oraz kilka voluminów kopii danych. Zamiast 
-wielu płytek można posłużyć się innym dyskiem, NFSem, kopią na taśmie.
-Po awarii system albo wejściu intruza system może być uruchomiony 
-z płytki i przywrócony do pierwotnego stanu.
-mkcdrec wspiera klonowanie systemu. Aktualnie można używać ext2, ext3, 
-minix, msdos, fat, vfat, reiserfs, xfs and jfs jako systemów plików.
-Metoda zwana 'One Button Disaster Recovery (OBDR)' jest również wpierana.
+mkCDrec (Make CDROM Recovery) tworzy uruchamialny (El Torito) obraz
+zawierający kopię zapasową systemu na jednej lub większej liczbie
+płytek CD-ROM. Zamiast wielu płytek można posłużyć się innym dyskiem,
+NFS-em lub kopią na taśmie. Po awarii systemu albo wejściu intruza
+system może być uruchomiony z płytki i przywrócony do pierwotnego
+stanu. mkcdrec obsługuje klonowanie systemu, pozwalające na
+odtworzenie dysku z innego dysku (dysk docelowy nie musi być tego
+samego rozmiaru, rozkład partycji jest przeliczany). Aktualnie można
+używać systemów plików ext2, ext3, minix, msdos, fat, vfat, reiserfs,
+xfs i jfs. Metoda zwana "One Button Disaster Recovery" (OBDR) jest
+również wpierana.
 
 %prep
 %setup -q -n mkcdrec
 ##%setup -n mkcdrec -a 1
 
+find . -name CVS | xargs rm -Rf
+
 %build
 %{__make} -f Makefile.%{_boot_arch} build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-find . -name CVS | xargs rm -Rfv
 
 install -d $RPM_BUILD_ROOT%{_prefix}/busybox/applets
 install -d $RPM_BUILD_ROOT%{_bindir}
@@ -130,10 +158,7 @@
 	install -m 755  $fname $RPM_BUILD_ROOT%{_prefix}/$fname
 done
 
-install -m 755 doc/mkcdrec.8 $RPM_BUILD_ROOT%{_mandir}/man8
-
-gzip -c $RPM_BUILD_ROOT%{_mandir}/man8/mkcdrec.8 > \
-	$RPM_BUILD_ROOT%{_mandir}/man8/mkcdrec.8.gz
+install -m 644 doc/mkcdrec.8 $RPM_BUILD_ROOT%{_mandir}/man8
 
 for file in \
     $RPM_BUILD_ROOT%{_prefix}/.cvsignore \
@@ -144,7 +169,6 @@
 
 # installation of webmin module
 
-
 [ ! -d $RPM_BUILD_ROOT%{_webmin_root}/mkcdrec ] && install -d -m 755 $RPM_BUILD_ROOT%{_webmin_root}/mkcdrec
 # we copy files in webmin directory
 #if test -d $RPM_BUILD_ROOT%{_webmin_root}
@@ -156,9 +180,44 @@
 		install -m 755 $fname $RPM_BUILD_ROOT%{_webmin_root}/`echo $fname | sed -e 's/webmin/mkcdrec/'`
 	done
 #fi
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+#we add mkcdrec in webmin root's ACL
+if [ -f %{_webmin_access_file} ]; then
+	cp %{_webmin_access_file} %{_webmin_access_file}.beforemkcdrec.sauv
+	ed %{_webmin_access_file} << EOF > /tmp/mkcdrec.log 2>&1
+/root:
+s/root:/root: mkcdrec/
+w
+q
+EOF
+else
+	echo "WARNING: it seems that webmin isn't installed on that system.If you install it later, don't forget to add mkcdrec to the list of modules in %{_webmin_access_file} to make mkcdrec's webmin module available."
+
+fi
+# install the mkcdrec wrapper
+install -m 750 %{_prefix}/contributions/mkcdrec /usr/sbin/mkcdrec
+
+%postun
+# we remove mkcdrec from webmin root's ACL
+
+if [ -f %{_webmin_access_file} ]; then
+	ed %{_webmin_access_file} << EOF > /tmp/mkcdrec.log 2>&1
+s/mkcdrec//g
+w
+q
+EOF
+fi
+# rm the mkcdrec wrapper
+rm -f /usr/sbin/mkcdrec
+
 %files
 %defattr(644,root,root,755)
 %doc Changelog README COPYING
+%dir %{_prefix}
 %doc %{_prefix}/doc
 %config %{_prefix}/Config.sh
 %{_prefix}/VERSION
@@ -168,7 +227,7 @@
 %{_prefix}/contributions
 %{_prefix}/scripts
 %{_prefix}/modules
-%{_prefix}%{_sysconfdir}
+%{_prefix}/etc
 %{_prefix}/usr
 %{_prefix}/linuxrc
 %{_prefix}/linuxrc_find_and_prep_root
@@ -181,10 +240,13 @@
 %{_prefix}/Makefile.ia64
 %{_prefix}/Makefile.x86_64
 %{_mandir}/man8/*
+%dir %{_webmin_root}/mkcdrec
 %{_webmin_root}/mkcdrec/help.cgi
+%dir %{_webmin_root}/mkcdrec/images
 %{_webmin_root}/mkcdrec/images/icon
 %{_webmin_root}/mkcdrec/images/icon.gif
 %{_webmin_root}/mkcdrec/index.cgi
+%dir %{_webmin_root}/mkcdrec/lang
 %{_webmin_root}/mkcdrec/lang/en
 %{_webmin_root}/mkcdrec/lang/fr
 %{_webmin_root}/mkcdrec/mkcdrec-lib.pl
@@ -192,41 +254,15 @@
 %{_webmin_root}/mkcdrec/save.cgi
 %{_webmin_root}/mkcdrec/README.webmin
 
-%post
-#we add mkcdrec in webmin root's ACL
-if [ -f %{_webmin_access_file} ]; then
-	cp %{_webmin_access_file} %{_webmin_access_file}.beforemkcdrec.sauv
-	ed %{_webmin_access_file} << EOF > /tmp/mkcdrec.log 2>&1
-/root:
-s/root:/root: mkcdrec/
-w
-q
-EOF
-else
-	echo "WARNING: it seems that webmin isn't installed on that system.If you install it later, don't forget to add mkcdrec to the list of modules in %{_webmin_access_file} to make mkcdrec's webmin module available."
-
-fi
-# install the mkcdrec wrapper
-install -m 750 %{_prefix}/contributions/mkcdrec /usr/sbin/mkcdrec
-
-%postun
-# we remove mkcdrec from webmin root's ACL
-
-if [ -f %{_webmin_access_file} ]; then
-	ed %{_webmin_access_file} << EOF > /tmp/mkcdrec.log 2>&1
-s/mkcdrec//g
-w
-q
-EOF
-fi
-# rm the mkcdrec wrapper
-rm -f /usr/sbin/mkcdrec
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2005/11/27 20:16:17  qboosh
+- pl fixes, partial cleanup
+
 Revision 1.1  2005/11/27 17:19:35  hunter
 - nyf.
 
@@ -276,7 +312,3 @@
 * Sat Feb 09 2002 Gratien D'haese
  - initial draft of mkcdrec2.spec file and modified the original makerpms.sh
    shell script from samba team.
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/mkcdrec.spec?r1=1.1&r2=1.2&f=u




More information about the pld-cvs-commit mailing list