]> git.pld-linux.org Git - packages/fluidsynth.git/blame - fluidsynth.spec
Version: 2.0.2 (soname change)
[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
2566f65e 11Version: 2.0.2
c2d1ce44 12Release: 1
e389d9b2
JB
13%if %{with ladcca} || %{with lash} || %{with readline}
14License: GPL v2+ (enforced by ladcca/lash/readline), LGPL v2+ (fluidsynth itself)
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
2566f65e 21# Source0-md5: fdc3c131786d5a93136f6fbfde787bf1
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
ae169360 29%{?with_ladcca:BuildRequires: ladcca-devel < 0.4.0}
fde40a28 30%{?with_ladcca:BuildRequires: ladcca-devel >= 0.3.1}
f9c8cc03 31BuildRequires: ladspa-devel
e389d9b2 32%{?with_lash:BuildRequires: lash-devel >= 0.3}
2566f65e 33BuildRequires: libgomp-devel
e690dbbd 34BuildRequires: libsndfile-devel >= 1.0.18
e389d9b2 35%{?with_midishare:BuildRequires: midishare-devel}
4737413f 36BuildRequires: pkgconfig
2566f65e 37%{?with_portaudio:BuildRequires: portaudio-devel >= 19}
e690dbbd 38BuildRequires: pulseaudio-devel >= 0.9.8
ecf407a5 39%{?with_readline:BuildRequires: readline-devel}
7e677f47 40BuildRequires: rpmbuild(macros) >= 1.213
c0296b5f
JB
41Requires: alsa-lib >= 0.9.1
42Requires: glib2 >= 1:2.6.5
43Requires: libsndfile >= 1.0.18
cbc84b11 44Suggests: soundfont-fluid
43d51d96 45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47%description
48Fluid Synth is a software, real-time synthesizer based on the
49Soundfont 2 specifications.
50
b01c0090
JR
51%description -l pl.UTF-8
52Fluid Synth to programowy, działający w czasie rzeczywistym syntezator
51d3a7f0 53oparty na specyfikacji Soundfont 2.
43d51d96 54
55%package devel
56Summary: Development files for the FluidSynth
c832e2f0 57Summary(pl.UTF-8): Pliki nagłówkowe dla FluidSynth
43d51d96 58Group: Development/Libraries
e3ebd3aa 59Requires: %{name} = %{version}-%{release}
c0296b5f
JB
60Requires: alsa-lib-devel >= 0.9.1
61Requires: dbus-devel >= 1.0.0
62Requires: glib2-devel >= 1:2.6.5
e690dbbd 63Requires: jack-audio-connection-kit-devel
e389d9b2 64%{?with_lash:Requires: lash-devel >= 0.3}
e690dbbd 65Requires: libsndfile-devel >= 1.0.18
2566f65e 66%{?with_midishare:Requires: midishare-devel}
e690dbbd
KK
67Requires: portaudio-devel >= 19
68Requires: pulseaudio-devel >= 0.9.8
2566f65e 69%{?with_readline:Requires: readline-devel}
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
85%cmake \
86 -Denable-midishare=%{with midishare} \
87 -Denable-lash=%{with lash} \
88 -Denable-portaudio=%{with portaudio} \
89 -Denable-readline=%{with readline} \
90 ..
fde40a28 91
c2d1ce44
JB
92# define missing in autotools suite
93echo '#define DEFAULT_SOUNDFONT "%{_datadir}/soundfonts/default.sf2"' >> src/config.h
94
43d51d96 95%{__make}
96
97%install
98rm -rf $RPM_BUILD_ROOT
43d51d96 99
2566f65e 100cd build
9b5cb572
PG
101%{__make} install \
102 DESTDIR=$RPM_BUILD_ROOT
43d51d96 103
104%clean
105rm -rf $RPM_BUILD_ROOT
106
51d3a7f0
JB
107%post -p /sbin/ldconfig
108%postun -p /sbin/ldconfig
109
43d51d96 110%files
111%defattr(644,root,root,755)
c2d1ce44 112%doc AUTHORS NEWS README.md THANKS TODO
9e796385
KK
113%attr(755,root,root) %{_bindir}/fluidsynth
114%attr(755,root,root) %{_libdir}/libfluidsynth.so.*.*.*
2566f65e 115%attr(755,root,root) %ghost %{_libdir}/libfluidsynth.so.2
9e796385 116%{_mandir}/man1/fluidsynth.1*
5fadb22d 117
118%files devel
43d51d96 119%defattr(644,root,root,755)
9e796385 120%attr(755,root,root) %{_libdir}/libfluidsynth.so
9e796385 121%{_includedir}/fluidsynth.h
51d3a7f0 122%{_includedir}/%{name}
fde40a28 123%{_pkgconfigdir}/fluidsynth.pc
This page took 0.045432 seconds and 4 git commands to generate.