]> git.pld-linux.org Git - packages/denemo.git/blob - denemo.spec
- obsolete
[packages/denemo.git] / denemo.spec
1 #
2 # Conditional build:
3 %bcond_without  alsa    # without ALSA support
4 %bcond_with     gtk1    # use GTK+ 1.2 instead of GTK+ 2
5 #
6 Summary:        GTK+ frontend for GNU lilypond
7 Summary(pl):    Frontend GTK+ na GNU lilypond
8 Name:           denemo
9 Version:        0.7.2a
10 Release:        2
11 License:        GPL
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}
29 Requires:       TiMidity++
30 Requires:       lilypond
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %define         _noautocompressdoc      *.ly
34
35 %description
36 Denemo is a graphical music notation program written in C with GTK+.
37
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.
41
42 %description -l pl
43 Denemo to program do graficznej notacji muzycznej u¿ywaj±cy GTK+.
44
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±.
48
49 %package devel
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
54
55 %description devel
56 Header files for denemo plugins development.
57
58 %description devel -l pl
59 Pliki nag³ówkowe do tworzenia wtyczek dla denemo.
60
61 %prep
62 %setup -q
63 %patch0 -p1
64 %patch1 -p1
65 %patch2 -p1
66 %patch3 -p1
67
68 %build
69 %{!?with_alsa:echo 'AC_DEFUN([AM_PATH_ALSA],[$3])' >> acinclude.m4}
70 %{__libtoolize}
71 %{__aclocal}
72 %{__autoconf}
73 %{__autoheader}
74 %{__automake}
75 CFLAGS="%{rpmcflags} %{?debug:-DDEBUG}"
76 %configure \
77         --disable-static \
78         %{!?with_gtk1:--enable-gtk2} \
79         --with-plugins=analysis
80 # ,niff - but it's incomplete (no interface between niff and denemo)
81
82 %{__make}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89
90 %find_lang %{name}
91
92 # no *.la for modules - shut up check-files
93 rm -f $RPM_BUILD_ROOT%{_libdir}/denemo/*.la
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
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}/*
102 %{_datadir}/%{name}
103 %dir %{_libdir}/denemo
104 %attr(755,root,root) %{_libdir}/denemo/libanalyse.so*
105
106 %files devel
107 %defattr(644,root,root,755)
108 %{_includedir}/denemo
This page took 0.091571 seconds and 3 git commands to generate.