I got a mandriva and a fedora core spec file for this program and had to use bits of both. I've got a working src.rpm, but it spits out errors about file type not recognized for a bunch of python scripts in /usr/share/apps/frescobaldi/lib/*.py. The build completes and the rpm works, but I'm not sure if this needs to be fixed. Any ideas?
I haven't submitted the rpm to dropbox yet, but here's the spec:
Summary: A LilyPond sheet music editor for KDE4
Name: frescobaldi
Version: 1.2.0
Release: %mkrel 1
Source0: http://lilykde.googlecode.com/files/%name-%version.tar.xz
License: GPLv2+
Group: Sound
Url: http://www.frescobaldi.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: kde4-macros
BuildRequires: imagemagick
BuildRequires: kdelibs4-devel
BuildRequires: python-kde4
BuildRequires: lilypond
BuildRequires: python-dbus
Requires: lilypond
Requires: python-kde4
Requires: python-dbus
Requires: okular
Requires: TiMidity++
%description
Frescobaldi is a LilyPond sheet music editor for KDE4. It aims to be
powerful, yet lightweight and easy to use.
%prep
%setup -q
%build
%cmake_kde4
%make
%install
rm -rf %{buildroot}
%{makeinstall_std} -C build
## File lists
# locale's
%find_lang %{name}
# HTML (1.0)
HTML_DIR=$(kde4-config --expandvars --install html)
if [ -d %{buildroot}$HTML_DIR ]; then
for lang_dir in %{buildroot}$HTML_DIR/* ; do
pushd $lang_dir
# Replace absolute symlinks with relative ones
for i in *; do
[ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common
done
popd
done
fi
%files -f %{name}.lang
%defattr(-,root,root, -)
%doc ChangeLog COPYING README* THANKS TODO
%{_docdir}/HTML/en/%{name}/
%{_bindir}/%{name}
%_kde_datadir/applications/kde4/*.desktop
%{_datadir}/apps/%{name}/*
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/config/%{name}rc
%clean
rm -rf %{buildroot}
%changelog
* Sun May 15 2011 Galen Seaman <gseaman2186@comcast.net> 1.2.0-1pclos
- First build for PCLinuxOS
- Combined Mandrive and Fedora src rpms