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