1 |
%define version 1.0 |
2 |
%define release 3 |
3 |
Summary: Set up a migration helper script for SME Server. |
4 |
Name: smeserver-migratehelper |
5 |
Version: %{version} |
6 |
Release: %{release}%{?dist} |
7 |
License: GNU GPL version 2 |
8 |
URL: http://www.contribs.org |
9 |
Group: SMEserver/addon |
10 |
#Source: %{name}-%{version}.tar.gz |
11 |
Source: migratehelper.sh |
12 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
13 |
BuildArchitectures: noarch |
14 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
15 |
Requires: e-smith-release >= 8.0 |
16 |
AutoReqProv: no |
17 |
|
18 |
%description |
19 |
rpm backup all contribs data and bare essential to have a working system and then rsync data while the new system is up |
20 |
|
21 |
%changelog |
22 |
* Sun Apr 25 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-3.sme |
23 |
- reduce noise for tar [SME: 11576] |
24 |
|
25 |
* Thu Apr 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-2.sme |
26 |
- add backup of spamassassin admin config |
27 |
- add search for non rpm owned folder in /usr/local |
28 |
|
29 |
* Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-1.sme |
30 |
- initial release [SME: 11275] |
31 |
- TODO use SME 10 includes / excludes |
32 |
|
33 |
%prep |
34 |
#%setup |
35 |
pwd >&2 |
36 |
ls >&2 |
37 |
mkdir -p %{name}-%{version}-%{release}/root/usr/bin |
38 |
cp %{SOURCE0} %{name}-%{version}-%{release}/root/usr/bin |
39 |
cd %{name}-%{version}-%{release} |
40 |
|
41 |
%build |
42 |
#perl createlinks |
43 |
|
44 |
%install |
45 |
|
46 |
rm -rf $RPM_BUILD_ROOT |
47 |
(cd %{name}-%{version}-%{release}/root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
48 |
rm -f %{name}-%{version}-filelist |
49 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
50 |
> %{name}-%{version}-filelist |
51 |
|
52 |
%clean |
53 |
rm -rf $RPM_BUILD_ROOT |
54 |
|
55 |
%post |
56 |
|
57 |
%postun |
58 |
|
59 |
%files -f %{name}-%{version}-filelist |
60 |
%defattr(-,root,root) |