Accepting request 582029 from home:derselbst:branches:multimedia:libs

- Avoid using indirection macros
- Do not hard-code /usr/sbin

OBS-URL: https://build.opensuse.org/request/show/582029
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/fluidsynth?expand=0&rev=43
This commit is contained in:
Takashi Iwai 2018-03-02 21:40:58 +00:00 committed by Git OBS Bridge
parent b03b665dfb
commit ca11111ccf
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 2 16:47:20 UTC 2018 - tom.mbrt@googlemail.com
- Avoid using indirection macros
- Do not hard-code /usr/sbin
-------------------------------------------------------------------
Sun Feb 25 11:57:25 UTC 2018 - tom.mbrt@googlemail.com

View File

@ -81,11 +81,10 @@ make %{?_smp_mflags}
%cmake_install
# manually install systemd service files
%__install -Dm 644 build/fluidsynth.conf %{buildroot}%{_fillupdir}/sysconfig.%{name}
%__install -Dm 644 build/fluidsynth.service %{buildroot}%{_unitdir}/%{name}.service
%__install -d %{buildroot}%{_sbindir}
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
install -Dm 644 build/fluidsynth.conf %{buildroot}%{_fillupdir}/sysconfig.%{name}
install -Dm 644 build/fluidsynth.service %{buildroot}%{_unitdir}/%{name}.service
install -d %{buildroot}%{_sbindir}
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%post -n libfluidsynth1 -p /sbin/ldconfig
%postun -n libfluidsynth1 -p /sbin/ldconfig
@ -103,7 +102,6 @@ ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
%postun
%service_del_postun %{name}.service
%files
%license LICENSE
%doc AUTHORS ChangeLog NEWS README.md THANKS TODO