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