Name: focuswriter Version: 1.3.2.1 Release: 1%{?dist} Summary: A fullscreen, distraction-free writing program Group: Applications/Editors License: GPLv3+ URL: http://gottcode.org/%{name}/ Source0: http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: libao-devel libzip-devel BuildRequires: hunspell-devel desktop-file-utils BuildRequires: qt-devel %description A fullscreen, distraction-free writing program. You can customize your environment by changing the font, colors, and background image to add ambiance as you type. FocusWriter features an on-the-fly updating word count, optional auto-save, optional daily goals, and an interface that hides away to allow you to focus more clearly; additionally, when you open the program your current work-in-progress will automatically load and position you at the end of your document, so that you can immediately jump back in. %prep %setup -q %build qmake-qt4 PREFIX=%{_prefix} make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install INSTALL_ROOT=$RPM_BUILD_ROOT desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING ChangeLog README %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/48x48/apps/%{name}.png %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 COPYING ChangeLog README %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/48x48/apps/%{name}.png %changelog * Mon Jan 24 2011 Jean-Francois Saucier <jsaucier@gmail.com> - 1.3.2.1-1 - Update to the new upstream version * Wed Dec 23 2010 Jean-Francois Saucier <jsaucier@gmail.com> - 1.3.1-3 - Remove the qt-devel version number - Reorder the files section at the end of the spec * Wed Nov 24 2010 Jean-Francois Saucier <jsaucier@gmail.com> - 1.3.1-2 - Fix as per suggestion in bug #652257 * Wed Nov 10 2010 Jean-Francois Saucier <jsaucier@gmail.com> - 1.3.1-1 - Initial build for Fedora