Summary: Morse Code (CW) Training Software Name: cutecw Version: 1.0 Release: 1%{?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 * Sun Mar 6 2011 Wes Hardaker <wjhns174@hardakers.net> - 1.0-1 - Updated to 1.0 upstream * Mon Feb 14 2011 Wes Hardaker <wjhns174@hardakers.net> - 0.5-1 - Update to 0.5 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Jan 12 2011 Wes Hardaker <wjhns174@hardakers.net> - 0.4-3 - made the icons point to the -datadir instead of _iconsdir * Wed Jan 12 2011 Wes Hardaker <wjhns174@hardakers.net> - 0.4-2 - Added desktop-file-utils to buildreqs for pulling in desktop-file-install * Mon Jan 10 2011 Wes Hardaker <wjhns174@hardakers.net> - 0.4-1 - Initial Release for Fedora