[kmetronome] Initial commit
cheeselee
cheeselee at fedoraproject.org
Fri Jul 29 15:43:02 UTC 2011
commit 5fcf2e56caceb3038a32e57371110777d3129cc1
Author: Robin Lee <cheeselee at fedoraproject.org>
Date: Fri Jul 29 23:43:45 2011 +0800
Initial commit
.gitignore | 1 +
kmetronome-0.10.0-docbook.patch | 9 +++++
kmetronome.spec | 77 +++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 88 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c498de9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/kmetronome-0.10.0.tar.bz2
diff --git a/kmetronome-0.10.0-docbook.patch b/kmetronome-0.10.0-docbook.patch
new file mode 100644
index 0000000..b660acd
--- /dev/null
+++ b/kmetronome-0.10.0-docbook.patch
@@ -0,0 +1,9 @@
+--- trunk/doc/index.docbook 2010/06/06 08:18:07 136
++++ trunk/doc/index.docbook 2010/09/16 20:44:06 141
+@@ -1,5 +1,5 @@
+ <?xml version="1.0" ?>
+-<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
++<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
+ <!ENTITY kmetronome "<application>KMetronome</application>">
+ <!ENTITY kappname "&kmetronome;"><!-- Do *not* replace kappname-->
+ <!ENTITY package "kde-module"><!-- kdebase, kdeadmin, etc -->
diff --git a/kmetronome.spec b/kmetronome.spec
new file mode 100644
index 0000000..352126d
--- /dev/null
+++ b/kmetronome.spec
@@ -0,0 +1,77 @@
+Name: kmetronome
+Version: 0.10.0
+Release: 3%{?dist}
+License: GPLv2+
+Summary: KDE MIDI Metronome using ALSA Sequencer
+Group: Applications/Multimedia
+URL: http://kmetronome.sourceforge.net
+Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
+# Fix docbook version, applied in upstream svn141
+Patch0: kmetronome-0.10.0-docbook.patch
+BuildRequires: cmake
+BuildRequires: gettext
+BuildRequires: kdelibs4-devel
+BuildRequires: drumstick-devel
+BuildRequires: desktop-file-utils
+%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
+
+%description
+KMetronome is a MIDI metronome with KDE interface, based on the ALSA
+sequencer. The intended audience is musicians and music students. Like
+solid, real metronomes it is a tool to keep the rhythm while playing musical
+instruments. It uses MIDI for sound generation instead of digital audio,
+allowing low CPU usage, and very accurate timing thanks to the ALSA sequencer.
+
+%prep
+%setup -q
+%patch0 -p1
+# ensure the bundled library not linked
+rm -fr drumstick/
+
+%build
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%{cmake_kde4} ..
+popd
+make %{?_smp_mflags} -C %{_target_platform}
+
+%install
+make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
+%find_lang %{name} --with-kde
+# check the .desktop file
+desktop-file-validate $RPM_BUILD_ROOT%{_kde4_datadir}/applications/kde4/%{name}.desktop
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+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
+%doc README ChangeLog AUTHORS TODO COPYING NEWS
+%{_kde4_bindir}/%{name}
+%{_kde4_appsdir}/%{name}/
+%{_kde4_iconsdir}/hicolor/*/apps/%{name}.*
+%{_kde4_datadir}/applications/kde4/%{name}.desktop
+%{_datadir}/dbus-1/*/*
+%{_mandir}/man1/%{name}.1.*
+
+%changelog
+* Fri Jul 29 2011 Robin Lee <cheeselee at fedoraproject.org> - 0.10.0-3
+- Fix a typo
+- Add scriptlets to update the icon cache
+
+* Sun Jun 26 2011 Robin Lee <cheeselee at fedoraproject.org> - 0.10.0-2
+- Add kde4-macros(api) requirement
+- BR: gettext and desktop-file-utils added, alsa-lib-devel removed
+- Check the desktop entry file
+- Drop explicit %%doc tag from the manpage
+
+* Thu Jun 9 2011 Robin Lee <cheeselee at fedoraproject.org> - 0.10.0-1
+- Initial specfile
diff --git a/sources b/sources
index e69de29..af38b40 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+af52c1179f4c27496bb67e965be3931e kmetronome-0.10.0.tar.bz2
More information about the scm-commits
mailing list