]> git.pld-linux.org Git - SPECS.git/blob - specimen.spec
SPECS updated Sat 31 Jul 20:27:02 CEST 2021
[SPECS.git] / specimen.spec
1 #
2 # Conditional build
3 %bcond_with     ladcca  # build with LADCCA support
4 #
5 Summary:        MIDI controlled audio sampler
6 Summary(pl.UTF-8):      Kontrolowany przez MIDI sampler dźwiękowy
7 Name:           specimen
8 Version:        0.5.1
9 Release:        1
10 License:        GPL v2
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)
34
35 %description
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.
39
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.
44
45 %prep
46 %setup -q
47 %patch0 -p1
48
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
53
54 %{__perl} -pi -e 's/CFLAGS="-O3"/:/' configure.ac
55
56 %build
57 %{__libtoolize}
58 %{__aclocal} -I .
59 %{__autoconf}
60 %{__autoheader}
61 %{__automake}
62 %configure \
63         --enable-ladcca=%{?with_ladcca:yes}%{!?with_ladcca:no}
64
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT%{_desktopdir}
70
71 %{__make} install \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %files
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
This page took 0.364951 seconds and 3 git commands to generate.