3 %bcond_with ladcca # build with LADCCA support
5 Summary: MIDI controlled audio sampler
6 Summary(pl.UTF-8): Kontrolowany przez MIDI sampler dźwiękowy
11 Group: X11/Applications/Sound
12 Source0: http://www.gazuga.net/files/%{name}-%{version}.tar.gz
13 # Source0-md5: 278f1f66add761feb1fa16cf0502f70f
14 Source1: %{name}.desktop
15 Patch0: %{name}-64bit.patch
16 URL: http://www.gazuga.net/
17 BuildRequires: alsa-lib-devel
18 BuildRequires: autoconf >= 2.50
19 BuildRequires: automake
20 BuildRequires: gtk+2-devel >= 2:2.4
21 BuildRequires: jack-audio-connection-kit-devel >= 0.90.0
22 %{?with_ladcca:BuildRequires: ladcca-devel >= 0.4.0}
23 BuildRequires: libgnomecanvas-devel >= 2.0
24 BuildRequires: libsamplerate-devel
25 BuildRequires: libsndfile-devel
26 BuildRequires: libtool
27 BuildRequires: libxml2-devel >= 2.0
28 BuildRequires: perl-base
29 BuildRequires: phat-devel >= 0.2.2
30 BuildRequires: pkgconfig
31 Requires: gtk+2 >= 2:2.4
32 Requires: jack-audio-connection-kit >= 0.90.0
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Specimen is a MIDI controlled audio sampler for GNU/Linux systems. It
37 allows to create music using various sound files, or "samples", in
38 tandem with a midi sequencer.
40 %description -l pl.UTF-8
41 Specimen jest kontrolowanym z poziomu MIDI samplerem dźwiękowym dla
42 systemów GNU/Linux. Pozwala na tworzenie muzyki z przeróżnych plików
43 dźwiękowych czy też "sampli" w połączeniu z sekwencerem MIDI.
49 # workaround for variables names
50 echo 'm4_pattern_allow(PKG_CFLAGS)' > acinclude.m4
51 echo 'm4_pattern_allow(PKG_LIBS)' >> acinclude.m4
52 echo 'm4_pattern_allow(PKG_PKG_ERRORS)' >> acinclude.m4
54 %{__perl} -pi -e 's/CFLAGS="-O3"/:/' configure.ac
63 --enable-ladcca=%{?with_ladcca:yes}%{!?with_ladcca:no}
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT%{_desktopdir}
72 DESTDIR=$RPM_BUILD_ROOT
74 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
77 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
81 %doc AUTHORS ChangeLog NEWS README TODO
82 %attr(755,root,root) %{_bindir}/*
83 %dir %{_datadir}/specimen
84 %{_datadir}/specimen/pixmaps
85 %{_desktopdir}/*.desktop