diff --git a/uwsgi.spec b/uwsgi.spec index 4663e56..5ee9c53 100644 --- a/uwsgi.spec +++ b/uwsgi.spec @@ -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 -m 0755 %{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 +%endif %pre %service_add_pre uwsgi.service @@ -579,7 +581,9 @@ ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rcuwsgi %{_sysconfdir}/uwsgi/vassals/* %dir %{_libdir}/uwsgi %{_unitdir}/uwsgi.service +%if 0%{?suse_version} > 1220 %{_sbindir}/rcuwsgi +%endif %{_libdir}/uwsgi/airbrake_plugin.so %{_libdir}/uwsgi/alarm_curl_plugin.so %{_libdir}/uwsgi/asyncio_plugin.so