1 |
jcrisp |
1.1 |
%define name smeserver-wsdd |
2 |
|
|
%define version 0.2 |
3 |
jcrisp |
1.4 |
%define release 4 |
4 |
jcrisp |
1.1 |
Summary: Plugin to enable wsdd |
5 |
|
|
Name: %{name} |
6 |
|
|
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
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 >= 10.0 |
16 |
|
|
Requires: python3 |
17 |
|
|
Requires: wsdd >= 0.6 |
18 |
|
|
|
19 |
brianr |
1.2 |
Patch0: smeserver-wsdd-0.2-Add-in-systemd-startup-in-createlinks.patch |
20 |
brianr |
1.3 |
Patch1: smeserver-wsdd-0.2-Change-WantedBy-to-smeserver.patch |
21 |
jcrisp |
1.4 |
Patch2: smeserver-wsdd-0.2-bz11059-update-masq.patch |
22 |
brianr |
1.3 |
|
23 |
jcrisp |
1.1 |
AutoReqProv: no |
24 |
|
|
|
25 |
|
|
%description |
26 |
|
|
wsdd implements a Web Service Discovery host daemon. This enables (Samba) hosts, like your local NAS device, to be found by Web Service Discovery Clients like Windows. |
27 |
|
|
|
28 |
|
|
%changelog |
29 |
jcrisp |
1.4 |
* Mon Dec 21 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-4.sme |
30 |
|
|
- Fix masq template for iptables [SME: 11209] |
31 |
|
|
|
32 |
brianr |
1.3 |
* Sun Nov 29 2020 Brian Read <brianr@bjsystems.co.uk> 0.2-3.sme |
33 |
|
|
- Fix systemd params - WantedBy [SME: 11209] |
34 |
|
|
|
35 |
brianr |
1.2 |
* Fri Nov 27 2020 Brian Read <brianr@bjsystems.co.uk> 0.2-2.sme |
36 |
|
|
- Add in creatlinks stuff for systemd startup [SME: 11209] |
37 |
|
|
|
38 |
jcrisp |
1.1 |
* Mon Jul 06 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.2-1.sme |
39 |
|
|
- template unit file |
40 |
|
|
- template masq file |
41 |
|
|
- systemctl enable after install |
42 |
|
|
|
43 |
|
|
* Wed Jul 03 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.1-1.sme |
44 |
|
|
- Initial build |
45 |
|
|
|
46 |
|
|
%prep |
47 |
|
|
%setup |
48 |
brianr |
1.2 |
%patch0 -p1 |
49 |
brianr |
1.3 |
%patch1 -p1 |
50 |
jcrisp |
1.4 |
%patch2 -p1 |
51 |
jcrisp |
1.1 |
|
52 |
|
|
%build |
53 |
|
|
perl createlinks |
54 |
|
|
|
55 |
|
|
%install |
56 |
|
|
rm -rf $RPM_BUILD_ROOT |
57 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
58 |
|
|
rm -f %{name}-%{version}-filelist |
59 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
60 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
61 |
|
|
|
62 |
|
|
|
63 |
|
|
%clean |
64 |
|
|
cd .. |
65 |
|
|
rm -rf %{name}-%{version} |
66 |
|
|
|
67 |
|
|
%files -f %{name}-%{version}-filelist |
68 |
|
|
|
69 |
|
|
%defattr(-,root,root) |
70 |
|
|
|
71 |
|
|
%pre |
72 |
|
|
%preun |
73 |
|
|
%post |
74 |
|
|
|
75 |
|
|
systemctl enable wsdd |
76 |
|
|
|
77 |
|
|
echo "****************************************" |
78 |
|
|
echo "https://wiki.contribs.org/wsdd" |
79 |
|
|
echo "****************************************" |
80 |
|
|
|
81 |
|
|
%postun |