]> git.pld-linux.org Git - packages/ardour.git/blobdiff - ardour.spec
- massive change ( validate errors warrings from desktop-file-validate)
[packages/ardour.git] / ardour.spec
index a33a22d9650d5bc25fd2c1a2fdbb17a108f61f60..bc44bdd451dfa3b3a54c37f27cfc4538ccd40cee 100644 (file)
@@ -4,7 +4,7 @@ Summary:        Multitrack hard disk recorder
 Summary(pl.UTF-8):     Wielościeżkowy magnetofon nagrywający na twardym dysku
 Name:          ardour
 Version:       2.1
-Release:       0.1
+Release:       0.2
 License:       GPL
 Group:         X11/Applications/Sound
 Source0:       http://ardour.org/files/releases/%{name}-%{version}.tar.bz2
@@ -16,12 +16,10 @@ Patch2:             %{name}-stdint.patch
 URL:           http://ardour.org/
 BuildRequires: alsa-lib-devel >= 0.9.0
 BuildRequires: boost-devel
-BuildRequires: gettext-devel
-# included libsndfile needs patch (wants FLAC__seekable_stream_decoder_set_read_callback)
-# (in ardour itself only one UI option depends on HAVE_FLAC)
 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
@@ -34,6 +32,8 @@ 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
@@ -73,6 +73,9 @@ if [ ! -f /proc/cpuinfo ]; then
        echo "You need to have /proc mounted in order to build this package!"
        exit 1
 fi
+
+CXX="%{__cxx}" \
+CC="%{__cc}" \
 %scons \
        PREFIX=%{_prefix} \
        SYSLIBS=1 \
@@ -87,8 +90,14 @@ fi
 %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}}
 
 %scons install \
        DESTDIR=$RPM_BUILD_ROOT \
@@ -97,6 +106,7 @@ install -d $RPM_BUILD_ROOT%{_desktopdir}
 #      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}
@@ -108,7 +118,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc 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
@@ -121,6 +131,7 @@ rm -rf $RPM_BUILD_ROOT
 %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
This page took 0.113354 seconds and 4 git commands to generate.