1 |
%define name smeserver-motd |
2 |
%define version 0.1 |
3 |
%define release 3 |
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 |
BuildRoot: /var/tmp/%{name}-%{version} |
13 |
BuildArchitectures: noarch |
14 |
BuildRequires: e-smith-devtools |
15 |
Requires: e-smith-release >= 8.0 |
16 |
AutoReqProv: no |
17 |
|
18 |
%description |
19 |
A small contribution to give a more informative display on ssh login |
20 |
|
21 |
%changelog |
22 |
* Tue Jun 28 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 0.1-3.sme |
23 |
- Initial release to contribs8 |
24 |
|
25 |
* Mon Jun 27 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-1 |
26 |
- Initial build |
27 |
|
28 |
* Mon Jun 27 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-2 |
29 |
- Fix a typo in the spec file |
30 |
|
31 |
%prep |
32 |
%setup |
33 |
|
34 |
%build |
35 |
perl createlinks |
36 |
|
37 |
%install |
38 |
rm -rf $RPM_BUILD_ROOT |
39 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
40 |
rm -f %{name}-%{version}-filelist |
41 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
42 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
43 |
|
44 |
|
45 |
%clean |
46 |
cd .. |
47 |
rm -rf %{name}-%{version} |
48 |
|
49 |
%files -f %{name}-%{version}-filelist |
50 |
%defattr(-,root,root) |
51 |
|
52 |
%pre |
53 |
|
54 |
%preun |
55 |
|
56 |
%post |
57 |
|
58 |
%postun |