]>
Commit | Line | Data |
---|---|---|
3eab9fcd JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without alsa # ALSA support | |
4 | %bcond_without aubio # AUBIO support | |
5 | %bcond_without evince # Evince support | |
6 | %bcond_without fluidsynth # Fluidsynth support | |
7 | %bcond_with gtk2 # GTK+ 2.x instead of 3.x | |
8 | %bcond_without jack # JACK support | |
9 | %bcond_without portaudio # PortAudio support | |
10 | %bcond_without portmidi # PortMIDI support | |
11 | %bcond_without rubberband # Rubberband support | |
12 | ||
db409545 | 13 | Summary: GTK+ frontend for GNU lilypond |
3f7e1c51 | 14 | Summary(pl.UTF-8): Frontend GTK+ na GNU lilypond |
08f8886e | 15 | Name: denemo |
3eab9fcd | 16 | Version: 2.4.0 |
8be59372 | 17 | Release: 1 |
3eab9fcd | 18 | License: GPL v3+ |
7c0a8467 | 19 | Group: X11/Applications/Sound |
3eab9fcd JB |
20 | Source0: https://ftp.gnu.org/gnu/denemo/%{name}-%{version}.tar.gz |
21 | # Source0-md5: c34962fd3d7037f578aa473dc6ab9c48 | |
22 | Patch0: %{name}-fontsdir.patch | |
23 | URL: http://www.denemo.org/ | |
24 | %{?with_alsa:BuildRequires: alsa-lib-devel >= 1.0.0} | |
25 | %{?with_aubio:BuildRequires: aubio-devel >= 0.4.0} | |
30707055 | 26 | BuildRequires: autoconf >= 2.59 |
d740360c | 27 | BuildRequires: automake |
3eab9fcd JB |
28 | %if %{with evince} |
29 | %if %{with gtk2} | |
30 | BuildRequires: evince-devel >= 2.32 | |
31 | BuildRequires: evince-devel < 3 | |
32 | %else | |
33 | BuildRequires: evince-devel >= 3.0 | |
34 | %endif | |
35 | %endif | |
36 | %{?with_fluidsynth:BuildRequires: fluidsynth-devel >= 1.0.8} | |
37 | %{?with_portaudio:BuildRequires: fftw3-devel >= 3.1.2} | |
38 | BuildRequires: fontconfig-devel >= 2.2.0 | |
39 | BuildRequires: gettext-tools >= 0.18 | |
40 | BuildRequires: glib2-devel >= 1:2.30 | |
41 | %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.6.0} | |
42 | %{!?with_gtk2:BuildRequires: gtk+3-devel >= 3.0.0} | |
43 | BuildRequires: gtk-doc >= 1.14 | |
44 | %{?with_gtk2:BuildRequires: gtksourceview2-devel >= 2.0} | |
45 | %{!?with_gtk2:BuildRequires: gtksourceview3-devel >= 3.0} | |
46 | BuildRequires: guile-devel >= 2.2 | |
47 | BuildRequires: intltool >= 0.35.0 | |
48 | %{?with_jack:BuildRequires: jack-audio-connection-kit-devel >= 0.102.0} | |
49 | BuildRequires: librsvg-devel >= 2.0 | |
50 | BuildRequires: libsmf-devel >= 1.3 | |
51 | BuildRequires: libsndfile-devel >= 1.0 | |
30707055 | 52 | BuildRequires: libstdc++-devel |
3eab9fcd | 53 | BuildRequires: libxml2-devel >= 2.3.10 |
30707055 | 54 | BuildRequires: pkgconfig |
3eab9fcd JB |
55 | %{?with_portaudio:BuildRequires: portaudio-devel >= 19} |
56 | %{?with_portmidi:BuildRequires: portmidi-devel} | |
57 | %{?with_rubberband:BuildRequires: rubberband-devel >= 1.0.8} | |
58 | BuildRequires: xorg-lib-libX11-devel | |
30707055 | 59 | Requires: lilypond >= 2.6 |
3eab9fcd | 60 | Obsoletes: denemo-devel < 2 |
08f8886e | 61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
62 | ||
63 | %description | |
db409545 | 64 | Denemo is a graphical music notation program written in C with GTK+. |
da910441 | 65 | |
66 | It is intended to be used in conjunction with GNU Lilypond | |
3eab9fcd | 67 | (<http://lilypond.org/>), but is adaptable to other |
da910441 | 68 | computer-music-related purposes as well. |
08f8886e | 69 | |
ad87da3b JR |
70 | %description -l pl.UTF-8 |
71 | Denemo to program do graficznej notacji muzycznej używający GTK+. | |
5a90b469 | 72 | |
3eab9fcd JB |
73 | Jest przeznaczony do używania z GNU Lilypond (<http://lilypond.org/>), |
74 | ale może być zaadaptowany do innych celów związanych z muzyką. | |
39a47d9b | 75 | |
08f8886e | 76 | %prep |
8be59372 | 77 | %setup -q |
d81ecea0 | 78 | %patch0 -p1 |
08f8886e | 79 | |
80 | %build | |
3eab9fcd JB |
81 | %{__intltoolize} |
82 | %{__aclocal} -I build | |
294a8ef6 | 83 | %{__autoconf} |
39a47d9b | 84 | %{__autoheader} |
294a8ef6 | 85 | %{__automake} |
6bf3a28b | 86 | CFLAGS="%{rpmcflags} %{?debug:-DDEBUG}" |
39a47d9b | 87 | %configure \ |
3eab9fcd JB |
88 | %{?with_alsa:--enable-alsa} \ |
89 | %{!?with_aubio:--disable-aubio} \ | |
90 | %{!?with_evince:--disable-evince} \ | |
91 | %{!?with_fluidsynth:--disable-fluidsynth} \ | |
92 | %{?with_gtk2:--enable-gtk2} \ | |
93 | %{!?with_gtk2:--enable-gtk3} \ | |
94 | %{?with_jack:--enable-jack} \ | |
95 | %{!?with_portaudio:--disable-portaudio} \ | |
96 | %{!?with_portmidi:--disable-portmidi} \ | |
97 | %{!?with_rubberband:--disable-rubberband} | |
39a47d9b | 98 | |
3a0844d8 | 99 | %{__make} |
08f8886e | 100 | |
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
6695501b PG |
104 | %{__make} install \ |
105 | DESTDIR=$RPM_BUILD_ROOT | |
08f8886e | 106 | |
6bf3a28b JB |
107 | %find_lang %{name} |
108 | ||
08f8886e | 109 | %clean |
6bf3a28b | 110 | rm -rf $RPM_BUILD_ROOT |
08f8886e | 111 | |
6bf3a28b | 112 | %files -f %{name}.lang |
08f8886e | 113 | %defattr(644,root,root,755) |
3eab9fcd JB |
114 | %doc AUTHORS ChangeLog NEWS docs/{DESIGN*,GOALS,TODO} |
115 | %attr(755,root,root) %{_bindir}/annotator | |
116 | %attr(755,root,root) %{_bindir}/cairo_svg2path | |
8be59372 | 117 | %attr(755,root,root) %{_bindir}/denemo |
3eab9fcd JB |
118 | %attr(755,root,root) %{_bindir}/denemo_file_update |
119 | %attr(755,root,root) %{_bindir}/generate_source | |
120 | %attr(755,root,root) %{_bindir}/pageswitcher | |
121 | %attr(755,root,root) %{_bindir}/pageturner | |
122 | %attr(755,root,root) %{_bindir}/twopageturner | |
123 | %{_datadir}/appdata/denemo.appdata.xml | |
8be59372 | 124 | %{_datadir}/denemo |
3eab9fcd JB |
125 | %{_fontsdir}/denemo |
126 | %{_desktopdir}/denemo.desktop | |
127 | %{_pixmapsdir}/denemo.png |