File noteedit.spec of Package noteedit

#
# spec file for package noteedit (Version 2.8.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           noteedit
Version:        2.8.1
Release:        227
#
License:        GPL-2.0+
#
Summary:        Score Editor with Extensive MIDI and MusiXTeX Functionality
#
Url:            http://noteedit.berlios.de/
Group:          Productivity/Multimedia/Sound/Midi
Source:         noteedit-%{version}.tar.bz2
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch1:         noteedit-2.8.1-header_protectors.patch
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch4:         noteedit-2.8.0_uninitialized.patch
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch5:         noteedit-2.8.1-desktop_file.patch
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch6:         noteedit-2.8.1-compilefixes.patch
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch7:         noteedit-2.8.1_uninitialized_variables.patch
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch8:         noteedit-2.8.1_gcc43_misc_fixes.patch
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch9:         %{name}-%{version}-undefined-code.patch
#
BuildRequires:  bison
BuildRequires:  fdupes
BuildRequires:  flex
BuildRequires:  gcc-c++
BuildRequires:  kdelibs3-devel
BuildRequires:  tse3-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
NoteEdit is a score editor based on the MIDI library TSE3. It can read
and write MIDI files and process events sent from an external MIDI
keyboard. The configured MIDI devices can be used to play the score.
The score can be saved as a MusiXTeX file for printout.

%prep
%setup -q
%patch1
%patch4
%patch5
%patch6 -p1
%patch7
%patch8
%patch9

%build
. /etc/opt/kde3/common_options
export CFLAGS="${CFLAGS} -fpermissive"
export CXXFLAGS="${CFLAGS}"
update_admin --no-unsermake
./configure \
    $configkde \
    --with-libtse3-libs=%{_libdir} \
    --libdir=/opt/kde3/%{_lib} \
    --with-qt-libraries=/usr/lib/qt3/%{_lib}
%{__make} %{?jobs:-j %jobs}

%install
%makeinstall
#  This is a work around for bug #143742. dont remove it!
%{__install} -D -m 0644 noteedit/icons/hi32-app-noteedit.png %{buildroot}%{_datadir}/pixmaps/NoteEdit.png
test -f %{buildroot}opt/kde3/%{_lib}/libnoteedit.so && rm %{buildroot}opt/kde3/%{_lib}/libnoteedit.so
%suse_update_desktop_file %{name} Sequencer
%find_lang %{name}
%fdupes -s %{buildroot}opt/kde3/share/
#
find doc/ -name Makefile\* -print0 | xargs -r0 rm -v

%clean
%{__rm} -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %name.lang
%defattr(-,root,root)
/opt/kde3/bin/noteedit
/opt/kde3/share/appl*/*/*
/opt/kde3/share/apps/noteedit
/opt/kde3/%{_lib}/libnoteedit.so*
/opt/kde3/%{_lib}/libnoteedit.la
%{_datadir}/pixmaps/NoteEdit.png
%doc AUTHORS README VERSION COPYING LICENSE.GPL INSTALL FAQ doc/* noteedit/examples

%changelog
openSUSE Build Service is sponsored by