3 %bcond_without alsa # without ALSA support
4 %bcond_with gtk1 # use GTK+ 1.2 instead of GTK+ 2
6 Summary: Gtk frontend for GNU lilypond
7 Summary(pl): Frontend Gtk na GNU lilypond
12 Group: X11/Applications/Sound
13 Source0: http://dl.sourceforge.net/denemo/%{name}-%{version}.tar.gz
14 # Source0-md5: 2d57e4d660e13eb6e476104c788046af
15 Patch0: %{name}-opt.patch
16 Patch1: %{name}-po.patch
17 URL: http://denemo.sourceforge.net/
18 %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
19 BuildRequires: autoconf
20 BuildRequires: automake
21 %{?with_gtk1:BuildRequires: gtk+-devel >= 1.2.0}
22 %{!?with_gtk1:BuildRequires: gtk+2-devel >= 2.0.0}
23 BuildRequires: libtool
24 BuildRequires: libxml2-devel >= 2.0.0
25 #BuildRequires: niffsdk-devel
26 %{!?with_gtk1:BuildRequires: pkgconfig}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _noautocompressdoc *.ly
34 Denemo is a graphical music notation program written in C with gtk+.
36 It is intended to be used in conjunction with GNU Lilypond
37 (http://www.cs.uu.nl/hanwen/lilypond/), but is adaptable to other
38 computer-music-related purposes as well.
41 Denemo to program do graficznej notacji muzycznej u¿ywaj±cy gtk+.
43 Jest przeznaczony do u¿ywania z GNU Lilypond
44 (http://www.cs.uu.nl/hanwen/lilypond/), ale mo¿e byæ zaadaptowany do
45 innych celów zwi±zanych z muzyk±.
48 Summary: Header files for denemo plugins development
49 Summary(pl): Pliki nag³ówkowe do tworzenia wtyczek dla denemo
50 Group: Development/Libraries
51 # doesn't require base
54 Header files for denemo plugins development.
56 %description devel -l pl
57 Pliki nag³ówkowe do tworzenia wtyczek dla denemo.
65 %{!?with_alsa:echo 'AC_DEFUN([AM_PATH_ALSA],[$3])' >> acinclude.m4}
71 CFLAGS="%{rpmcflags} %{?debug:-DDEBUG}"
74 %{!?with_gtk1:--enable-gtk2} \
75 --with-plugins=analysis
76 # ,niff - but it's incomplete (no interface between niff and denemo)
81 rm -rf $RPM_BUILD_ROOT
84 DESTDIR=$RPM_BUILD_ROOT
88 # no *.la for modules - shut up check-files
89 rm -f $RPM_BUILD_ROOT%{_libdir}/denemo/*.la
92 rm -rf $RPM_BUILD_ROOT
94 %files -f %{name}.lang
95 %defattr(644,root,root,755)
96 %doc AUTHORS DESIGN GOALS NEWS README TODO examples/*.ly
97 %attr(755,root,root) %{_bindir}/*
99 %dir %{_libdir}/denemo
100 %attr(755,root,root) %{_libdir}/denemo/libanalyse.so*
103 %defattr(644,root,root,755)
104 %{_includedir}/denemo