# # spec file for package partimage (Version 0.6.4) # # Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://www.suse.de/feedback/ # Name: partimage BuildRequires: libstdc++-devel zlib-devel lzo-devel newt-devel openssl-devel libmcrypt-devel gcc gcc-c++ slang-devel %if %suse_version < 1010 BuildRequires: newt %endif %if %suse_version > 1020 BuildRequires: openssl %endif URL: http://www.partimage.org/ Version: 0.6.7 Release: 1 Group: Productivity/Archiving/Backup Source: partimage-%{version}.tar.bz2 #Patch: chown.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: Save and restore partition images License: GPL PreReq: /usr/sbin/useradd Requires: libstdc++ zlib bzip2 lzo newt openssl libmcrypt slang %package daemon Requires: libstdc++ zlib bzip2 lzo newt openssl libmcrypt slang Group: Productivity/Archiving/Backup Summary: Network daemon for serving partition images created with partimage %description Partition Image is a Linux utility which saves partitions in the ext2fs, reiserfs, hpfs, jpf, xfs, fat16, and fat32 formats an image file. Only used blocks are copied to save the space and to increase the speed. The image file can be compressed, in gzip, or bzip2 formats, and can be splitted into small files to be copied on floppies (1,44 MB, ZIP, ...) or CDRs. Partition Image will only copy data from the used portions of the partition. For speed and efficiency, free blocks are not written to the image file. This is unlike the 'dd' command, which also copies empty blocks. Then, the partition can be restored if there is a problem on the partition (file system error,virus, error in data, ...), from the image file. It can also be used to install many identical PCs with the same hardware. You just have to install an only PC, and you can copy the linux partitions to all others. Be careful, this is an alpha version. Then, there can be bugs, and changes in the data format between differents versions. Don't backup important data with it, and use the same version to save and to restore the same image file. Please, report all bugs to the author. See /usr/share/doc/packages/partimage/html for help. Authors: -------- Francois Dupoux Franck Ladurelle %description daemon A network daemon partimage can connect to to get partition images from or to save partition images to. For more information about partimage see description of partimage. NOTE: To use partimage-daemon you have to create an ssl certificate first. Use /usr/share/doc/packages/partimage-daemon/make-certificate.sh to do so. Authors: -------- Francois Dupoux Franck Ladurelle %define partimag_home /var/lib/partimag %debug_package %prep %setup -q #%patch %build %{?suse_update_config:%{suse_update_config -f }} export CFLAGS="$RPM_OPT_FLAGS" #Fix for config.rpath error cp /usr/share/gettext/config.rpath . ./autogen.sh ./configure \ --mandir=%{_mandir} \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --infodir=$RPM_BUILD_ROOT%{_infodir} \ --sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \ --with-log-dir=%{_var}/log make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT install -d -m 755 $RPM_BUILD_ROOT%{partimag_home} install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/partimaged touch $RPM_BUILD_ROOT%{_sysconfdir}/partimaged/partimagedusers #%find_lang %{name} %pre daemon /usr/sbin/useradd -r -d %{partimag_home} -s /bin/false -c "Partimage Daemon User" -g root partimag 2> /dev/null %clean [ "$RPM_BUILD_ROOT" != "" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; %files # -f %{name}.lang %defattr (-,root,root) %doc AUTHORS BUGS ChangeLog FORMAT FUTURE INSTALL README README.partimaged THANKS TODO /usr/sbin/partimage /usr/share/locale/da/LC_MESSAGES/partimage.mo /usr/share/locale/de/LC_MESSAGES/partimage.mo /usr/share/locale/es/LC_MESSAGES/partimage.mo /usr/share/locale/eu/LC_MESSAGES/partimage.mo /usr/share/locale/fi/LC_MESSAGES/partimage.mo /usr/share/locale/fr/LC_MESSAGES/partimage.mo /usr/share/locale/gl/LC_MESSAGES/partimage.mo /usr/share/locale/it/LC_MESSAGES/partimage.mo /usr/share/locale/nl/LC_MESSAGES/partimage.mo /usr/share/locale/pl/LC_MESSAGES/partimage.mo /usr/share/locale/pt/LC_MESSAGES/partimage.mo /usr/share/locale/sk/LC_MESSAGES/partimage.mo %exclude /usr/share/doc/partimage/AUTHORS /usr/share/doc/partimage/BUGS /usr/share/doc/partimage/COPYING /usr/share/doc/partimage/ChangeLog /usr/share/doc/partimage/README /usr/share/doc/partimage/README.partimaged /usr/share/doc/partimage/TODO /usr/share/doc/partimage/partimage.lsm %files daemon %defattr (-,root,root) %doc AUTHORS BUGS ChangeLog FORMAT FUTURE INSTALL README README.partimaged THANKS TODO /usr/sbin/partimaged %dir %{_sysconfdir}/partimaged %attr(600,partimag,root) %{_sysconfdir}/partimaged/partimagedusers %attr(755,partimag,root) %dir %{partimag_home} %changelog -n partimage * Fri Jan 04 2008 - dennis.sieben@open-xchange.com - upgraded from v0.6.5 to v0.6.6 * Sat Apr 07 2007 - dennis.sieben@open-xchange.com - upgraded from v0.6.4 to v0.6.5 * Mon Sep 06 2004 - cwh@suse.de - upgraded from v0.6.2 to v0.6.4 - splitted off partimage-daemon, because most people will not need it * Sun Jan 18 2004 - ro@suse.de - fix for chown syntax * Fri Jan 16 2004 - cwh@suse.de - fixed order of 'adduser' and 'make' in spec-file * Wed Oct 01 2003 - uli@suse.de - removed useless 64-bit definitions, fixes build on s390x, ppc64 * Thu Aug 21 2003 - ro@suse.de - fix filelist (use find_lang macro) - fix build on x86_64 * Wed Aug 20 2003 - cwh@suse.de - initial release