AboutDialog: show correct copyright years
[lmms.git] / lmms.spec.in
blob15acdc89282cf436585d9cdf6d893cfbe7a84f88
1 # Configuration variables
2 %define name lmms
3 %define version 0.3.0
4 %define rel 1
5 %define release %{rel}%{?disttag}%{?repotag}
7 # Define what you can/want to build:
8 %define with_sdl 0%{nil}
9 %define with_jack 1%{nil}
10 %define with_vorbis 1%{nil}
11 %define with_flac 1%{nil}
12 %define with_sr 1%{nil}
13 %define with_sf 1%{nil}
15 # Build by setting these defines on the command line, for example:
16 # rpmbuild --define 'disttag .EL' --define 'repotag .fc6'
17 %{!?desktop_vendor: %{expand: %%define desktop_vendor rpmfarm}}
18 # This can be changed at build time:
19 # rpmbuild --define 'desktop_vendor RPMfarm'
21 #--------------------------------------------------------------------
23 Name: %{name}
24 Version: %{version}
25 Release: %{release}
26 Summary: powerful sequencer-, synthesizer- and sample-studio for Linux
27 Summary(de): Leistungsfaehiges Sequenzer-, Synthesizer- und Sample-Studio fuer Linux
28 License: GPL
29 URL: http://lmms.sourceforge.net/
30 Group: Applications/Multimedia
31 Provides: lmms = %{version}-%{release}
32 BuildRequires: gcc gcc-c++ libstdc++-devel autoconf automake libtool make
33 BuildRequires: alsa-lib-devel
34 BuildRequires: qt-devel > 3.0
35 # ------------- BuildRequires:
36 %if %{with_vorbis}
37 BuildRequires: libvorbis libvorbis-devel
38 %endif
39 %if %{with_sdl}
40 BuildRequires: SDL SDL-devel SDL_sound
41 %endif
42 %if %{with_sr}
43 BuildRequires: libsamplerate libsamplerate-devel
44 %endif
45 %if %{with_sf}
46 BuildRequires: libsndfile libsndfile-devel
47 %endif
48 %if %{with_jack}
49 BuildRequires: jack-audio-connection-kit-devel
50 %endif
51 %if %{with_flac}
52 BuildRequires: flac-devel
53 %endif
54 # ------------- Requires:
55 Requires: qt >= 3.0 alsa-lib
56 %if %{with_sr}
57 Requires: libsamplerate
58 %endif
59 %if %{with_sf}
60 Requires: libsndfile
61 %endif
62 %if %{with_jack}
63 Requires: jack-audio-connection-kit
64 %endif
65 %if %{with_vorbis}
66 Requires: libvorbis
67 %endif
68 %if %{with_flac}
69 Requires: flac
70 %endif
71 %if %{with_sdl}
72 Requires: SDL_sound
73 %endif
75 Requires: lmms-data
76 Source: %{name}-%{version}.tar.bz2
77 Patch1: %{name}-%{version}-patch
78 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
79 Prefix: %{_prefix}
82 %description
83 LMMS aims to be a free alternative to popular (but commercial and closed-
84 source) programs like FruityLoops, Cubase and Logic giving you the ability of
85 producing music with your computer by creating/synthesizing sounds, arranging
86 samples, playing live with keyboard and much more...
88 LMMS combines the features of a tracker-/sequencer-program (pattern-/channel-/
89 sample-/song-/effect-management) and those of powerful synthesizers and
90 samplers in a modern, user-friendly and easy to use graphical user-interface.
92 LMMS is still in heavy development, so with this version please don't expect a
93 complete, ready and bugfree program!!
96 %description -l de
97 LMMS ist eine freie Alternative zu bekannten (aber kommerziellen und
98 Closed-Source-) Programmen wie FruityLoops, Cubase und Logic, die Ihnen die
99 Moeglichkeit geben, mit Ihrem Computer Musik zu produzieren, indem Sie
100 Klaenge kreieren/synthetisieren, Samples anordnen, mit dem Keyboard live
101 spielen usw....
103 LMMS kombiniert die Funktionen eines Tracker-/Sequenzer-Programms (Pattern-/
104 Kanal-/Sample-/Song-/Effekt-Management) und die von leistungsfaehigen
105 Synthesizern und Samplern in einer modernen, benutzerfreundlichen und einfach zu
106 benutzenden grafischen Oberflaeche.
108 Derzeit befindet sich LMMS komplett in Entwicklung. Also erwarten Sie bitte mit
109 dieser Version nicht ein vollstaendiges, fertiges und fehlerfreies Programm!!
112 %package data
113 Summary: samples, presets, demo-projects and localization-files for LMMS
114 Summary(de): Samples, Presets, Demo-Projekte und Lokalisierungsdateien fuer LMMS
115 Group: Applications/Multimedia
116 Provides: lmms-data = %{version}-%{release}
118 %description data
119 This package contains platform-independent data and resources for Linux
120 MultiMedia Studio (LMMS), e.g. samples, presets and demo-projects.
123 %description data -l de
124 Dieses Paket beinhaltet plattform-unabhaengige Daten und Resourcen fuer Linux
125 MultiMedia Studio (LMMS), wie z.B. Samples, Presets und Demo-Projekte.
128 %prep
129 %setup -n %{name}-%{version}
130 %patch1 -p1 -b .EL
132 %build
133 %configure \
134 %if !%{with_jack}
135 --without-jack \
136 %endif
137 %if !%{with_sdl}
138 --without-sdl \
139 --without-sdlsound \
140 %endif
141 %if !%{with_vorbis}
142 --without-vorbis \
143 %endif
144 %if !%{with_flac}
145 --without-flac \
146 %endif
147 %if !%{with_sr}
148 --without-libsrc \
149 %endif
150 %if !%{with_sf}
151 --without-libsf \
152 %endif
154 %{__make} %{?_smp_mflags}
156 # Create a desktop menu entry
157 %{__cat} > %{name}.desktop << EOF
158 [Desktop Entry]
159 Name=Linux MultiMedia Studio
160 Comment=Powerful sequencer-, synthesizer- and sample-studio for Linux
161 Exec=lmms
162 Icon=%{_datadir}/%{name}/themes/default/icon.png
163 Terminal=false
164 Type=Application
165 Categories=Application;AudioVideo;X-Fedora;X-RPMfarm;
166 Encoding=UTF-8
169 %install
170 %{__rm} -rf %{buildroot}
171 make DESTDIR=$RPM_BUILD_ROOT install
173 # Install menu entry
174 %{__mkdir_p} %{buildroot}%{_datadir}/applications
175 desktop-file-install \
176 --vendor %{desktop_vendor} \
177 --dir %{buildroot}%{_datadir}/applications \
178 %{name}.desktop || :
180 %clean
181 %{__rm} -rf %{buildroot}
183 %files
184 %defattr(-, root, root, 0755)
185 %doc AUTHORS ChangeLog COPYING README TODO
186 %{_bindir}/lmms
187 %dir %{_libdir}/lmms
188 %{_libdir}/lmms/*
189 %{_mandir}/man*/lmms.*
190 %{_datadir}/applications/%{desktop_vendor}-%{name}.desktop
192 %files data
193 %defattr(-,root,root)
194 %dir %{_datadir}/lmms
195 %{_datadir}/lmms/*
197 %changelog
198 * Fri Apr 13 2007 Eric Lassauge <lassauge@users.fr.net> - 0.2.1-1
199 - build for FC6
200 - added dependencies and build configuration
201 - added .desktop file
203 * Tue Sep 20 2005 Tobias Doerffel
204 - added JACK-dependencies
206 * Fri Jul 22 2005 Tobias Doerffel
207 - added more dependencies for builds under SuSE
209 * Sat Jun 25 2005 Tobias Doerffel
210 - splitted package into lmms and lmms-data
211 - additional requirements
212 - updated project-homepage and email-address of packager
214 * Thu May 12 2005 Tobias Doerffel
215 - created lmms.spec.in