3 %bcond_with arts # enable aRts support (at cost of ALSA support)
4 %bcond_without sound # build without ANY sound support (only sequencer)
6 %define _name rosegarden
7 %define _htmldir /usr/share/doc/kde/HTML
8 Summary: Rosegarden - an attractive audio and MIDI sequencer
9 Summary(pl): Rosegarden - interaktywny sekwencer MIDI i audio
14 Group: X11/Applications/Sound
15 Source0: http://dl.sourceforge.net/%{_name}/%{_name}-4-%{version}.tar.gz
16 # Source0-md5: 49bd200dda08de37a2e13a12c1456acf
17 Patch0: %{_name}-desktop.patch
18 URL: http://www.all-day-breakfast.com/rosegarden/
19 %{?with_sound:BuildRequires: alsa-lib-devel}
20 BuildRequires: jack-audio-connection-kit-devel >= 0.80.0
21 BuildRequires: ladspa-devel
22 BuildRequires: liblrdf-devel
23 BuildRequires: kdelibs-devel >= 3.1
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _htmldir %{_docdir}/kde/HTML
29 Rosegarden is an attractive, user-friendly audio and MIDI sequencer,
30 score editor, and general-purpose music composition and editing
34 Rosegarden jest interaktywnym sewencerem MIDI i audio, edytorem zapisu
35 nutowego, a jego g³ównym zadaniem jest komponowanie i edycja muzyki.
38 %setup -q -n %{_name}-4-%{version}
42 kde_icondir="%{_pixmapsdir}"; export kde_icondir
43 kde_htmldir="%{_htmldir}"; export kde_htmldir
45 %{?with_arts:--with-arts} \
46 %{!?with_sound:--disable-sound}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
56 %find_lang %{_name} --with-kde
59 rm -rf $RPM_BUILD_ROOT
61 %post -p /sbin/ldconfig
62 %postun -p /sbin/ldconfig
64 %files -f %{_name}.lang
65 %defattr(644,root,root,755)
67 %attr(755,root,root) %{_bindir}/*
68 %attr(755,root,root) %{_libdir}/libRosegardenSequencer.so.*.*
69 %{_datadir}/apps/%{_name}
70 %{_pixmapsdir}/*/*/apps/%{_name}.xpm
71 %{_desktopdir}/%{_name}.desktop
72 # devel? but no headers
73 %attr(755,root,root) %{_libdir}/libRosegardenSequencer.so
74 %{_libdir}/libRosegardenSequencer.la