partimage/partimage.spec

113 lines
3.3 KiB
RPMSpec

%define partimag_uid 65027
%define partimag_gid 65027
Name: partimage
Release: 2mamba
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: https://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
Patch2: partimage-0.6.9-use-SSLv3-by-default.patch
Patch3: partimage-0.6.9-glibc-2.36.patch
Patch4: partimage-0.6.9-libz-1.2.11.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
%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.
%debug_package
%prep
%setup -q
%define _default_patch_fuzz 2
#%patch0 -p1
#%patch1 -p1
%patch2 -p1 -b .use-SSLv3-by-default
%patch3 -p1 -b .glibc-2.36
%patch4 -p1 -b .libz-1.2.11
#cp %{SOURCE1} .
sed -e 's/CRYPTO_lock/X509_new/g' -i configure
%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
* Sat Sep 24 2022 Automatic Build System <autodist@mambasoft.it> 0.6.9-2mamba
- automatic rebuild by autodist
* 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