]> git.pld-linux.org Git - packages/denemo.git/blobdiff - denemo.spec
- note about incomplete niff plugin
[packages/denemo.git] / denemo.spec
index 72d175b5fa9d2c1bc3fb1123ac49907bae712c04..1a9b36e923affdce2b1f981edfc63258c3459d17 100644 (file)
@@ -1,21 +1,31 @@
+#
+# Conditional build:
+# _without_alsa        - without ALSA support
+# _with_gtk1   - use GTK+ 1.2 instead of GTK+ 2
+#
 Summary:       Gtk frontend for GNU lilypond
 Summary(pl):   Frontend Gtk na GNU lilypond
 Name:          denemo
-Version:       0.5.5
-Release:       2
+Version:       0.7.1
+Release:       1
 License:       GPL
-Group:         X11/Applications/Multimedia
-Source0:       ftp://download.sourceforge.net/pub/sourceforge/denemo/%{name}-%{version}.tar.gz
+Group:         X11/Applications/Sound
+Source0:       http://dl.sourceforge.net/denemo/%{name}-%{version}.tar.gz
+Patch0:                %{name}-opt.patch
 URL:           http://denemo.sourceforge.net/
-BuildRequires: gtk+-devel >= 1.2.0
+%{!?_without_alsa:BuildRequires:       alsa-lib-devel >= 0.9.0}
 BuildRequires: autoconf
 BuildRequires: automake
-Requires:      lilypond
+%{?_with_gtk1:BuildRequires:   gtk+-devel >= 1.2.0}
+%{!?_with_gtk1:BuildRequires:  gtk+2-devel >= 2.0.0}
+BuildRequires: libtool
+BuildRequires: libxml2-devel >= 2.0.0
+#BuildRequires:        niffsdk-devel
+%{!?_with_gtk1:BuildRequires:  pkgconfig}
 Requires:      TiMidity++
+Requires:      lilypond
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix         /usr/X11R6
-
 %description
 Denemo is a graphical music notation program written in C with gtk+.
 
@@ -30,15 +40,35 @@ Jest przeznaczony do u
 (http://www.cs.uu.nl/hanwen/lilypond/), ale mo¿e byæ zaadaptowany do
 innych celów zwi±zanych z muzyk±.
 
+%package devel
+Summary:       Header files for denemo plugins development
+Summary(pl):   Pliki nag³ówkowe do tworzenia wtyczek dla denemo
+Group:         Development/Libraries
+# doesn't require base
+
+%description devel
+Header files for denemo plugins development.
+
+%description devel -l pl
+Pliki nag³ówkowe do tworzenia wtyczek dla denemo.
+
 %prep
 %setup -q
+%patch -p1
 
 %build
-rm -f missing
-aclocal
+%{?_without_alsa:echo 'AC_DEFUN([AM_PATH_ALSA],[$3])' >> acinclude.m4}
+%{__libtoolize}
+%{__aclocal}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
-%configure
+CFLAGS="%{rpmcflags} %{?debug:-DDEBUG}"
+%configure \
+       %{!?_with_gtk1:--enable-gtk2} \
+       --with-plugins=analysis
+# ,niff - but it's incomplete (no interface between niff and denemo)
+
 %{__make}
 
 %install
@@ -46,13 +76,22 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf NEWS README TODO GOALS DESIGN AUTHORS
+%find_lang %{name}
+
+# no *.{la,a} for modules - shut up check-files
+rm -f $RPM_BUILD_ROOT%{_libdir}/denemo/*.{la,a}
 
 %clean
-rm -rf ${RPM_BUILD_ROOT}
+rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc *.gz
+%doc AUTHORS DESIGN GOALS NEWS README TODO
 %attr(755,root,root) %{_bindir}/*
 %{_datadir}/%{name}
+%dir %{_libdir}/denemo
+%attr(755,root,root) %{_libdir}/denemo/libanalyse.so*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/denemo
This page took 0.050216 seconds and 4 git commands to generate.