]> git.pld-linux.org Git - packages/fluidsynth.git/blame - fluidsynth.spec
- updated to 1.1.8
[packages/fluidsynth.git] / fluidsynth.spec
CommitLineData
5fadb22d 1#
2# Conditional build:
e389d9b2
JB
3%bcond_with ladcca # ladcca sesion management support (deprecated) (GPL)
4%bcond_without lash # LASH support (GPL)
5%bcond_with midishare # MidiShare support
6%bcond_without readline # readline line editing (GPL)
9e796385
KK
7%bcond_with sse # use the SSE instructions of Pentium3+ or Athlon XP
8%bcond_without static_libs # don't build static library
5fadb22d 9#
7e677f47 10%ifarch pentium3 pentium4 %{x8664}
13cb656b
PS
11%define with_sse 1
12%endif
13#
a02834be 14Summary: FluidSynth - a software, real-time synthesizer
c832e2f0 15Summary(pl.UTF-8): FluidSynth - programowy syntezator działający w czasie rzeczywistym
43d51d96 16Name: fluidsynth
c2d1ce44
JB
17Version: 1.1.8
18Release: 1
e389d9b2
JB
19%if %{with ladcca} || %{with lash} || %{with readline}
20License: GPL v2+ (enforced by ladcca/lash/readline), LGPL v2+ (fluidsynth itself)
21%else
c0296b5f 22License: LGPL v2+
e389d9b2 23%endif
43d51d96 24Group: Applications/Sound
c2d1ce44
JB
25#Source0Download: https://github.com/FluidSynth/fluidsynth/releases
26Source0: https://github.com/FluidSynth/fluidsynth/archive/v%{version}/%{name}-%{version}.tar.gz
27# Source0-md5: 623bb3b8d3a3ef3c4dc0d4cdbfc311a5
e389d9b2 28Patch0: %{name}-midishare.patch
c2d1ce44 29Patch1: %{name}-soname.patch
43d51d96 30URL: http://www.fluidsynth.org/
c0296b5f 31BuildRequires: alsa-lib-devel >= 0.9.1
9e796385 32BuildRequires: autoconf >= 2.52
4737413f 33BuildRequires: automake
c0296b5f 34BuildRequires: dbus-devel >= 1.0.0
2a60fc6b 35BuildRequires: gettext-tools
c0296b5f 36BuildRequires: glib2-devel >= 1:2.6.5
43d51d96 37BuildRequires: jack-audio-connection-kit-devel
ae169360 38%{?with_ladcca:BuildRequires: ladcca-devel < 0.4.0}
fde40a28 39%{?with_ladcca:BuildRequires: ladcca-devel >= 0.3.1}
f9c8cc03 40BuildRequires: ladspa-devel
e389d9b2 41%{?with_lash:BuildRequires: lash-devel >= 0.3}
e690dbbd 42BuildRequires: libsndfile-devel >= 1.0.18
9e796385 43BuildRequires: libtool
e389d9b2 44%{?with_midishare:BuildRequires: midishare-devel}
4737413f 45BuildRequires: pkgconfig
e690dbbd
KK
46BuildRequires: portaudio-devel >= 19
47BuildRequires: pulseaudio-devel >= 0.9.8
ecf407a5 48%{?with_readline:BuildRequires: readline-devel}
7e677f47 49BuildRequires: rpmbuild(macros) >= 1.213
c0296b5f
JB
50Requires: alsa-lib >= 0.9.1
51Requires: glib2 >= 1:2.6.5
52Requires: libsndfile >= 1.0.18
cbc84b11 53Suggests: soundfont-fluid
43d51d96 54BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56%description
57Fluid Synth is a software, real-time synthesizer based on the
58Soundfont 2 specifications.
59
b01c0090
JR
60%description -l pl.UTF-8
61Fluid Synth to programowy, działający w czasie rzeczywistym syntezator
51d3a7f0 62oparty na specyfikacji Soundfont 2.
43d51d96 63
64%package devel
65Summary: Development files for the FluidSynth
c832e2f0 66Summary(pl.UTF-8): Pliki nagłówkowe dla FluidSynth
43d51d96 67Group: Development/Libraries
e3ebd3aa 68Requires: %{name} = %{version}-%{release}
c0296b5f
JB
69Requires: alsa-lib-devel >= 0.9.1
70Requires: dbus-devel >= 1.0.0
71Requires: glib2-devel >= 1:2.6.5
e690dbbd 72Requires: jack-audio-connection-kit-devel
e389d9b2 73%{?with_lash:Requires: lash-devel >= 0.3}
e690dbbd 74Requires: libsndfile-devel >= 1.0.18
e389d9b2 75%{?with_midishare:Requires: midishare-devel}
e690dbbd
KK
76Requires: portaudio-devel >= 19
77Requires: pulseaudio-devel >= 0.9.8
ecf407a5 78%{?with_readline:Requires: readline-devel}
43d51d96 79
80%description devel
81This package contains the header files necessary to develop
51d3a7f0 82applications using FluidSynth.
43d51d96 83
b01c0090
JR
84%description devel -l pl.UTF-8
85Pakiet ten zawiera pliki nagłówkowe potrzebne do tworzenia i
86kompilacji aplikacji korzystających z bibliotek FluidSynth.
43d51d96 87
5fadb22d 88%package static
7cab7902 89Summary: Static FluidSynth library
c832e2f0 90Summary(pl.UTF-8): Statyczna wersje biblioteki FluidSynth
7cab7902 91Group: Development/Libraries
e3ebd3aa 92Requires: %{name}-devel = %{version}-%{release}
5fadb22d 93
94%description static
51d3a7f0 95This package contains static version of the FluidSynth library.
5fadb22d 96
b01c0090
JR
97%description static -l pl.UTF-8
98Ten pakiet zawiera bibliotekę statyczną FluidSynth.
5fadb22d 99
43d51d96 100%prep
0afc704e 101%setup -q
e389d9b2 102%patch0 -p1
c2d1ce44 103%patch1 -p1
43d51d96 104
105%build
9e796385
KK
106%{__libtoolize}
107%{__aclocal}
108%{__autoconf}
109%{__autoheader}
110%{__automake}
5b109aa3 111
43d51d96 112%configure \
ae169360 113 %{!?with_ladcca:--disable-ladcca} \
e389d9b2
JB
114 %{!?with_lash:--disable-lash} \
115 %{!?with_midishare:--disable-midishare} \
9e796385 116 %{!?with_static_libs:--disable-static} \
810405f4 117 %{?with_sse:--enable-SSE} \
810405f4 118 --enable-jack-support \
119 --enable-ladspa \
9e796385 120 --enable-profiling \
ecf407a5 121 %{!?with_readline:--without-readline}
fde40a28 122
c2d1ce44
JB
123# define missing in autotools suite
124echo '#define DEFAULT_SOUNDFONT "%{_datadir}/soundfonts/default.sf2"' >> src/config.h
125
43d51d96 126%{__make}
127
128%install
129rm -rf $RPM_BUILD_ROOT
43d51d96 130
9b5cb572
PG
131%{__make} install \
132 DESTDIR=$RPM_BUILD_ROOT
43d51d96 133
1355757b 134%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfluidsynth.la
135
43d51d96 136%clean
137rm -rf $RPM_BUILD_ROOT
138
51d3a7f0
JB
139%post -p /sbin/ldconfig
140%postun -p /sbin/ldconfig
141
43d51d96 142%files
143%defattr(644,root,root,755)
c2d1ce44 144%doc AUTHORS NEWS README.md THANKS TODO
9e796385
KK
145%attr(755,root,root) %{_bindir}/fluidsynth
146%attr(755,root,root) %{_libdir}/libfluidsynth.so.*.*.*
c3ee7f44 147%attr(755,root,root) %ghost %{_libdir}/libfluidsynth.so.1
9e796385 148%{_mandir}/man1/fluidsynth.1*
5fadb22d 149
150%files devel
43d51d96 151%defattr(644,root,root,755)
9e796385 152%attr(755,root,root) %{_libdir}/libfluidsynth.so
9e796385 153%{_includedir}/fluidsynth.h
51d3a7f0 154%{_includedir}/%{name}
fde40a28 155%{_pkgconfigdir}/fluidsynth.pc
5fadb22d 156
9e796385 157%if %{with static_libs}
5fadb22d 158%files static
51d3a7f0 159%defattr(644,root,root,755)
9e796385
KK
160%{_libdir}/libfluidsynth.a
161%endif
This page took 0.159064 seconds and 4 git commands to generate.