File ardour.spec of Package ardourvst

#
# spec file for package ardourvst
#
# 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}
%define dirbase ardour5

Summary:	Multichannel Digital Audio Workstation
Name:		ardourvst
Version:	5.12.0
Release:	0
#Source0:	https://github.com/Ardour/ardour/archive/%%{version}.tar.gz
Source0:	Ardour-%{version}.tar.bz2
Source1:	%{dirbase}.png
Source2:	%{dirbase}.desktop
Source3:	%{dirbase}-rpmlintrc
Source4:    revision.cc

Url:		http://ardour.org
License:	GPL-2.0
Group:		Productivity/Multimedia/Sound/Editors and Convertors

BuildRequires:	fdupes
BuildRequires:  gcc-c++
BuildRequires:	python >= 2.6
BuildRequires:	python-rdflib >= 3.2.0
BuildRequires:	python-xml
BuildRequires:	pkgconfig
BuildRequires:	libcppunit-devel
BuildRequires:  liblilv-0-devel >= 0.16.0
BuildRequires:  suil-devel >= 0.6.10
BuildRequires:  libogg-devel >= 1.3.0
BuildRequires:  flac-devel >= 1.2.1
BuildRequires:  libcurl-devel >= 7.25.0
BuildRequires:  libgthread-2_0-0 >= 2.10.1
BuildRequires:	libserd-0-devel >= 0.18.2
BuildRequires:	libsord-0-devel >= 0.12.0
BuildRequires:	libsratom-0-devel >= 0.4.2
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 >= 2.28
BuildRequires:	glibc-devel
BuildRequires:	boost-devel >= 1.49.0
BuildRequires:	liblo-devel >= 0.26
BuildRequires:	libsndfile-devel >= 1.0.18
BuildRequires:	libsamplerate-devel >= 0.1.8
BuildRequires:	liblrdf-devel >= 0.5.0
BuildRequires:	gtkmm2-devel >= 2.24.2
BuildRequires:	glibmm2-devel >= 2.32.0
BuildRequires:	libxml2-devel, libxslt-devel, libuuid-devel
#Upstream use: BuildRequires:	fftw3-devel >= 3.3.1
BuildRequires:	fftw3-devel >= 3.3.1
BuildRequires:  fftw3-threads-devel
BuildRequires:	lv2-devel >= 1.2.0
BuildRequires:	libX11-devel >= 1.1
BuildRequires:	libaubio-devel >= 0.3.2
BuildRequires:	libtag-devel >= 1.9.1
BuildRequires:	update-desktop-files
BuildRequires:	libltc-devel >= 1.1.1
BuildRequires:	cairo-devel >= 1.12.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:	libraptor-devel >= 2.0.6
BuildRequires:	librubberband-devel >= 1.8.1
BuildRequires:	doxygen graphviz
BuildRequires:	alsa-devel
BuildRequires:	itstool
BuildRequires:	fluidsynth-devel >= 1.1.6
BuildRequires:	libarchive-devel >= 3.0.0
BuildRequires:	libusb-1_0-devel
BuildRequires:	libgnomecanvasmm >= 2.26.0
BuildRequires:	libhidapi-devel
#BuildRequires:	clang-devel
BuildRequires:	qm-dsp-devel
BuildRequires:	wine-devel
BuildRequires:	wine

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

Recommends:		a2jmidid
Recommends:     libfftw3_threads3

Conflicts:	ardour ardour2 ardour3 ardour4 ardour5 ardour2-vst ardour3vst ardour4vst ardour5vst

%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
# revision.cc is sometimes missing in source
#cp -v %%{SOURCE4} libs/ardour/



%build
#--address-sanitizer \
./waf configure \
   --prefix=%{_prefix} \
   --libdir=%{_libdir} \
   --includedir=%{_includedir} \
   --configdir=%{_sysconfdir} \
   --docdir=%{_docdir} \
   --docs \
   --nls \
   --use-external-libs \
   --internal-shared-libs \
   --with-backends=jack,alsa,dummy \
   --windows-vst \
   --lv2 \
   --lxvst \
   --freedesktop \
   --noconfirm \
   --no-phone-home \
   --optimize

./waf i18n

./waf %{?jobs:-j%{jobs}}


%install
./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 %{dirbase} AudioVideo Recorder

# needed?
rm -rf %{buildroot}/usr/bin/gcc-glibmm-abi-check

# remove dupes
%fdupes -s %{buildroot}/%{_datadir}
# languages
%find_lang %{dirbase} %{?no_lang_C} %{dirbase}.lang
%find_lang gtk2_%{dirbase} %{?no_lang_C} %{dirbase}.lang
%find_lang gtkmm2ext3 %{?no_lang_C} %{dirbase}.lang


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


%changelog
openSUSE Build Service is sponsored by