]> git.pld-linux.org Git - packages/ardour.git/blame - ardour.spec
- set install prefix
[packages/ardour.git] / ardour.spec
CommitLineData
63818174
ER
1# TODO
2# - make it not to parse /proc/cpuinfo
0acf8fe4 3Summary: Multitrack hard disk recorder
e3462249 4Summary(pl.UTF-8): Wielościeżkowy magnetofon nagrywający na twardym dysku
0acf8fe4 5Name: ardour
96d07113 6Version: 2.1
2788d6a3 7Release: 0.1
0acf8fe4 8License: GPL
9Group: X11/Applications/Sound
2788d6a3 10Source0: http://ardour.org/files/releases/%{name}-%{version}.tar.bz2
96d07113 11# Source0-md5: 18be414a37b832aae23c068ba9fcf8ab
0abfb58a 12Source1: %{name}.desktop
ff486d49 13Patch0: %{name}-c++.patch
9bdc7cc9 14Patch1: %{name}-opt.patch
96d07113 15Patch2: %{name}-stdint.patch
11673d43 16URL: http://ardour.org/
af389eaf 17BuildRequires: alsa-lib-devel >= 0.9.0
2788d6a3 18BuildRequires: boost-devel
9f2a37da 19BuildRequires: gettext-devel
95c59896
JB
20# included libsndfile needs patch (wants FLAC__seekable_stream_decoder_set_read_callback)
21# (in ardour itself only one UI option depends on HAVE_FLAC)
63818174 22BuildRequires: cairomm-devel
95c59896 23BuildRequires: fftw3-single-devel >= 3
63818174 24BuildRequires: flac-devel
95c59896
JB
25BuildRequires: glib2-devel >= 1:2.10.1
26BuildRequires: gtk+2-devel >= 2:2.8.1
2788d6a3 27BuildRequires: gtkmm-devel >= 2.8.0
95c59896 28BuildRequires: jack-audio-connection-kit-devel >= 0.101.1
12930179 29BuildRequires: libart_lgpl >= 2.3.16
2788d6a3 30BuildRequires: libgnomecanvas-devel >= 2.0
95c59896 31BuildRequires: libgnomecanvasmm-devel >= 2.12.0
63818174 32BuildRequires: liblo-devel
95c59896 33BuildRequires: liblrdf-devel >= 0.4.0
95c59896 34BuildRequires: libraptor-devel >= 1.4.2
2788d6a3 35BuildRequires: libsamplerate-devel >= 0.1.2
95c59896
JB
36BuildRequires: libsigc++-devel >= 2.0
37# internal one used
38#BuildRequires: libsndfile-devel >= 1.0.0
0acf8fe4 39BuildRequires: libstdc++-devel
9b6c8bab 40BuildRequires: libtool
95c59896
JB
41BuildRequires: libusb-devel
42BuildRequires: libxml2-devel >= 1:2.6.0
43BuildRequires: libxslt-devel
95c59896 44BuildRequires: pkgconfig >= 1:0.20
63818174 45BuildRequires: python >= 2.3.4
2788d6a3 46BuildRequires: scons >= 0.96
95c59896 47BuildRequires: soundtouch-devel >= 1.3.1
0acf8fe4 48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50%description
51A "professional" multitrack, multichannel audio recorder and DAW for
52Linux, using ALSA-supported audio interfaces. Supports up to 32 bit
53samples, 24+ channels at up to 96kHz, full MMC control,
54non-destructive, non-linear editor, LADSPA plugins.
55
eb8c735e
JR
56%description -l pl.UTF-8
57"Profesjonalny" wielościeżkowy, wielokanałowy magnetofon oraz DAW dla
58Linuksa, wykorzystujący interfejsy dźwiękowe obsługiwane przez ALSA.
59Obsługuje próbki do 32 bitów, 24+ kanałów do 96kHz, pełną kontrolę
9b6c8bab 60MMC, niedestruktywny, nieliniowy edytor oraz wtyczki LADSPA.
0acf8fe4 61
62%prep
2788d6a3 63%setup -q
ff486d49 64%patch0 -p1
9bdc7cc9
JB
65# NEEDS UPDATE for scons
66#%patch1 -p1
96d07113 67%patch2 -p1
9b6c8bab 68
0acf8fe4 69%build
63818174
ER
70# Make sure we have /proc mounted - it searches for flags from there
71if [ ! -f /proc/cpuinfo ]; then
72 echo "You need to have /proc mounted in order to build this package!"
73 exit 1
74fi
95c59896
JB
75%scons \
76 SYSLIBS=1 \
77%ifarch %{x8664}
78 DIST_TARGET=x86_64
79%else
80%ifarch %{ix86}
81 DIST_TARGET=i386
82%else
83 DIST_TARGET=none
84%endif
85%endif
0acf8fe4 86
87%install
88rm -rf $RPM_BUILD_ROOT
0abfb58a 89install -d $RPM_BUILD_ROOT%{_desktopdir}
0acf8fe4 90
95c59896 91%scons install \
2788d6a3 92 DESTDIR=$RPM_BUILD_ROOT \
edd78108 93 PREFIX=%{_prefix} \
2788d6a3
MWP
94 GTK=yes
95# KSI=yes
0acf8fe4 96
0abfb58a 97install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
98
11673d43
JB
99# it shouldn't be there
100rm -f $RPM_BUILD_ROOT%{_datadir}/ardour/libardour.{la,a}
101
0acf8fe4 102%find_lang %{name} --all-name
103
104%clean
105rm -rf $RPM_BUILD_ROOT
106
107%files -f %{name}.lang
108%defattr(644,root,root,755)
edd78108 109%doc DOCUMENTATION/{AUTHORS,CONTRIBUTORS,FAQ,README,TODO,TRANSLATORS}
11673d43
JB
110%lang(es) %doc DOCUMENTATION/{AUTHORS.es,CONTRIBUTORS.es,README.es}
111%lang(fr) %doc DOCUMENTATION/README.fr
112%lang(it) %doc DOCUMENTATION/README.it
113%lang(ru) %doc DOCUMENTATION/README.ru
0acf8fe4 114%attr(755,root,root) %{_bindir}/*
78e3632a 115%{_datadir}/%{name}
11673d43
JB
116%{_mandir}/man1/ardour.1*
117%lang(es) %{_mandir}/es/man1/ardour.1*
118%lang(fr) %{_mandir}/fr/man1/ardour.1*
119%lang(ru) %{_mandir}/ru/man1/ardour.1*
9b6c8bab 120%dir %{_sysconfdir}/ardour
af389eaf 121%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ardour/*.rc
0abfb58a 122%{_desktopdir}/ardour.desktop
This page took 0.192936 seconds and 4 git commands to generate.