/[smecontribs]/rpms/smeserver-migratehelper/contribs10/smeserver-migratehelper.spec
ViewVC logotype

Annotation of /rpms/smeserver-migratehelper/contribs10/smeserver-migratehelper.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Fri Apr 2 02:33:53 2021 UTC (3 years, 7 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-migratehelper-1_0-2_el7_sme
Changes since 1.2: +5 -1 lines
* Thu Apr 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-2.sme
- add backup of spamassassin admin config
- add search for non rpm owned folder in /usr/local

1 brianr 1.1 %define version 1.0
2 jpp 1.3 %define release 2
3 brianr 1.1 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 jpp 1.3 * Thu Apr 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-2.sme
23     - add backup of spamassassin admin config
24     - add search for non rpm owned folder in /usr/local
25    
26 brianr 1.1 * Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-1.sme
27 jpp 1.2 - initial release [SME: 11275]
28     - TODO use SME 10 includes / excludes
29 brianr 1.1
30     %prep
31 jpp 1.2 #%setup
32     pwd >&2
33     ls >&2
34     mkdir -p %{name}-%{version}-%{release}/root/usr/bin
35     cp %{SOURCE0} %{name}-%{version}-%{release}/root/usr/bin
36     cd %{name}-%{version}-%{release}
37 brianr 1.1
38     %build
39 jpp 1.2 #perl createlinks
40 brianr 1.1
41     %install
42 jpp 1.2
43 brianr 1.1 rm -rf $RPM_BUILD_ROOT
44 jpp 1.2 (cd %{name}-%{version}-%{release}/root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
45 brianr 1.1 rm -f %{name}-%{version}-filelist
46     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
47     > %{name}-%{version}-filelist
48    
49     %clean
50     rm -rf $RPM_BUILD_ROOT
51    
52     %post
53    
54     %postun
55    
56     %files -f %{name}-%{version}-filelist
57     %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed