%define version 1.0 %define release 1 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 * 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)