Name: textroom Version: 0.5.3 Release: 1%{?dist} Summary: A full screen rich text editor for writers Group: Applications/Editors License: GPLv2 URL: http://textroom.sourceforge.net/ Source0: http://download.sourceforge.net/textroom/textroom-%{version}.tar.gz Patch0: textroom-0.5.3-configs.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: qt-devel, SDL-devel, SDL-static, SDL_mixer-devel BuildRequires: desktop-file-utils %description TextRoom and all other similar editors share one goal: to get you writing right away by providing distraction free environment to your liking, as well as familiar set of keyboard shortcuts to control its behavior. If you don't feel comfortable already with your editor of choice, you may find it useful. %prep %setup -q %patch0 -p0 # quickfix hardcoded sound locations sed -i -e \ 's|/usr/local/share/textroom|%{_datadir}/sounds/textroom|g' \ src/textroom.cpp %build qmake-qt4 -r \ DATADIR=%{_datadir} \ BINDIR=%{_bindir} \ INCLUDEDIR={%_includedir} \ DOCDIR=%{_docdir} \ textroom.pro make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install INSTALL_ROOT=%{buildroot} rm -rf %{buildroot}%{_docdir} desktop-file-install \ --remove-category="Application" \ --delete-original \ --dir=%{buildroot}%{_datadir}/applications \ %{buildroot}/%{_datadir}/applications/TextRoom.desktop %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc docs/* %{_bindir}/textroom %{_datadir}/applications/TextRoom.desktop %{_datadir}/mime-info/textroom.* %{_datadir}/mimelnk/text/textroom.* %{_datadir}/pixmaps/textroom* %{_datadir}/sounds/textroom %changelog * Sat May 09 2009 Konstantin Ryabitsev - 0.5.3 - Initial packaging for Fedora Project