%define version 1.0 %define release 3 Summary: Set up a migration helper script for SME Server. Name: smeserver-migratehelper Version: %{version} Release: %{release}%{?dist} License: GNU GPL version 2 URL: http://www.contribs.org Group: SMEserver/addon #Source: %{name}-%{version}.tar.gz Source: migratehelper.sh BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArchitectures: noarch BuildRequires: e-smith-devtools >= 1.13.1-03 Requires: e-smith-release >= 8.0 AutoReqProv: no %description rpm backup all contribs data and bare essential to have a working system and then rsync data while the new system is up %changelog * Sun Apr 25 2021 Jean-Philippe Pialasse 1.0-3.sme - reduce noise for tar [SME: 11576] * Thu Apr 01 2021 Jean-Philippe Pialasse 1.0-2.sme - add backup of spamassassin admin config - add search for non rpm owned folder in /usr/local * Sat Jan 05 2019 Jean-Philipe Pialasse 1.0-1.sme - initial release [SME: 11275] - TODO use SME 10 includes / excludes %prep #%setup pwd >&2 ls >&2 mkdir -p %{name}-%{version}-%{release}/root/usr/bin cp %{SOURCE0} %{name}-%{version}-%{release}/root/usr/bin cd %{name}-%{version}-%{release} %build #perl createlinks %install rm -rf $RPM_BUILD_ROOT (cd %{name}-%{version}-%{release}/root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ > %{name}-%{version}-filelist %clean rm -rf $RPM_BUILD_ROOT %post %postun %files -f %{name}-%{version}-filelist %defattr(-,root,root)