99 lines
2.9 KiB
RPMSpec
99 lines
2.9 KiB
RPMSpec
%define partimag_uid 65027
|
|
%define partimag_gid 65027
|
|
Name: partimage
|
|
Release: 1mamba
|
|
Version: 0.6.9
|
|
Summary: A Linux/UNIX utility which saves partitions in many formats
|
|
Group: System/Tools
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.partimage.org
|
|
Source: http://downloads.sourceforge.net/project/partimage/stable/%{version}/%{name}-%{version}.tar.bz2
|
|
Source1: mkinstalldirs
|
|
Patch0: %{name}-0.6.7-gcc43.patch
|
|
Patch1: %{name}-0.6.7-gcc44.patch
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libbzip2-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libnewt-devel
|
|
BuildRequires: libopenssl-devel
|
|
BuildRequires: libslang-devel
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libz-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
Partition Image is a Linux/UNIX utility which saves partitions in many formats (see below) to an image file.
|
|
The image file can be compressed in the GZIP/BZIP2 formats to save disk space, and split into multiple files to be copied on removable floppies (ZIP for example).
|
|
Partitions can be saved across the network since version 0.6.0.
|
|
|
|
%prep
|
|
%setup -q
|
|
#%patch0 -p1
|
|
#%patch1 -p1
|
|
cp %{SOURCE1} .
|
|
|
|
%build
|
|
%configure
|
|
%make
|
|
make pamfile
|
|
|
|
%install
|
|
test x%{buildroot} != x/ && rm -rf %{buildroot}
|
|
sed -i "s|partimag\.root|`id -u`\.`id -g`|" Makefile
|
|
%makeinstall
|
|
|
|
%find_lang %{name}
|
|
|
|
%clean
|
|
test x%{buildroot} != x/ && rm -rf %{buildroot}
|
|
|
|
%pre
|
|
if [ $1 -ge 1 ]; then
|
|
# new install or update
|
|
getent group partimag >/dev/null || groupadd partimag -g %{partimag_gid}
|
|
getent passwd partimag >/dev/null ||
|
|
useradd partimag -c "Partimage User" -d /dev/null \
|
|
-s /bin/false -u %{partimag_uid} -g %{partimag_gid} > /dev/null
|
|
fi
|
|
exit 0
|
|
|
|
%preun
|
|
#erase
|
|
if [ $1 -eq 0 ]; then
|
|
userdel partimag >/dev/null|| true
|
|
fi
|
|
exit 0
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING ChangeLog INSTALL README README.partimaged THANKS
|
|
%{_sbindir}/*
|
|
%attr(0600,partimag,partimag) %{_sysconfdir}/partimaged/partimagedusers
|
|
%exclude %{_datadir}/doc/partimage/*
|
|
|
|
%changelog
|
|
* Mon Aug 09 2010 Automatic Build System <autodist@mambasoft.it> 0.6.9-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sun Oct 25 2009 Automatic Build System <autodist@mambasoft.it> 0.6.8-1mamba
|
|
- update to 0.6.8
|
|
|
|
* Mon Jul 13 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.7-2mamba
|
|
- rebuilt with libnewt 0.52
|
|
|
|
* Wed Apr 02 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.7-1mamba
|
|
- update to 0.6.7
|
|
- ssl re-enabled
|
|
|
|
* Tue Feb 15 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.4-2qilnx
|
|
- rebuilt with ssl disabled
|
|
- added default user and proper permissions for partimaged to work
|
|
|
|
* Mon Oct 04 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.4-1qilnx
|
|
- package created by autospec
|