]>
Commit | Line | Data |
---|---|---|
5fadb22d | 1 | # |
2 | # Conditional build: | |
621b72c0 PS |
3 | %bcond_with ladcca # enable ladcca sesion managment support |
4 | %bcond_with sse # use the SSE instructions of Pentium3+ or Athlon XP | |
5fadb22d | 5 | # |
7e677f47 | 6 | %ifarch pentium3 pentium4 %{x8664} |
13cb656b PS |
7 | %define with_sse 1 |
8 | %endif | |
9 | # | |
a02834be | 10 | Summary: FluidSynth - a software, real-time synthesizer |
c832e2f0 | 11 | Summary(pl.UTF-8): FluidSynth - programowy syntezator działający w czasie rzeczywistym |
43d51d96 | 12 | Name: fluidsynth |
0afc704e | 13 | Version: 1.0.8 |
14 | Release: 1 | |
621b72c0 | 15 | License: LGPL |
43d51d96 | 16 | Group: Applications/Sound |
ee3a7532 | 17 | Source0: http://savannah.nongnu.org/download/fluid/%{name}-%{version}.tar.gz |
0afc704e | 18 | # Source0-md5: e2abfd2e69fd8b28d965df968d7d44ee |
43d51d96 | 19 | URL: http://www.fluidsynth.org/ |
20 | BuildRequires: alsa-lib-devel >= 0.9.0 | |
4737413f | 21 | BuildRequires: automake |
43d51d96 | 22 | BuildRequires: jack-audio-connection-kit-devel |
ae169360 | 23 | %{?with_ladcca:BuildRequires: ladcca-devel < 0.4.0} |
fde40a28 | 24 | %{?with_ladcca:BuildRequires: ladcca-devel >= 0.3.1} |
f9c8cc03 | 25 | BuildRequires: ladspa-devel |
4737413f | 26 | BuildRequires: pkgconfig |
7e677f47 | 27 | BuildRequires: rpmbuild(macros) >= 1.213 |
43d51d96 | 28 | Requires: alsa-lib |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | Fluid Synth is a software, real-time synthesizer based on the | |
33 | Soundfont 2 specifications. | |
34 | ||
b01c0090 JR |
35 | %description -l pl.UTF-8 |
36 | Fluid Synth to programowy, działający w czasie rzeczywistym syntezator | |
51d3a7f0 | 37 | oparty na specyfikacji Soundfont 2. |
43d51d96 | 38 | |
39 | %package devel | |
40 | Summary: Development files for the FluidSynth | |
c832e2f0 | 41 | Summary(pl.UTF-8): Pliki nagłówkowe dla FluidSynth |
43d51d96 | 42 | Group: Development/Libraries |
e3ebd3aa | 43 | Requires: %{name} = %{version}-%{release} |
43d51d96 | 44 | |
45 | %description devel | |
46 | This package contains the header files necessary to develop | |
51d3a7f0 | 47 | applications using FluidSynth. |
43d51d96 | 48 | |
b01c0090 JR |
49 | %description devel -l pl.UTF-8 |
50 | Pakiet ten zawiera pliki nagłówkowe potrzebne do tworzenia i | |
51 | kompilacji aplikacji korzystających z bibliotek FluidSynth. | |
43d51d96 | 52 | |
5fadb22d | 53 | %package static |
7cab7902 | 54 | Summary: Static FluidSynth library |
c832e2f0 | 55 | Summary(pl.UTF-8): Statyczna wersje biblioteki FluidSynth |
7cab7902 | 56 | Group: Development/Libraries |
e3ebd3aa | 57 | Requires: %{name}-devel = %{version}-%{release} |
5fadb22d | 58 | |
59 | %description static | |
51d3a7f0 | 60 | This package contains static version of the FluidSynth library. |
5fadb22d | 61 | |
b01c0090 JR |
62 | %description static -l pl.UTF-8 |
63 | Ten pakiet zawiera bibliotekę statyczną FluidSynth. | |
5fadb22d | 64 | |
43d51d96 | 65 | %prep |
0afc704e | 66 | %setup -q |
43d51d96 | 67 | |
68 | %build | |
5b109aa3 | 69 | cp /usr/share/automake/config.sub . |
70 | ||
43d51d96 | 71 | %configure \ |
ae169360 | 72 | %{!?with_ladcca:--disable-ladcca} \ |
810405f4 | 73 | %{?with_sse:--enable-SSE} \ |
5fadb22d | 74 | --enable-coreaudio \ |
810405f4 | 75 | --enable-jack-support \ |
76 | --enable-ladspa \ | |
13cb656b PS |
77 | --enable-midishare \ |
78 | --enable-profiling | |
fde40a28 | 79 | |
43d51d96 | 80 | %{__make} |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | install -d $RPM_BUILD_ROOT | |
85 | ||
9b5cb572 PG |
86 | %{__make} install \ |
87 | DESTDIR=$RPM_BUILD_ROOT | |
43d51d96 | 88 | |
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
51d3a7f0 JB |
92 | %post -p /sbin/ldconfig |
93 | %postun -p /sbin/ldconfig | |
94 | ||
43d51d96 | 95 | %files |
96 | %defattr(644,root,root,755) | |
97 | %doc ChangeLog README | |
43d51d96 | 98 | %attr(755,root,root) %{_bindir}/* |
51d3a7f0 | 99 | %attr(755,root,root) %{_libdir}/lib%{name}.so.*.*.* |
23a77e86 | 100 | %{_mandir}/man1/* |
5fadb22d | 101 | |
102 | %files devel | |
43d51d96 | 103 | %defattr(644,root,root,755) |
51d3a7f0 | 104 | %attr(755,root,root) %{_libdir}/lib%{name}.so |
c880b88f | 105 | %{_libdir}/lib%{name}.la |
43d51d96 | 106 | %{_includedir}/%{name}.h |
51d3a7f0 | 107 | %{_includedir}/%{name} |
fde40a28 | 108 | %{_pkgconfigdir}/fluidsynth.pc |
5fadb22d | 109 | |
110 | %files static | |
51d3a7f0 | 111 | %defattr(644,root,root,755) |
5fadb22d | 112 | %{_libdir}/lib%{name}.a |