File qtractor.spec of Package qtractor

#
# spec file for package qtractor (Version 0.4.7)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           qtractor
Version:        0.4.7
Release:        1
Url:            http://qtractor.sourceforge.net/
License:        GPLv2+
Group:          Productivity/Multimedia/Sound/Editors and Convertors
Summary:        An Audio/MIDI multi-track sequencer
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
Patch:          qtractor-0.4.7.1-1.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libqt4-devel >= 4.1
BuildRequires:  libjack-devel >= 0.100.0
BuildRequires:  alsa-devel
BuildRequires:  libsndfile-devel >= 1.0.11
BuildRequires:  libvorbis-devel
BuildRequires:  libsamplerate-devel
BuildRequires:  liblo-devel
BuildRequires:  ladspa-devel
BuildRequires:  dssi-devel
BuildRequires:  update-desktop-files
#librubberband is available since openSUSE 11.2
%if %suse_version > 1110
BuildRequires:  librubberband-devel
%endif
Requires:       jack

%description
Qtractor is an Audio/MIDI multi-track sequencer application
written in C++ around the Qt4 toolkit using Qt Designer.

The initial target platform will be Linux, where the Jack Audio
Connection Kit (JACK) for audio, and the Advanced Linux Sound
Architecture (ALSA) for MIDI, are the main infrastructures to
evolve as a fairly-featured Linux Desktop Audio Workstation GUI,
specially dedicated to the personal home-studio.

%prep
%setup -q
%patch
[ -f Makefile.cvs ] && make -f Makefile.cvs

%build
%configure
make %{?jobs:-j%jobs}

%install
%makeinstall
#make DESTDIR=$RPM_BUILD_ROOT install
%suse_update_desktop_file -i %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README TODO
%{_bindir}/%{name}
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/32x32
%dir %{_datadir}/icons/hicolor/32x32/apps
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png

%changelog
openSUSE Build Service is sponsored by