Author Topic: Frescobaldi - trouble making package  (Read 566 times)

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3882
Frescobaldi - trouble making package
« on: May 15, 2011, 11:02:09 AM »
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:

Code: [Select]
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

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1318
Re: Frescobaldi - trouble making package
« Reply #1 on: May 15, 2011, 11:36:47 AM »
Lately I get the same messages - everything seems to work fine.

I also get messages about unused .so libraries.

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3882
Re: Frescobaldi - trouble making package
« Reply #2 on: May 15, 2011, 11:40:52 AM »
Thanks for the feedback. There is so much about spec files that is still a mystery to me.  :-\ :)