1 |
brianr |
1.1 |
%define version 1.0 |
2 |
|
|
%define release 1 |
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 |
jpp |
1.2 |
#Source: %{name}-%{version}.tar.gz |
11 |
|
|
Source: migratehelper.sh |
12 |
brianr |
1.1 |
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 |
jpp |
1.2 |
rpm backup all contribs data and bare essential to have a working system and then rsync data while the new system is up |
20 |
brianr |
1.1 |
|
21 |
|
|
%changelog |
22 |
|
|
* Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-1.sme |
23 |
jpp |
1.2 |
- initial release [SME: 11275] |
24 |
|
|
- TODO use SME 10 includes / excludes |
25 |
brianr |
1.1 |
|
26 |
|
|
%prep |
27 |
jpp |
1.2 |
#%setup |
28 |
|
|
pwd >&2 |
29 |
|
|
ls >&2 |
30 |
|
|
mkdir -p %{name}-%{version}-%{release}/root/usr/bin |
31 |
|
|
cp %{SOURCE0} %{name}-%{version}-%{release}/root/usr/bin |
32 |
|
|
cd %{name}-%{version}-%{release} |
33 |
brianr |
1.1 |
|
34 |
|
|
%build |
35 |
jpp |
1.2 |
#perl createlinks |
36 |
brianr |
1.1 |
|
37 |
|
|
%install |
38 |
jpp |
1.2 |
|
39 |
brianr |
1.1 |
rm -rf $RPM_BUILD_ROOT |
40 |
jpp |
1.2 |
(cd %{name}-%{version}-%{release}/root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
41 |
brianr |
1.1 |
rm -f %{name}-%{version}-filelist |
42 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
43 |
|
|
> %{name}-%{version}-filelist |
44 |
|
|
|
45 |
|
|
%clean |
46 |
|
|
rm -rf $RPM_BUILD_ROOT |
47 |
|
|
|
48 |
|
|
%post |
49 |
|
|
|
50 |
|
|
%postun |
51 |
|
|
|
52 |
|
|
%files -f %{name}-%{version}-filelist |
53 |
|
|
%defattr(-,root,root) |