Name: lmms
Version: 0.4.5
Release: 2%{?dist}
Summary: Linux MultiMedia Studio
URL: http://lmms.sourceforge.net/
Group: Applications/Multimedia
# - lmms itself is GPLv2+
# - included third-party code
# - libsamplerate: GPLv2+ (but we use the system one)
# - third party code used by plugins:
# - drumsynth files: GPLv2+ or MIT
# - for ladspa-effecs (note that we only include cmt in the binary
# rpm (see below):
# - caps: GPLv2
# - cmt: GPLv2(+?)
# - swh: GPLv2+
# - tap: GPLv2+
# - calf: GPLv2+ and LGPLv2+
# - GNU UnRTF (flp_import plugin): GPLv3+
# - Portsmf (midi_import plugin): MIT
# - Blip_Buffer and Gb_Snd_Emu (papu plugin): LGPLv2.1+
# - reSID (sid plugin): GPLv2+
# - basename.c (vst_base): Copyright only
# - embedded zynaddsubfx plugin: GPLv2+
# - mxml (zynaddsubfx): LGPLv2+, with exceptions
# - fltk (zynaddsubfx): LGPLv2+, with exceptions
License: GPLv2+ and GPLv2 and (GPLv2+ or MIT) and GPLv3+ and MIT and LGPLv2+ and (LGPLv2+ with exceptions) and Copyright only
# original tarfile can be found here:
# Source0: http://downloads.sourceforge.net/lmms/%{name}-%{version}.tar.bz2
Source0: %{name}-%{version}.stripped.tar.bz2
# we strip all .ogg / .wav / .mmp(z) files from the tarfile,
# until their license situation becomes clearer.
Source1: README.fedora
# our cmake seems to have a different value for LIB_DIR.
Patch0: lmms-0.4.5-libdir.patch
# move the vst and zynaddsubfx plugins to libexecdir.
Patch1: lmms-0.4.5-libexecdir.patch
# build with vst support but without having wine. that is a patch
# upstream isn't really interested in.
Patch2: lmms-0.4.5-vst-nowine.patch
# FIXME: we surely want to patch zynaddsubfx to use system's fltk and
# minixml. using system's zynaddsubfx however is, according to lmms'
# developers, not possibe because there are to many changes.
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# according to upstream we should at least support oss, alsa, and
# jack. output via pulseaudio has high latency, but we enable it
# nevertheless as it is standard on fedora now. portaudio support is
# beta (and causes crashes), sdl is rarely used (?).
BuildRequires: jack-audio-connection-kit-devel
BuildRequires: alsa-lib-devel
BuildRequires: pulseaudio-libs-devel
# we need at least version 0.1.7 of libsamplerate
BuildRequires: libsamplerate-devel
BuildRequires: libsndfile-devel
BuildRequires: fftw3-devel
BuildRequires: fluidsynth-devel
BuildRequires: libvorbis-devel
BuildRequires: libogg-devel
BuildRequires: ladspa-devel
BuildRequires: stk-devel
BuildRequires: qt4-devel
BuildRequires: cmake
BuildRequires: desktop-file-utils
%ifarch %ix86
BuildRequires: wine-devel
%endif
Requires: ladspa-caps-plugins
Requires: ladspa-tap-plugins
Requires: ladspa-swh-plugins
Requires: ladspa-calf-plugins
# the version included in lmms contains patches sent to, but not yet
# applied by cmt's upstream.
#Requires: ladspa-cmt-plugins
# the -vst subpackage can only be built on ix86, but is also usable
# (and thus should be installed) on x86_64.
%ifarch %ix86 x86_64
Requires: %{name}-vst = %{version}-%{release}
%endif
%description
LMMS aims to be a free alternative to popular (but commercial and
closed- source) programs like FruityLoops/FL Studio, Cubase and Logic
allowing you to produce music with your computer. This includes
creation of loops, synthesizing and mixing sounds, arranging samples,
having fun with your MIDI-keyboard and much more...
LMMS combines the features of a tracker-/sequencer-program and those
of powerful synthesizers, samplers, effects etc. in a modern,
user-friendly and easy to use graphical user-interface.
Features
* Song-Editor for arranging the song
* creating beats and basslines using the Beat-/Bassline-Editor
* easy-to-use piano-roll for editing patterns and melodies
* instrument- and effect-plugins
* support for hosting VST(i)- and LADSPA-plugins (instruments/effects)
* automation-editor
* MIDI-support
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains header files for
developing addons for %{name}.
%prep
%setup0 -q
%patch0 -p1 -b .libdir
%patch1 -p1 -b .libexecdir
%patch2 -p1 -b .nowine
# remove spurious x-bits
find . -type f -exec chmod 0644 {} \;
%{__cp} -a %{SOURCE1} README.fedora
%build
%cmake \
-DWANT_SDL:BOOL=OFF \
-DWANT_PORTAUDIO:BOOL=OFF \
-DWANT_CAPS:BOOL=OFF \
-DWANT_TAP:BOOL=OFF \
-DWANT_SWH:BOOL=OFF \
-DWANT_CALF:BOOL=OFF \
%ifarch %ix86
-DWANT_VST:BOOL=ON \
%else
-DWANT_VST:BOOL=OFF \
%endif
%ifarch x86_64
-DWANT_VST_NOWINE:BOOL=ON \
%endif
-DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
.
make VERBOSE=1 %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
make DESTDIR=%{buildroot} install
desktop-file-install --vendor '' \
--add-category=Midi \
--add-category=Sequencer \
--add-category=X-Jack \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/%{name}.desktop
%{__mkdir_p} %{buildroot}%{_datadir}/pixmaps
%{__ln_s} ../%{name}/themes/default/icon.png \
%{buildroot}%{_datadir}/pixmaps/%{name}-icon.png
%clean
%{__rm} -rf %{buildroot}
%post
update-mime-database %{_datadir}/mime &> /dev/null || :
update-desktop-database &> /dev/null || :
%postun
update-mime-database %{_datadir}/mime &> /dev/null || :
update-desktop-database &> /dev/null || :
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README TODO README.fedora
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_libexecdir}/remote_zynaddsubfx
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/pixmaps/%{name}-icon.png
%{_mandir}/man*/%{name}*
%exclude %{_datadir}/menu/%{name}
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{name}
%ifarch %ix86
%package vst
Summary: VST hosting plugin for %{name}
Group: Applications/Multimedia
%description vst
This package contains the necessary files to host VST plugins.
%files vst
%defattr(-,root,root,-)
%{_libexecdir}/remote_vst_plugin*
%endif
%changelog
* Wed Sep 23 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.4.5-2
- Update desktop file according to F-12 FedoraStudio feature
* Fri Sep 4 2009 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.5-1
- Udate to 0.4.5.
- Rebase patches, and drop fltk patches not needed anymore.
- Add a dependency on the Calf LADSPA plugins.
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sun May 17 2009 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.4-1
- Update to 0.4.4.
- Need to borrow patches for embedded fltk from the fltk package.
- Update detailed license information in the spec file.
- Update patches.
* Mon Mar 9 2009 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.3-1
- Update to 0.4.3.
- Remove lmms-0.4.2-gcc44.patch (fixed upstream).
- Add README.fedora.
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Feb 18 2009 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.2-4
- Re-add drumsynth files and adjust License tag.
* Thu Feb 12 2009 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.2-3
- Add patch for gcc44 issues.
* Wed Feb 11 2009 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.2-2
- Strip files with unclear licensing from the tarfile.
- Regenerate patches.
- Add BR on libsamplerate-devel.
* Thu Jan 22 2009 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.2-1
- Update to 0.4.2.
* Sun Nov 2 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.0-1
- Updated to 0.4.0 final.
- Removed patches already applied upstream, adjusted the remaining.
* Fri Oct 24 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.0-0.2.rc3
- Add patch to fix libdir on ppc64.
* Tue Oct 21 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.0-0.1.rc3
- Update to 0.4.0rc3.
- Don't build remote_vst_plugin.exe on x86_64, but do build all other
parts of the VST host there.
* Fri Sep 26 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.0-0.1.rc2
- Update to 0.4.0rc2.
- Use oss, jack, alsa and pulseaudio backends and disable other
backends.
- Depend on the system packages for all but one of the ladspa plugins
instead of building our own versions.
* Thu Sep 18 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.4.0-0.1.rc1
- Update to 0.4.0rc1. Upstream uses cmake and qt4 now.
- Updated license tag.
- Drop festival dependency, and add fftw and fluidsynth.
- Remove patches no longer necessary.
- VST now also builds on x86_64.
* Wed Sep 17 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.3.2-3
- Add stk-devel BR.
- Use libdir patch from upstream bug tracker.
- Use xdg-open instead of x-www-browser.
* Wed Jun 25 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.3.2-2
- Update license tag.
- Add patch to fix plugin dir on 64bit archs.
- Add ladspa-caps-plugins dependency.
- Suggestions from the review:
* Simplify configure step.
* Fix sf.net download link.
* Add patch to let configure find the qt translations.
* Link icon to _datadir/pixmaps.
* Mon Apr 21 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.3.2-1
- New package.