2 # _with_fltk enable fltk UI
3 # _without_gtkmm disable gtkmm UI
6 # - PL translations - I have absolutely no idea for it :/
7 # but for now it works as it should...
9 Summary: A GUI patchbay for ALSA and JACK.
14 Group: X11/Applications/Sound
15 Source0: http://pkl.net/~node/software/%{name}-%{version}.tar.gz
16 Patch0: %{name}-Makefile.patch
17 URL: http://pkl.net/~node/alsa-patch-bay.html
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: libtool
21 BuildRequires: jack-audio-connection-kit-devel
22 BuildRequires: pkgconfig
23 %{!?_without_gtkmm:BuildRequires: gtkmm-devel}
24 %{?_with_fltk:BuildRequires: fltk-devel}
25 Provides: jack-patch-bay
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 ALSA Patch Bay is a GUI patchbay for the ALSA seq sequencer api and
30 the JACK audio API. It can use FLTK 1.1 or GTKmm 2.0.0.
33 %setup -q -n %{name}-%{version}
44 %if %{?_with_fltk:0}%{!?_with_fltk:1}
48 %{?_without_gtkmm:--disable-gtkmm}
53 rm -rf $RPM_BUILD_ROOT
55 %{__make} install DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc NEWS AUTHORS README
64 %attr(755,root,root) %{_bindir}/*
65 %{_datadir}/applications/*.desktop
66 %attr(755,root,root) %{_libdir}/%{name}/driver/*.so
67 %attr(755,root,root) %{_libdir}/%{name}/ui/*.so