File ardour4.spec of Package ardour4

#
# spec file for package ardour4
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define debug_package %{nil}

Summary:	Multichannel Digital Audio Workstation
Name:		ardour4
Version:	4.4
Release:	0
Source0:	ardour-%{version}.tar.bz2
Source1:	%{name}.png
Source2:	%{name}.desktop
Source3:	%{name}-rpmlintrc
Url:		http://ardour.org
License:	GPL-2.0
Group:		Productivity/Multimedia/Sound/Editors and Convertors

BuildRequires:	fdupes
BuildRequires:	python
BuildRequires:	python-rdflib >= 3.2.0
BuildRequires:	python-xml, gcc-c++, pkgconfig
BuildRequires:	libcurl-devel >= 7.25.0
BuildRequires:	libcppunit-devel
BuildRequires:  liblilv-devel
BuildRequires:  libsuil-devel
BuildRequires:  libogg-devel >= 1.3.0
BuildRequires:  flac-devel >= 1.2.1
BuildRequires:  libcurl-devel, libgthread-2_0-0
BuildRequires:	libserd-devel
BuildRequires:	libsord-devel
BuildRequires:	libsratom-devel
BuildRequires:	automake, autoconf, libtool, jack-devel
BuildRequires:	libcwiid1, python-cwiid, libcwiid-devel
BuildRequires:	alsa-devel, libjack-devel, 
BuildRequires:	libart_lgpl-devel >= 2.3.21
BuildRequires:	gettext-devel
BuildRequires:	gtk2-devel >= 2.24.18
BuildRequires:	glib2-devel, glibc-devel
BuildRequires:	libgnomecanvas-devel >= 2.30.3
BuildRequires:	libgnomecanvasmm-devel >= 2.26.0
BuildRequires:	boost-devel >= 1.49.0
BuildRequires:	liblo-devel >= 0.26
BuildRequires:	libsndfile-devel >= 1.0.25
BuildRequires:	libsamplerate-devel >= 0.1.8
#BuildRequires:	liblrdf-devel >= 0.5.0
BuildRequires:	liblrdf-devel
BuildRequires:	gtkmm2-devel >= 2.24.2
BuildRequires:	glibmm2-devel >= 2.32.0
BuildRequires:	libxml2-devel, libxslt-devel, libuuid-devel
BuildRequires:	fftw3-devel >= 3.3.1 
BuildRequires:	lv2-devel >= 1.2.0
BuildRequires:	libX11-devel
BuildRequires:	libaubio-devel >= 0.3.2
BuildRequires:	libtag-devel >= 1.9.1
BuildRequires:	update-desktop-files, vamp-plugin-sdk-devel, libltc-devel
BuildRequires:	cairo-devel >= 1.10.0
BuildRequires:	cairomm-devel >= 1.10.0
BuildRequires:	libsigc++2-devel >= 2.2.10
BuildRequires:	pangomm-devel >= 2.28.4
BuildRequires:	atkmm-devel >= 2.22.6
BuildRequires:	librasqal-devel >= 0.9.28
BuildRequires:	libredland-devel >= 1.0.15
BuildRequires:	libvorbis-devel >= 1.3.2
BuildRequires:	rubberband-vamp
#BuildRequires:	vamp-plugin-sdk-devel >= 2.5
BuildRequires:	vamp-plugin-sdk-devel
BuildRequires:	libraptor-devel >= 2.0.6
BuildRequires:	librubberband-devel >= 1.8.1
BuildRequires:	doxygen graphviz
BuildRequires:	alsa-devel

#Requires: libsuil-x11-in-gtk2, libsuil-qt4-in-gtk2, libisl10, libcwiid1
Requires: graphviz, python-cwiid, lv2
Requires: gtk2-engine-clearlooks, gtk2-theme-clearlooks

Recommends:	a2jmidid

Conflicts:	ardour ardour2 ardour3 ardour-vst ardour2-vst ardour3vst ardour4vst

%description
Ardour is a multichannel hard disk recorder (HDR) and digital audio
workstation (DAW). It is capable of simultaneous recording 24 or more
channels of 32 bit audio at 48kHz. Ardour is intended to function as a
"professional" HDR system, replacing dedicated hardware solutions such
as the Mackie HDR, the Tascam 2424 and more traditional tape systems
like the Alesis ADAT series. It is also intended to provide the same
or better functionality as software systems such as ProTools,
Samplitude, Logic Audio, Nuendo and Cubase VST (we acknowledge these
and all other names as trademarks of their respective owners). It
supports MIDI Machine Control, and so can be controlled from any MMC
controller, such as the Mackie Digital 8 Bus mixer and many other
modern digital mixers.


%prep
%setup -q -n ardour-%{version}
# delete not needed files
find . -name ".gitignore" -exec rm {} \;
chmod -x ./doc/*.svg
chmod -x ./doc/*.txt


%build
./waf configure \
   --prefix=%{_prefix} \
   --libdir=%{_libdir} \
   --includedir=%{_includedir} \
   --configdir=%{_sysconfdir} \
   --docdir=%{_docdir} \
   --optimize
./waf %{?jobs:-j%{jobs}}


%install

rm -rf %{buildroot}
./waf --destdir=%{buildroot} install -v

mkdir -p %{buildroot}%{_datadir}/{pixmaps,applications}/
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/applications/

%suse_update_desktop_file -i %{name} AudioVideo Recorder

#%%rm -rf %%{buildroot}/usr/lib/debug/
#%%rm -rf %%{buildroot}/usr/src/debug/
#for lang_file in libardour2 gtk2_ardour libgtkmm2ext; 
#do 
#    %%find_lang $lang_file single_lang_file.lang 
#done 

# needed?
rm -rf %{buildroot}/usr/bin/gcc-glibmm-abi-check
# remove dupes
%fdupes -s %{buildroot}/%{_datadir}


%files
%defattr(-,root,root)
%doc doc
%doc COPYING README
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_bindir}/%{name}
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*
%dir %{_libdir}/%{name}/panners/
%{_libdir}/%{name}/panners/*
%{_libdir}/%{name}/sanityCheck
%dir %{_libdir}/%{name}/surfaces/
%{_libdir}/%{name}/surfaces/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%dir %{_datadir}/%{name}/export/
%{_datadir}/%{name}/export/*
%dir %{_datadir}/%{name}/icons/
%{_datadir}/%{name}/icons/*
%dir %{_datadir}/%{name}/midi_maps/
%{_datadir}/%{name}/midi_maps/*
%dir %{_datadir}/%{name}/pixmaps/
%{_datadir}/%{name}/pixmaps/*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop


%changelog