%define fontname ntedfont
#define fontconf XX-%{fontname}.conf
Name: nted
Version: 1.4.17
Release: 1.1%{?dist}
Summary: Musical score editor
Summary(de): Partitureditor
Group: Applications/Publishing
# Program source is GPLv2+, HTML manuals are GFDL 1.2+.
License: GPLv2+ and GFDL
URL: http://vsr.informatik.tu-chemnitz.de/staff/jan/nted/nted.xhtml
Source0: http://vsr.informatik.tu-chemnitz.de/staff/jan/nted/nted-%{version}.tar.gz
Source1: nted.desktop
#Source2: nted-fonts-fontconfig.conf
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: gtk2-devel alsa-lib-devel
BuildRequires: gettext kdesdk yelp xmlto desktop-file-utils
BuildRequires: fontpackages-devel
BuildRequires: fontpackages-filesystem
Requires: nted-fonts
%description
NtEd is a GTK score editor. It intends to be really WYSIWYG: what you
see on the screen is exactly what you get on printer output. It
supports up to 4 voices per staff, drum notes, 5 lyrics lines,
N-Tuplets, context changes, repeats with alternatives, configurable
music instruments per staff, MIDI and Postscript export, MusicXML
import. Scores can be played through the ALSA sequencer.
%package fonts
Group: User Interface/X
#BuildArch: noarch # This still breaks the Fedora build architecture
Requires: fontpackages-filesystem
Summary: NtEd's own special note font.
%description fonts
NtEd's own special note font.
%prep
%setup -q
# Upstream mistakenly ships a header file with its x bit set.
chmod -x dynarray.h
%build
%configure --docdir='%{_docdir}/%{name}-%{version}'
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
mv %{buildroot}%{_docdir}/%{name}-%{version} docs
# Upstream desktop file contains some blank keys and is not spec-compliant
rm %{buildroot}%{_datadir}/applications/nted.desktop
desktop-file-install --vendor="fedora" \
--dir=%{buildroot}%{_datadir}/applications \
%{SOURCE1}
%find_lang %{name}
# Install font into the correct directory
install -m 0755 -d %{buildroot}%{_fontdir}
mv -f %{buildroot}%{_datadir}/%{name}/ntedfont.pfa \
%{buildroot}%{_fontdir}/ntedfont.pfa
# This saves us from patching the nted source.
ln -s %{_fontdir}/ntedfont.pfa \
%{buildroot}%{_datadir}/%{name}/ntedfont.pfa \
# fontconfig magic
#install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
# %{buildroot}%{_fontconfig_confdir}
#install -m 0644 -p %{SOURCE2} \
# %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
#ln -s %{_fontconfig_templatedir}/%{fontconf} \
# %{buildroot}%{_fontconfig_confdir}/%{fontconf}
%clean
rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING docs/*
%{_bindir}/nted
%{_datadir}/applications/fedora-nted.desktop
%{_datadir}/pixmaps/nted.png
%{_datadir}/%{name}
%{_mandir}/*/*
#_font_pkg -n fonts -f %{fontconf} *.pfa
%_font_pkg -n fonts *.pfa
%doc
%dir %{_fontdir}
%changelog
* Sun Jan 11 2009 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.4.17-1.1
- remove wrongly encoded german description
- use new font packaging rules
- split ntedfont.pfa into nted-fonts subpackage
* Wed Dec 10 2008 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.4.17-1
- Update to upstream's 1.4.17 release.
* Tue Nov 30 2008 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.4.16-1
- Update to upstream's 1.4.16 release.
* Tue Nov 11 2008 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.4.15-1
- Update to upstream's 1.4.15 release.
* Fri Oct 17 2008 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.4.2-1
- Update to upstream's 1.4.2 release.
* Wed Oct 15 2008 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.3.3-1
- Update to upstream's 1.3.3 release.
* Fri Sep 19 2008 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.2.1-1
- Update to upstream's 1.2.1 release.
* Wed Sep 10 2008 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.0.8-2
- Work around upstream shipping an executable dynarray.h file.
* Tue Sep 9 2008 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.0.8-1
- Update to upstream's 1.0.8 release.
* Sun Sep 7 2008 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.0.7-2
- Consistently use %%{buildroot} instead of $RPM_BUILD_ROOT
- Ship upstream's now correct COPYING file.
- Ship all docs disregarding the languages.
* Sun Sep 7 2008 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.0.7-1
- Update to nted-1.0.7
- Remove all patches (all adopted by upstream now)
- Consistently use --docdir, %%docdir
* Sun Jun 8 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.24.1-1
- Update to 0.24.1
* Sun Jun 8 2008 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.22.3-2.4
- Temporary test build
- Add GFDL to licenses
- Add lang(de) variants for Summary and Description
- Have nted look for html docs in correct place
* Tue Jun 3 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.22.3-2
- Use compiler flags
- Fix compilation warnings
- Reorganize documentation files
* Fri Apr 25 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.22.3-1
- Initial package