File lmms.spec of Package lmms
#
# spec file for package lmms
#
# Copyright (c) 2012 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/
#
%bcond_without distributable
%bcond_without crippled_stk
Name: lmms
Version: 0.4.13
Release: 0
Summary: Linux MultiMedia Studio
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Midi
Url: http://lmms.sourceforge.net/
%if %{with distributable}
Source0: lmms-%{version}-crippled.tar.bz2
%else
Source0: http://sourceforge.net/projects/lmms/files/lmms/%{version}/lmms-%{version}.tar.bz2
%endif
Source99: precheckin_cripple_tarball.sh
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0: lmms-0.4.12-system_fltk.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: lmms-0.4.12-overflow.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch2: lmms-0.4.12-return.patch
Patch3: lmms-0.4.13-gcc47.patch
Patch4: lmms-0.4.13-crippled_stk.patch
BuildRequires: cmake
BuildRequires: desktop-file-utils
BuildRequires: fltk-devel
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libstk-devel
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(QtGui)
BuildRequires: pkgconfig(QtXml)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(fftw3f)
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(shared-mime-info)
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(vorbisenc)
BuildRequires: pkgconfig(vorbisfile)
BuildRequires: pkgconfig(zlib)
%ifarch %ix86
BuildRequires: wine-devel
%else
%ifarch x86_64
BuildRequires: gcc-c++-32bit
BuildRequires: wine-devel-32bit
%endif
%endif
Recommends: %{_bindir}/wine
%description
LMMS is a free cross-platform music studio which allows you to produce music
with your computer. This includes the creation of melodies and beats, the
synthesis and mixing of sounds, and arranging of samples.
%package devel
Summary: Headers to create LMMS plugins
Group: Development/Libraries/C and C++
%description devel
Headers that provide access to the LMMS features. Install it if you plan to
create a LMMS plugin.
%prep
%setup -q
%patch0
%patch1
%patch2
%patch3
%if %{with crippled_stk}
%patch4
%endif
# Ensure we use system fltk
rm -r plugins/zynaddsubfx/fltk
%build
mkdir build
cd build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR=%_lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
..
make %{?_smp_flags}
%install
cd build
%make_install
cd ..
# Debian menu system
rm -r '%{buildroot}%{_datadir}/menu'
%post
%icon_theme_cache_post
%mime_database_post
%desktop_database_post
%postun
%desktop_database_postun
%mime_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README TODO
%{_bindir}/lmms
%{_mandir}/man1/lmms.1*
%{_libdir}/lmms/
%{_datadir}/lmms/
%{_datadir}/applications/lmms.desktop
%{_datadir}/pixmaps/lmms.png
%{_datadir}/mime/packages/lmms.xml
%files devel
%defattr(0644,root,root,0755)
%{_includedir}/lmms/
%changelog