]> git.pld-linux.org Git - packages/fluidsynth.git/blame - fluidsynth.spec
- updated to 2.3.4
[packages/fluidsynth.git] / fluidsynth.spec
CommitLineData
5fadb22d 1#
2# Conditional build:
e389d9b2
JB
3%bcond_without lash # LASH support (GPL)
4%bcond_with midishare # MidiShare support
f3eb153f 5%bcond_without pipewire # pipewire support
2566f65e 6%bcond_without portaudio # portaudio support
e389d9b2 7%bcond_without readline # readline line editing (GPL)
c26a125b 8%bcond_without systemd # systemd notify support
13cb656b 9#
a02834be 10Summary: FluidSynth - a software, real-time synthesizer
c832e2f0 11Summary(pl.UTF-8): FluidSynth - programowy syntezator działający w czasie rzeczywistym
43d51d96 12Name: fluidsynth
43584f0e 13Version: 2.3.4
c26a125b 14Release: 1
e2b99d1e
JB
15%if %{with lash} || %{with readline}
16License: GPL v2+ (enforced by lash/readline), LGPL v2+ (fluidsynth itself)
e389d9b2 17%else
c0296b5f 18License: LGPL v2+
e389d9b2 19%endif
43d51d96 20Group: Applications/Sound
c2d1ce44
JB
21#Source0Download: https://github.com/FluidSynth/fluidsynth/releases
22Source0: https://github.com/FluidSynth/fluidsynth/archive/v%{version}/%{name}-%{version}.tar.gz
43584f0e 23# Source0-md5: 9e6f11b3a0b9981273e4d1fdadcd9533
e71a1b9b 24URL: https://www.fluidsynth.org/
f6e767e3 25BuildRequires: SDL2-devel >= 2
c0296b5f 26BuildRequires: alsa-lib-devel >= 0.9.1
f3eb153f 27BuildRequires: cmake >= 3.13
c0296b5f 28BuildRequires: dbus-devel >= 1.0.0
2a60fc6b 29BuildRequires: gettext-tools
e2696d34 30BuildRequires: glib2-devel >= 1:2.26.0
43d51d96 31BuildRequires: jack-audio-connection-kit-devel
f9c8cc03 32BuildRequires: ladspa-devel
e389d9b2 33%{?with_lash:BuildRequires: lash-devel >= 0.3}
e2b99d1e
JB
34# OpenMP 4.0
35BuildRequires: libgomp-devel >= 6:4.9
e71a1b9b 36BuildRequires: libinstpatch-devel >= 1.1.0
e690dbbd 37BuildRequires: libsndfile-devel >= 1.0.18
e389d9b2 38%{?with_midishare:BuildRequires: midishare-devel}
4737413f 39BuildRequires: pkgconfig
f3eb153f 40%{?with_pipewire:BuildRequires: pipewire-devel >= 0.3}
2566f65e 41%{?with_portaudio:BuildRequires: portaudio-devel >= 19}
e690dbbd 42BuildRequires: pulseaudio-devel >= 0.9.8
ecf407a5 43%{?with_readline:BuildRequires: readline-devel}
7e677f47 44BuildRequires: rpmbuild(macros) >= 1.213
c26a125b 45%{?with_systemd:BuildRequires: systemd-devel >= 1:209}
c0296b5f 46Requires: alsa-lib >= 0.9.1
e2696d34 47Requires: glib2 >= 1:2.26.0
c0296b5f 48Requires: libsndfile >= 1.0.18
cbc84b11 49Suggests: soundfont-fluid
43d51d96 50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52%description
53Fluid Synth is a software, real-time synthesizer based on the
54Soundfont 2 specifications.
55
b01c0090
JR
56%description -l pl.UTF-8
57Fluid Synth to programowy, działający w czasie rzeczywistym syntezator
51d3a7f0 58oparty na specyfikacji Soundfont 2.
43d51d96 59
60%package devel
61Summary: Development files for the FluidSynth
c832e2f0 62Summary(pl.UTF-8): Pliki nagłówkowe dla FluidSynth
43d51d96 63Group: Development/Libraries
e3ebd3aa 64Requires: %{name} = %{version}-%{release}
c0296b5f
JB
65Requires: alsa-lib-devel >= 0.9.1
66Requires: dbus-devel >= 1.0.0
e2696d34 67Requires: glib2-devel >= 1:2.26.0
e690dbbd 68Requires: jack-audio-connection-kit-devel
e389d9b2 69%{?with_lash:Requires: lash-devel >= 0.3}
e690dbbd 70Requires: libsndfile-devel >= 1.0.18
2566f65e 71%{?with_midishare:Requires: midishare-devel}
f3eb153f 72%{?with_pipewire:Requires: pipewire-devel >= 0.3}
c18887e9 73%{?with_portaudio:Requires: portaudio-devel >= 19}
e690dbbd 74Requires: pulseaudio-devel >= 0.9.8
2566f65e 75%{?with_readline:Requires: readline-devel}
08a54b0d 76Obsoletes: fluidsynth-static < 2
43d51d96 77
78%description devel
79This package contains the header files necessary to develop
51d3a7f0 80applications using FluidSynth.
43d51d96 81
b01c0090
JR
82%description devel -l pl.UTF-8
83Pakiet ten zawiera pliki nagłówkowe potrzebne do tworzenia i
84kompilacji aplikacji korzystających z bibliotek FluidSynth.
43d51d96 85
43d51d96 86%prep
0afc704e 87%setup -q
43d51d96 88
89%build
f3eb153f 90%cmake -B build \
2566f65e
JK
91 -Denable-midishare=%{with midishare} \
92 -Denable-lash=%{with lash} \
f3eb153f 93 %{!?with_pipewire:-Denable-pipewire=OFF} \
2566f65e 94 -Denable-portaudio=%{with portaudio} \
c26a125b
JB
95 -Denable-readline=%{with readline} \
96 %{!?with_systemd:-Denable-systemd=OFF}
fde40a28 97
f3eb153f 98%{__make} -C build
43d51d96 99
100%install
101rm -rf $RPM_BUILD_ROOT
43d51d96 102
f3eb153f 103%{__make} -C build install \
9b5cb572 104 DESTDIR=$RPM_BUILD_ROOT
43d51d96 105
106%clean
107rm -rf $RPM_BUILD_ROOT
108
51d3a7f0
JB
109%post -p /sbin/ldconfig
110%postun -p /sbin/ldconfig
111
43d51d96 112%files
113%defattr(644,root,root,755)
c26a125b 114%doc AUTHORS README.md THANKS TODO
9e796385
KK
115%attr(755,root,root) %{_bindir}/fluidsynth
116%attr(755,root,root) %{_libdir}/libfluidsynth.so.*.*.*
e2696d34 117%attr(755,root,root) %ghost %{_libdir}/libfluidsynth.so.3
9e796385 118%{_mandir}/man1/fluidsynth.1*
5fadb22d 119
120%files devel
43d51d96 121%defattr(644,root,root,755)
9e796385 122%attr(755,root,root) %{_libdir}/libfluidsynth.so
9e796385 123%{_includedir}/fluidsynth.h
ef862a88 124%{_includedir}/fluidsynth
fde40a28 125%{_pkgconfigdir}/fluidsynth.pc
f3eb153f 126%{_libdir}/cmake/fluidsynth
This page took 0.173225 seconds and 4 git commands to generate.