1 |
%define name smeserver-motd |
2 |
%define version 0.1 |
3 |
%define release 5 |
4 |
Summary: Adjust the login motd display |
5 |
Name: %{name} |
6 |
Version: %{version} |
7 |
Release: %{release} |
8 |
License: GNU GPL version 2 |
9 |
URL: http://libreswan.org/ |
10 |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
Patch1: smeserver-motd-addstatuskey.patch |
13 |
Patch2: smeserver-motd-addtypekey.patch |
14 |
BuildRoot: /var/tmp/%{name}-%{version} |
15 |
BuildArchitectures: noarch |
16 |
BuildRequires: e-smith-devtools |
17 |
Requires: e-smith-release >= 8.0 |
18 |
AutoReqProv: no |
19 |
|
20 |
%description |
21 |
A small contribution to give a more informative display on ssh login |
22 |
|
23 |
%changelog |
24 |
|
25 |
* Wed Jun 29 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-5.sme |
26 |
- Add db type key |
27 |
|
28 |
* Wed Jun 29 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-4.sme |
29 |
- Add db status key |
30 |
|
31 |
* Tue Jun 28 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 0.1-3.sme |
32 |
- Initial release to contribs9 |
33 |
|
34 |
* Mon Jun 27 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-1 |
35 |
- Initial build |
36 |
|
37 |
* Mon Jun 27 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-2 |
38 |
- Fix a typo in the spec file |
39 |
|
40 |
%prep |
41 |
%setup |
42 |
%patch1 -p1 |
43 |
%patch2 -p1 |
44 |
|
45 |
%build |
46 |
perl createlinks |
47 |
|
48 |
%install |
49 |
rm -rf $RPM_BUILD_ROOT |
50 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
51 |
rm -f %{name}-%{version}-filelist |
52 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
53 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
54 |
|
55 |
|
56 |
%clean |
57 |
cd .. |
58 |
rm -rf %{name}-%{version} |
59 |
|
60 |
%files -f %{name}-%{version}-filelist |
61 |
%defattr(-,root,root) |
62 |
|
63 |
%pre |
64 |
|
65 |
%preun |
66 |
|
67 |
%post |
68 |
|
69 |
%postun |