1 |
%define name smeserver-motd |
2 |
%define version 0.1 |
3 |
%define release 7 |
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 |
Patch3: smeserver-motd-0.1-Add-Update-to-createlinks.patch |
15 |
BuildRoot: /var/tmp/%{name}-%{version} |
16 |
BuildArchitectures: noarch |
17 |
BuildRequires: e-smith-devtools |
18 |
Requires: e-smith-release >= 8.0 |
19 |
AutoReqProv: no |
20 |
|
21 |
%description |
22 |
A small contribution to give a more informative display on ssh login |
23 |
|
24 |
%changelog |
25 |
* Wed Mar 24 2021 Brian Read <brianr@bjsystems.co.uk> 0.1-7.sme |
26 |
- Add Update event to createlinks [SME: 11066] |
27 |
|
28 |
* Wed Mar 24 2021 BogusDateBot |
29 |
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
30 |
by assuming the date is correct and changing the weekday. |
31 |
|
32 |
* Thu Oct 29 2020 Brian Read <brianr@bjsystems.co.uk> 0.1-6.sme |
33 |
- Initial import to SME10 tree [SME: 11066 ] |
34 |
|
35 |
* Wed Jun 29 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-5.sme |
36 |
- Add db type key |
37 |
|
38 |
* Wed Jun 29 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-4.sme |
39 |
- Add db status key |
40 |
|
41 |
* Tue Jun 28 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 0.1-3.sme |
42 |
- Initial release to contribs9 |
43 |
|
44 |
* Mon Jun 27 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-1 |
45 |
- Initial build |
46 |
|
47 |
* Mon Jun 27 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-2 |
48 |
- Fix a typo in the spec file |
49 |
|
50 |
%prep |
51 |
%setup |
52 |
%patch1 -p1 |
53 |
%patch2 -p1 |
54 |
%patch3 -p1 |
55 |
|
56 |
%build |
57 |
perl createlinks |
58 |
|
59 |
%install |
60 |
rm -rf $RPM_BUILD_ROOT |
61 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
62 |
rm -f %{name}-%{version}-filelist |
63 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
64 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
65 |
|
66 |
|
67 |
%clean |
68 |
cd .. |
69 |
rm -rf %{name}-%{version} |
70 |
|
71 |
%files -f %{name}-%{version}-filelist |
72 |
%defattr(-,root,root) |
73 |
|
74 |
%pre |
75 |
|
76 |
%preun |
77 |
|
78 |
%post |
79 |
|
80 |
%postun |