X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=ardour.spec;h=bc44bdd451dfa3b3a54c37f27cfc4538ccd40cee;hb=9cb1f5dfa5ecd22890eb00b4ed7994880874bf60;hp=6e3ebe682612e0158b4bdcbe1283c55d4a9dc0fe;hpb=dfc827de96bbfb4c8336429fc6eca82fd2d4a435;p=packages%2Fardour.git diff --git a/ardour.spec b/ardour.spec index 6e3ebe6..bc44bdd 100644 --- a/ardour.spec +++ b/ardour.spec @@ -1,37 +1,51 @@ +# TODO +# - make it not to parse /proc/cpuinfo Summary: Multitrack hard disk recorder -Summary(pl): Wielo¶cie¿kowy magnetofon nagrywaj±cy na twardym dysku +Summary(pl.UTF-8): Wielościeżkowy magnetofon nagrywający na twardym dysku Name: ardour -Version: 0.9 -%define _beta beta18 -Release: 0.%{_beta}.2 +Version: 2.1 +Release: 0.2 License: GPL Group: X11/Applications/Sound -Source0: http://ardour.org/releases/%{name}-%{version}%{_beta}.tar.bz2 -# Source0-md5: f0ab7b6fccb67b209b1f11edea49fbf1 +Source0: http://ardour.org/files/releases/%{name}-%{version}.tar.bz2 +# Source0-md5: 18be414a37b832aae23c068ba9fcf8ab Source1: %{name}.desktop -Patch0: %{name}-system-libs.patch +Patch0: %{name}-c++.patch Patch1: %{name}-opt.patch -Patch2: %{name}-ac_cleanup.patch -Patch3: %{name}-nptl_fix.patch +Patch2: %{name}-stdint.patch URL: http://ardour.org/ -BuildRequires: XFree86-devel -BuildRequires: autoconf >= 2.50 -BuildRequires: automake BuildRequires: alsa-lib-devel >= 0.9.0 -BuildRequires: gtk+-devel >= 1.0.0 -#BuildRequires: gtk-canvas-devel >= 0.1 -BuildRequires: gtkmm1-devel >= 1.2.6 -BuildRequires: jack-audio-connection-kit-devel >= 0.98.0 +BuildRequires: boost-devel +BuildRequires: cairomm-devel +BuildRequires: fftw3-single-devel >= 3 +BuildRequires: flac-devel +BuildRequires: gettext-devel +BuildRequires: glib2-devel >= 1:2.10.1 +BuildRequires: gtk+2-devel >= 2:2.8.1 +BuildRequires: gtkmm-devel >= 2.8.0 +BuildRequires: jack-audio-connection-kit-devel >= 0.103 BuildRequires: libart_lgpl >= 2.3.16 -BuildRequires: libpng-devel -BuildRequires: liblrdf-devel >= 0.3.0 -BuildRequires: libsamplerate-devel >= 0.0.13 -BuildRequires: libsigc++1-devel >= 0.8.8 -BuildRequires: libsndfile-devel >= 1.0.0 +BuildRequires: libgnomecanvas-devel >= 2.0 +BuildRequires: libgnomecanvasmm-devel >= 2.12.0 +BuildRequires: liblo-devel +BuildRequires: liblrdf-devel >= 0.4.0 +BuildRequires: libraptor-devel >= 1.4.2 +BuildRequires: libsamplerate-devel >= 0.1.2 +BuildRequires: libsigc++-devel >= 2.0 +# included libsndfile needs patch (wants FLAC__seekable_stream_decoder_set_read_callback) +# (in ardour itself only one UI option depends on HAVE_FLAC) +# internal one used +#BuildRequires: libsndfile-devel >= 1.0.0 BuildRequires: libstdc++-devel BuildRequires: libtool -BuildRequires: libxml2-devel >= 2.5.0 -BuildRequires: pkgconfig +BuildRequires: libusb-devel +BuildRequires: libxml2-devel >= 1:2.6.0 +BuildRequires: libxslt-devel +BuildRequires: pkgconfig >= 1:0.20 +BuildRequires: python >= 2.3.4 +BuildRequires: scons >= 0.96 +BuildRequires: soundtouch-devel >= 1.3.1 +Requires: jack-audio-connection-kit-libs >= 0.103 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -40,82 +54,59 @@ Linux, using ALSA-supported audio interfaces. Supports up to 32 bit samples, 24+ channels at up to 96kHz, full MMC control, non-destructive, non-linear editor, LADSPA plugins. -%description -l pl -"Profesjonalny" wielo¶cie¿kowy, wielokana³owy magnetofon oraz DAW dla -Linuksa, wykorzystuj±cy interfejsy d¼wiêkowe obs³ugiwane przez ALSA. -Obs³uguje próbki do 32 bitów, 24+ kana³ów do 96kHz, pe³n± kontrolê +%description -l pl.UTF-8 +"Profesjonalny" wielościeżkowy, wielokanałowy magnetofon oraz DAW dla +Linuksa, wykorzystujący interfejsy dźwiękowe obsługiwane przez ALSA. +Obsługuje próbki do 32 bitów, 24+ kanałów do 96kHz, pełną kontrolę MMC, niedestruktywny, nieliniowy edytor oraz wtyczki LADSPA. %prep -%setup -q -n %{name}-%{version}%{_beta} +%setup -q %patch0 -p1 -%patch1 -p1 +# NEEDS UPDATE for scons +#%patch1 -p1 %patch2 -p1 -%patch3 -p1 - -install -d m4 -# extract AM_BUILD_ENVIRONMENT (patched!) -tail -n +837 aclocal.m4 > m4/buildenv.m4 -# AM_OPT_FLAGS (patched!) -tail -n +862 libs/pbd/aclocal.m4 | head -n 33 >> m4/buildenv.m4 - -%{__perl} -pi -e 's/pt_PT/pt/' gtk_ardour/po/LINGUAS -mv -f gtk_ardour/po/{pt_PT,pt}.po %build -%{__aclocal} -I m4 -%{__autoconf} -%{__automake} -cd gtk_ardour -%{__aclocal} -I ../m4 -%{__autoconf} -%{__automake} -cd ../libs -%{__libtoolize} -%{__aclocal} -I ../m4 -%{__autoconf} -%{__automake} -cd ardour -%{__libtoolize} -%{__aclocal} -I ../../m4 -%{__autoconf} -%{__automake} -cd ../gtk-canvas -%{__aclocal} -I ../../m4 -%{__autoconf} -%{__automake} -cd ../gtkmmext -%{__aclocal} -I ../../m4 -%{__autoconf} -%{__automake} -cd ../midi++ -%{__aclocal} -I ../../m4 -%{__autoconf} -%{__automake} -cd ../pbd -%{__aclocal} -I ../../m4 -%{__autoconf} -%{__automake} -cd ../soundtouch -%{__aclocal} -I ../../m4 -%{__autoconf} -%{__automake} -cd ../.. -# ksi doesn't build for a moment -%configure \ - --disable-ksi \ - %{!?debug:--enable-optimize} +# Make sure we have /proc mounted - it searches for flags from there +if [ ! -f /proc/cpuinfo ]; then + echo "You need to have /proc mounted in order to build this package!" + exit 1 +fi -%{__make} +CXX="%{__cxx}" \ +CC="%{__cc}" \ +%scons \ + PREFIX=%{_prefix} \ + SYSLIBS=1 \ +%ifarch %{x8664} + DIST_TARGET=x86_64 +%else +%ifarch %{ix86} + DIST_TARGET=i386 +%else + DIST_TARGET=none +%endif +%endif %install +# Make sure we have /proc mounted - it searches for flags from there +if [ ! -f /proc/cpuinfo ]; then + echo "You need to have /proc mounted in order to build this package!" + exit 1 +fi + rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_desktopdir} +install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} -%{__make} install \ - DESTDIR=$RPM_BUILD_ROOT +%scons install \ + DESTDIR=$RPM_BUILD_ROOT \ + PREFIX=%{_prefix} \ + GTK=yes +# KSI=yes install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} +cp -a gtk2_ardour/icons/ardour_icon_48px.png $RPM_BUILD_ROOT%{_pixmapsdir}/ardour.png # it shouldn't be there rm -f $RPM_BUILD_ROOT%{_datadir}/ardour/libardour.{la,a} @@ -127,17 +118,33 @@ rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) -%doc ChangeLog DOCUMENTATION/{AUTHORS,CONTRIBUTORS,FAQ,README,TODO,TRANSLATORS} +%doc DOCUMENTATION/{AUTHORS,CONTRIBUTORS,FAQ,TRANSLATORS} %lang(es) %doc DOCUMENTATION/{AUTHORS.es,CONTRIBUTORS.es,README.es} %lang(fr) %doc DOCUMENTATION/README.fr %lang(it) %doc DOCUMENTATION/README.it %lang(ru) %doc DOCUMENTATION/README.ru -%attr(755,root,root) %{_bindir}/* -%{_datadir}/%{name} -%{_mandir}/man1/ardour.1* -%lang(es) %{_mandir}/es/man1/ardour.1* -%lang(fr) %{_mandir}/fr/man1/ardour.1* -%lang(ru) %{_mandir}/ru/man1/ardour.1* -%dir %{_sysconfdir}/ardour -%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ardour/*.rc +%dir %{_sysconfdir}/ardour2 +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ardour2/*.conf +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ardour2/*.rc +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ardour2/ardour.bindings +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ardour2/ardour.menus +%attr(755,root,root) %{_bindir}/ardour2 +%{_datadir}/ardour2 %{_desktopdir}/ardour.desktop +%{_pixmapsdir}/ardour.png + +%dir %{_libdir}/ardour2 +%attr(755,root,root) %{_libdir}/ardour2/ardour-2.1 +%attr(755,root,root) %{_libdir}/ardour2/libardour.so +%attr(755,root,root) %{_libdir}/ardour2/libardour_cp.so +%attr(755,root,root) %{_libdir}/ardour2/libgtkmm2ext.so +%attr(755,root,root) %{_libdir}/ardour2/libmidi++.so +%attr(755,root,root) %{_libdir}/ardour2/libpbd.so +%attr(755,root,root) %{_libdir}/ardour2/libsndfile-ardour.so +%dir %{_libdir}/ardour2/engines +%attr(755,root,root) %{_libdir}/ardour2/engines/libclearlooks.so +%dir %{_libdir}/ardour2/surfaces +%attr(755,root,root) %{_libdir}/ardour2/surfaces/libardour_genericmidi.so +%attr(755,root,root) %{_libdir}/ardour2/surfaces/libardour_mackie.so +%attr(755,root,root) %{_libdir}/ardour2/surfaces/libardour_powermate.so +%attr(755,root,root) %{_libdir}/ardour2/surfaces/libardour_tranzport.so