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 Patch2: %{name}-am.patch
18 Patch3: %{name}-gtk24_link.patch
19 URL: http://denemo.sourceforge.net/
20 %{?with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
21 BuildRequires: autoconf
22 BuildRequires: automake
23 %{?with_gtk1:BuildRequires: gtk+-devel >= 1.2.0}
24 %{!?with_gtk1:BuildRequires: gtk+2-devel >= 1:2.0.0}
25 BuildRequires: libtool
26 BuildRequires: libxml2-devel >= 2.0.0
27 #BuildRequires: niffsdk-devel
28 %{!?with_gtk1:BuildRequires: pkgconfig}
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _noautocompressdoc *.ly
36 Denemo is a graphical music notation program written in C with GTK+.
38 It is intended to be used in conjunction with GNU Lilypond
39 (http://www.cs.uu.nl/hanwen/lilypond/), but is adaptable to other
40 computer-music-related purposes as well.
43 Denemo to program do graficznej notacji muzycznej u¿ywaj±cy GTK+.
45 Jest przeznaczony do u¿ywania z GNU Lilypond
46 (http://www.cs.uu.nl/hanwen/lilypond/), ale mo¿e byæ zaadaptowany do
47 innych celów zwi±zanych z muzyk±.
50 Summary: Header files for denemo plugins development
51 Summary(pl): Pliki nag³ówkowe do tworzenia wtyczek dla denemo
52 Group: Development/Libraries
53 # doesn't require base
56 Header files for denemo plugins development.
58 %description devel -l pl
59 Pliki nag³ówkowe do tworzenia wtyczek dla denemo.
69 %{!?with_alsa:echo 'AC_DEFUN([AM_PATH_ALSA],[$3])' >> acinclude.m4}
75 CFLAGS="%{rpmcflags} %{?debug:-DDEBUG}"
78 %{!?with_gtk1:--enable-gtk2} \
79 --with-plugins=analysis
80 # ,niff - but it's incomplete (no interface between niff and denemo)
85 rm -rf $RPM_BUILD_ROOT
88 DESTDIR=$RPM_BUILD_ROOT
92 # no *.la for modules - shut up check-files
93 rm -f $RPM_BUILD_ROOT%{_libdir}/denemo/*.la
96 rm -rf $RPM_BUILD_ROOT
98 %files -f %{name}.lang
99 %defattr(644,root,root,755)
100 %doc AUTHORS DESIGN GOALS NEWS README TODO examples/*.ly
101 %attr(755,root,root) %{_bindir}/*
103 %dir %{_libdir}/denemo
104 %attr(755,root,root) %{_libdir}/denemo/libanalyse.so*
107 %defattr(644,root,root,755)
108 %{_includedir}/denemo