From 43bec9926cf8b535c7ee5c365bcdaa70e547a44cd73aa469cd38e0d1a8af5633 Mon Sep 17 00:00:00 2001 From: James Oakley Date: Tue, 1 Jul 2014 19:19:21 +0000 Subject: [PATCH] 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 --- uwsgi.spec | 4 ++++ 1 file changed, 4 insertions(+) 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