14 |
|
|
15 |
# Please submit bugfixes or comments via http://bugs.opensuse.org/ |
# Please submit bugfixes or comments via http://bugs.opensuse.org/ |
16 |
# |
# |
17 |
%define release 11 |
%define release 12 |
18 |
%define _unitdir /usr/lib/systemd/system/ |
%define _unitdir /usr/lib/systemd/system/ |
19 |
%global with_systemd 1 |
%global with_systemd 1 |
20 |
|
|
119 |
install -m0644 *.md %{buildroot}%{_defaultdocdir}/%{name}/ |
install -m0644 *.md %{buildroot}%{_defaultdocdir}/%{name}/ |
120 |
install -m0644 *.conf %{buildroot}%{_defaultdocdir}/%{name}/ |
install -m0644 *.conf %{buildroot}%{_defaultdocdir}/%{name}/ |
121 |
|
|
122 |
%if %{with_systemd} |
#% if %{with_systemd} |
123 |
%pre |
#% pre |
124 |
%service_add_pre %{name}.service |
#% service_add_pre %{name}.service |
125 |
%endif |
#% endif |
126 |
|
|
127 |
%post |
#% post |
128 |
%if %{with_systemd} |
#% if %{with_systemd} |
129 |
%service_add_post %{name}.service |
#% service_add_post %{name}.service |
130 |
%else |
#% else |
131 |
%{fillup_and_insserv -f denyhosts} |
#% {fillup_and_insserv -f denyhosts} |
132 |
%endif |
#% endif |
133 |
|
|
134 |
%preun |
#% preun |
135 |
%if %{with_systemd} |
#% if %{with_systemd} |
136 |
%service_del_preun %{name}.service |
#% service_del_preun %{name}.service |
137 |
%else |
#% else |
138 |
%stop_on_removal denyhosts |
#% stop_on_removal denyhosts |
139 |
%endif |
#% endif |
140 |
|
|
141 |
%postun |
#% postun |
142 |
%if %{with_systemd} |
#% if %{with_systemd} |
143 |
%service_del_postun %{name}.service |
#% service_del_postun %{name}.service |
144 |
%else |
#% else |
145 |
%insserv_cleanup |
#% insserv_cleanup |
146 |
%endif |
#% endif |
147 |
|
|
148 |
|
|
149 |
%files |
%files |
173 |
* Sun Mar 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 3.1-11.sme |
* Sun Mar 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 3.1-11.sme |
174 |
- First release for SME10 [SME: 11459] |
- First release for SME10 [SME: 11459] |
175 |
imported from opensuse, reworked spec file to build it on CentOS 7 / SME 10 |
imported from opensuse, reworked spec file to build it on CentOS 7 / SME 10 |
176 |
|
- remove systemd pre post scriptlet, do not have macros, and we use SME to register service |
177 |
|
|
178 |
* Sat Aug 11 2018 javier@opensuse.org |
* Sat Aug 11 2018 javier@opensuse.org |
179 |
- Update to 3.1 |
- Update to 3.1 |