[cutecw] initial copy after review
Wes Hardaker
hardaker at fedoraproject.org
Thu Jan 13 17:37:55 UTC 2011
commit bba1562c58aeaff1794f2cec801738bb2e581663
Author: Wes Hardaker <opensource at hardakers.net>
Date: Thu Jan 13 09:37:37 2011 -0800
initial copy after review
cutecw-paths.patch | 15 +++++++++++
cutecw.desktop | 13 +++++++++
cutecw.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/cutecw-paths.patch b/cutecw-paths.patch
new file mode 100644
index 0000000..83b9187
--- /dev/null
+++ b/cutecw-paths.patch
@@ -0,0 +1,15 @@
+--- tmp/cutecw-0.4/cutecw.pro 2011-01-08 08:51:32.000000000 -0800
++++ cutecw-0.4/cutecw.pro 2011-01-11 08:57:09.918690605 -0800
+@@ -103,10 +103,10 @@
+
+ desktopfile.files = $${TARGET}.desktop
+ maemo5 {
+- target.path = /opt/usr/bin
++ target.path = /opt/$$PREFIX/bin
+ desktopfile.path = /usr/share/applications/hildon
+ } else {
+- target.path = /usr/local/bin
++ target.path = $$PREFIX/bin
+ desktopfile.path = /usr/share/applications
+ }
+
diff --git a/cutecw.desktop b/cutecw.desktop
new file mode 100644
index 0000000..324bc60
--- /dev/null
+++ b/cutecw.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Type=Application
+Terminal=false
+Name=Cute CW
+Exec=cutecw
+X-GNOME-FullName=Cute CW Morse Code Trainer
+Icon=cutecw
+Comment=Learn Morse Code in a multi-step process and have fun doing it.
+StartupNotify=true
+Categories=Education;HamRadio;AudioVideo
+X-Desktop-File-Install-Version=0.16
diff --git a/cutecw.spec b/cutecw.spec
new file mode 100644
index 0000000..3ea447f
--- /dev/null
+++ b/cutecw.spec
@@ -0,0 +1,71 @@
+Summary: Morse Code (CW) Training Software
+Name: cutecw
+Version: 0.4
+Release: 3%{?dist}
+License: GPLv2
+Group: Applications/Communications
+URL: http://www.hamtools.org/%{name}/
+Source: http://www.hamtools.org/%{name}/releases/%{name}-%{version}.tar.gz
+Source1: cutecw.desktop
+# Uses the PREFIX variable instead of assuming /usr or /usr/local
+# upstream has applied this in the git repo
+Patch1: cutecw-paths.patch
+
+BuildRequires: qt-devel >= 4.7
+BuildRequires: desktop-file-utils
+
+%description
+Most morse code (CW) training requires you to learn everything at once
+without a training process. This application changes that and
+separates training into phases.
+
+%prep
+%setup -q
+
+%patch1 -p1 -b.paths
+
+%build
+qmake-qt4 PREFIX=/usr
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+
+make install INSTALL_ROOT=%{buildroot}
+
+%{__mkdir_p} %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/
+%{__cp} icons/cutecw.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/
+desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
+
+%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
+%defattr(-,root,root,-)
+%doc LICENSE README.org
+%{_bindir}/cutecw
+%{_datadir}/icons/hicolor/*/apps/*.png
+%{_datadir}/icons/hicolor/*/apps/*.svg
+%{_datadir}/applications/cutecw.desktop
+
+%changelog
+* Wed Jan 12 2011 Wes Hardaker <wjhns174 at hardakers.net> - 0.4-3
+- made the icons point to the -datadir instead of _iconsdir
+
+* Wed Jan 12 2011 Wes Hardaker <wjhns174 at hardakers.net> - 0.4-2
+- Added desktop-file-utils to buildreqs for pulling in desktop-file-install
+
+* Mon Jan 10 2011 Wes Hardaker <wjhns174 at hardakers.net> - 0.4-1
+- Initial Release for Fedora
+
+
More information about the scm-commits
mailing list