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