Accepting request 577003 from home:scarabeus_iv:branches:multimedia:libs

- Switch to cmake macros
- Use %license to install license
- Disable optional lash support as we try to remove lash
- Format with spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/577003
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/fluidsynth?expand=0&rev=40
This commit is contained in:
Takashi Iwai 2018-02-20 15:03:18 +00:00 committed by Git OBS Bridge
parent 2900fef86c
commit b97498185c
2 changed files with 20 additions and 18 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Feb 15 13:22:56 UTC 2018 - tchvatal@suse.com
- Switch to cmake macros
- Use %license to install license
- Disable optional lash support as we try to remove lash
- Format with spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jan 4 10:11:54 UTC 2018 - tom.mbrt@googlemail.com Thu Jan 4 10:11:54 UTC 2018 - tom.mbrt@googlemail.com

View File

@ -19,8 +19,6 @@
Name: fluidsynth Name: fluidsynth
Version: 1.1.9 Version: 1.1.9
Release: 0 Release: 0
# Obsoletes: iiwusynth
# Provides: iiwusynth
Summary: A Real-Time Software Synthesizer That Uses Soundfont(tm) Summary: A Real-Time Software Synthesizer That Uses Soundfont(tm)
License: LGPL-2.1+ License: LGPL-2.1+
Group: Productivity/Multimedia/Sound/Midi Group: Productivity/Multimedia/Sound/Midi
@ -29,14 +27,13 @@ Source: https://github.com/FluidSynth/%{name}/archive/v%{version}.tar.gz
Source1000: baselibs.conf Source1000: baselibs.conf
BuildRequires: cmake >= 3.0.2 BuildRequires: cmake >= 3.0.2
BuildRequires: ladspa-devel BuildRequires: ladspa-devel
BuildRequires: lash-devel BuildRequires: pkgconfig
BuildRequires: readline-devel BuildRequires: readline-devel
BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(jack) BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(sndfile) BuildRequires: pkgconfig(sndfile)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
FluidSynth (formerly IIWU Synth) is a real-time software synthesizer FluidSynth (formerly IIWU Synth) is a real-time software synthesizer
@ -66,35 +63,32 @@ This package contains the shared library for Fluidsynth.
%setup -q %setup -q
%build %build
mkdir build # Upstream uses both LIB_SUFFIX and LIB_INSTALL_DIR... so it gets set to
cd build # lib6464 unless overriden
cmake .. -DCMAKE_INSTALL_PREFIX=%{_prefix} \ %cmake \
-DLIB_INSTALL_DIR:PATH=/usr/lib \
-Denable-ladspa=1 \ -Denable-ladspa=1 \
-DCMAKE_C_FLAGS="%{optflags}" -Denable-lash=0
make %{?_smp_mflags} VERBOSE=1 make %{?_smp_mflags}
%install %install
cd build %cmake_install
%make_install
%post -n libfluidsynth1 -p /sbin/ldconfig %post -n libfluidsynth1 -p /sbin/ldconfig
%postun -n libfluidsynth1 -p /sbin/ldconfig %postun -n libfluidsynth1 -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %license LICENSE
%doc AUTHORS ChangeLog LICENSE NEWS README.md THANKS TODO %doc AUTHORS ChangeLog NEWS README.md THANKS TODO
%doc %{_mandir}/man?/* %{_mandir}/man?/*
%{_bindir}/* %{_bindir}/*
%files devel %files devel
%defattr(-,root,root)
%{_libdir}/lib*.so %{_libdir}/lib*.so
%{_includedir}/* %{_includedir}/*
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%files -n libfluidsynth1 %files -n libfluidsynth1
%defattr(-,root,root)
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.*
%changelog %changelog