2024-01-06 08:25:25 +01:00
|
|
|
%define partimag_uid 65027
|
|
|
|
%define partimag_gid 65027
|
|
|
|
Name: partimage
|
2024-01-06 08:25:25 +01:00
|
|
|
Release: 2mamba
|
2024-01-06 08:25:25 +01:00
|
|
|
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>
|
2024-01-06 08:25:25 +01:00
|
|
|
URL: https://www.partimage.org/
|
2024-01-06 08:25:25 +01:00
|
|
|
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
|
2024-01-06 08:25:25 +01:00
|
|
|
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
|
2024-01-06 08:25:25 +01:00
|
|
|
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.
|
|
|
|
|
2024-01-06 08:25:25 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 08:25:25 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-06 08:25:25 +01:00
|
|
|
%define _default_patch_fuzz 2
|
2024-01-06 08:25:25 +01:00
|
|
|
#%patch0 -p1
|
|
|
|
#%patch1 -p1
|
2024-01-06 08:25:25 +01:00
|
|
|
%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
|
2024-01-06 08:25:25 +01:00
|
|
|
|
|
|
|
%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
|
2024-01-06 08:25:25 +01:00
|
|
|
* Sat Sep 24 2022 Automatic Build System <autodist@mambasoft.it> 0.6.9-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
2024-01-06 08:25:25 +01:00
|
|
|
* 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
|