Don't make rclink on < 12.3 since /usr/sbin/service doesn't exist
OBS-URL: https://build.opensuse.org/package/show/server:http/uwsgi?expand=0&rev=37
This commit is contained in:
parent
954ac816cb
commit
43bec9926c
@ -555,7 +555,9 @@ install -D -m 0644 uwsgidecorators.py %{buildroot}%{python3_sitelib}/uwsgidecora
|
|||||||
install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar
|
install -D plugins/jvm/uwsgi.jar %{buildroot}%{_javadir}/uwsgi.jar
|
||||||
install -d -m 0755 %{buildroot}/%{apache_libexecdir}
|
install -d -m 0755 %{buildroot}/%{apache_libexecdir}
|
||||||
install -m 0755 apache2/.libs/*.so %{buildroot}/%{apache_libexecdir}
|
install -m 0755 apache2/.libs/*.so %{buildroot}/%{apache_libexecdir}
|
||||||
|
%if 0%{?suse_version} > 1220
|
||||||
ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rcuwsgi
|
ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rcuwsgi
|
||||||
|
%endif
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre uwsgi.service
|
%service_add_pre uwsgi.service
|
||||||
@ -579,7 +581,9 @@ ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rcuwsgi
|
|||||||
%{_sysconfdir}/uwsgi/vassals/*
|
%{_sysconfdir}/uwsgi/vassals/*
|
||||||
%dir %{_libdir}/uwsgi
|
%dir %{_libdir}/uwsgi
|
||||||
%{_unitdir}/uwsgi.service
|
%{_unitdir}/uwsgi.service
|
||||||
|
%if 0%{?suse_version} > 1220
|
||||||
%{_sbindir}/rcuwsgi
|
%{_sbindir}/rcuwsgi
|
||||||
|
%endif
|
||||||
%{_libdir}/uwsgi/airbrake_plugin.so
|
%{_libdir}/uwsgi/airbrake_plugin.so
|
||||||
%{_libdir}/uwsgi/alarm_curl_plugin.so
|
%{_libdir}/uwsgi/alarm_curl_plugin.so
|
||||||
%{_libdir}/uwsgi/asyncio_plugin.so
|
%{_libdir}/uwsgi/asyncio_plugin.so
|
||||||
|
Loading…
Reference in New Issue
Block a user