rpms/kmid2/F-11 kmid2.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Kevin Kofler kkofler at fedoraproject.org
Wed Jan 27 09:40:36 UTC 2010


Author: kkofler

Update of /cvs/pkgs/rpms/kmid2/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15797/F-11

Modified Files:
	.cvsignore sources 
Added Files:
	kmid2.spec 
Log Message:
Sync from devel:

New package kmid2 - A MIDI/karaoke player for KDE
Replaces the old KMid snapshot in the kmid package.


--- NEW FILE kmid2.spec ---
Name:           kmid2
Version:        0.1.1
Release:        1%{?dist}
Summary:        A MIDI/karaoke player for KDE

Group:          Applications/Multimedia
# GPLv2+ for the code, CC-BY for the examples
License:        GPLv2+ and CC-BY
URL:            http://userbase.kde.org/KMid2

# remove content with unknown copyright status
#
# KMid2 is shipping some non-code content with unknown copyright status,
# inherited from the original KMid. The README claims the files are GPL, however
# it is unknown whether the authors of the sequenced versions approved of this
# and there are also (non-expired) copyrights on the original music in 3 out of
# 4 cases. Upstream has been notified of this issue.
# These files are removed here and the CMakeLists.txt is patched for this:
#
# VERSION=0.1.1
# rm -rf kmid2-${VERSION}
# tar xjf kmid2-${VERSION}.tar.bz2
# rm -f kmid2-${VERSION}/examples/*.kar
# sed -i -e '/\.kar/d' kmid2-${VERSION}/examples/CMakeLists.txt
# sed -i -e '3,+6d' -e 's/There are also/There are/g' kmid2-${VERSION}/examples/README
# tar cjf kmid2-${VERSION}-patched.tar.bz2 kmid2-${VERSION}
#
# The 2 new examples are fine as the original music is out of copyright and
# the MIDI files were sequenced by the KMid2 maintainer.

# original tarball:
# Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2
Source0:        %{name}-%{version}-patched.tar.bz2

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  kdelibs4-devel
BuildRequires:  kde-filesystem
BuildRequires:  cmake
BuildRequires:  alsa-lib-devel
BuildRequires:  aseqmm-devel
BuildRequires:  gettext
BuildRequires:  desktop-file-utils

%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
Requires:       kdelibs4 >= %{version}
Requires:       oxygen-icon-theme

Obsoletes:      kmid < 2.0-1
Provides:       kmid = 2.0-1

Obsoletes:      kmid-devel < 2.0-1

%description
KMid2 is a MIDI/karaoke file player, with configurable midi mapper, real
Session Management, drag & drop, customizable fonts, etc. It has a very
nice interface which let you easily follow the tune while changing the
color of the lyrics.
It supports output through external synthesizers, AWE, FM and GUS cards.
It also has a keyboard view to see the notes played by each instrument.


%prep
%setup -q
# zap bundled copy of aseqmm to guarantee it's never used
rm -rf aseqmm


%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake_kde4} ..
popd

make %{?_smp_mflags} -C %{_target_platform}


%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} -C %{_target_platform}
desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/kmid2.desktop
%find_lang %{name} --with-kde


%clean
rm -rf %{buildroot}


%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
update-desktop-database &> /dev/null || :

%postun
update-desktop-database &> /dev/null || :
if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi

%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc ChangeLog README TODO
%{_kde4_bindir}/kmid2
%{_kde4_appsdir}/kmid2/
%{_kde4_datadir}/applications/kde4/kmid2.desktop
%{_kde4_datadir}/config.kcfg/*
%{_kde4_datadir}/kde4/services/*
%{_kde4_datadir}/kde4/servicetypes/*
%{_kde4_iconsdir}/hicolor/*/apps/kmid2.png
%{_kde4_libdir}/kde4/*


%changelog
* Fri Jan 22 2010 Kevin Kofler <Kevin at tigcc.ticalc.org> - 0.1.1-1
- First Fedora package, replaces kmid

Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/kmid2/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	27 Jan 2010 05:26:54 -0000	1.1
+++ .cvsignore	27 Jan 2010 09:40:36 -0000	1.2
@@ -0,0 +1 @@
+kmid2-0.1.1-patched.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/kmid2/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	27 Jan 2010 05:26:54 -0000	1.1
+++ sources	27 Jan 2010 09:40:36 -0000	1.2
@@ -0,0 +1 @@
+e7832d75c0db1fc68bddb85a558123a2  kmid2-0.1.1-patched.tar.bz2



More information about the scm-commits mailing list