Name: qdex Version: 9.09 Release: 2%{?dist} Summary: Offline Romanian dictionary application Group: Applications/Text License: GPLv3 URL: http://qdex.sourceforge.net Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz #Source1: http://downloads.sourceforge.net/%{name}/%{name}.qdb.tar.bz2 Source2: %{name}.desktop #Patch0: %{name}-%{version}-dbdir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: qt-devel >= 4.2 #Requires: %description qDex is an offline dictionary application that uses the database of the Romanian word definitions created and maintained by Dexonline.ro volunteers. %prep %setup -q -n %{name} #%setup -T -D -a 1 -n %{name} # qdex looks for the db file in its current directory. # make it put the db in ~/ instead #%patch0 -p1 -b .dbdir %build %{_qt4_qmake} %{__make} %{?_smp_mflags} CFLAGS="%{optflags}" %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_bindir} install -p -D qdex %{buildroot}%{_bindir} # mkdir -p %{buildroot}%{_datadir}/%{name} # install -p -D %{name}.qdb %{buildroot}%{_datadir}/%{name} desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE.GPL3 %{_bindir}/%{name} #%{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %changelog * Wed Sep 9 2009 Ionuț Arțăriși - 9.09-2 - Added desktop file and changed db file location * Wed Sep 9 2009 Ionuț Arțăriși - 9.09-1 - Initial release