File kmid.spec of Package kmid4

#
# spec file for package kmid (Version 2.4.0)
#
# norootforbuild

Name:           kmid
Version:        2.4.0
Release:        1
License:        GPL v2 or later
Summary:        KDE MIDI/Karaoke Player
Group:          Productivity/Multimedia/Sound/Midi
URL:            http://kmid2.sourceforge.net
Source:         %name-%version.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cmake
BuildRequires:  alsa-devel
BuildRequires:  libkde4-devel
BuildRequires:  libdrumstick-qt4-devel
BuildRequires:  hicolor-icon-theme
%kde4_runtime_requires

%description
KMid is a MIDI/Karaoke player with KDE interface, based on the ALSA
sequencer.


Authors:
--------
    Antonio Larrosa Jimenez <larrosa@kde.org>
    Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>

%package -n libkmidbackend1
Summary:        KDE MIDI/Karaoke Player Backend
Group:          System/Libraries

%description -n libkmidbackend1
KMid is a MIDI/Karaoke player with KDE interface, based on the ALSA
sequencer.


Authors:
--------
    Antonio Larrosa Jimenez <larrosa@kde.org>
    Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>

%package -n libkmidbackend-devel
Summary:        Development package for the libkmidbackend library
Group:          Development/Libraries/C and C++
Requires:       libkmidbackend1 = %{version}
Requires:       glibc-devel libstdc++-devel libkde4-devel

%description -n libkmidbackend-devel
This package contains the files needed to compile KMid backends.


Authors:
--------
    Antonio Larrosa Jimenez <larrosa@kde.org>
    Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>

%lang_package

%prep
%setup -q

%build
%cmake_kde4
%make_jobs

%install
%makeinstall
%suse_update_desktop_file -G "MIDI/Karaoke Player" -r %name AudioVideo Music Qt KDE X-KDE-More Midi Player
rm -f %{buildroot}/usr/share/doc/kde/HTML/*/%{name}/common
%find_lang %name
%kde_post_install

%post -n libkmidbackend1 -p /sbin/ldconfig

%postun -n libkmidbackend1 -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README TODO ChangeLog COPYING
%{_datadir}/kde4/apps/%name
%{_datadir}/kde4/apps/kmid_part
%{_bindir}/%name
%{_libdir}/kde4/%{name}_*
%{_datadir}/applications/*/%name.desktop
%{_datadir}/kde4/config.kcfg/%name.kcfg
%{_datadir}/kde4/services/%{name}_*.desktop
%{_datadir}/kde4/servicetypes/%{name}_backend.desktop
%{_datadir}/icons/hicolor/*/apps/%name.png
%{_datadir}/icons/hicolor/scalable/apps/%name.svgz
%{_datadir}/dbus-1/interfaces/org.kde.KMid.xml
%{_datadir}/dbus-1/interfaces/org.kde.KMidPart.xml

%files -n libkmidbackend1
%defattr(-,root,root)
%{_libdir}/libkmidbackend.so.*

%files -n libkmidbackend-devel
%defattr(-,root,root)
%{_includedir}/kmid
%{_libdir}/libkmidbackend.so
%{_includedir}/kmid/*.h

%files lang -f %{name}.lang
%if 0%{?suse_version} == 1120
%defattr(-,root,root)
%dir /usr/share/locale/sr@ijekavian
%dir /usr/share/locale/sr@ijekavian/LC_MESSAGES
%dir /usr/share/locale/sr@ijekavianlatin
%dir /usr/share/locale/sr@ijekavianlatin/LC_MESSAGES
%endif

%changelog
openSUSE Build Service is sponsored by