File QamIDEN.spec of Package QamIDEN

# norootforbuild

%define _prefix	/usr
%define rversion 1.0
%define rrelease 1.1

Name:		qamiden
Version:	%{rversion}
Release:	%{rrelease}suse102
%if %suse_version < 1020
Distribution:	SUSE Linux %(echo "%{suse_version}" | %__sed -e 's/.$//' -e ':a;s/\(.$\)/\.\1/g')
%else
Distribution:	openSUSE %(echo "%{suse_version}" | %__sed -e 's/.$//' -e ':a;s/\(.$\)/\.\1/g')
%endif
Summary:	English <-> Indonesian Dictionary
Source:		%{name}-%{version}.tar.bz2
URL:		http://qamiden.sourceforge.net
Packager:	Donnie S Bhayangkara - http://donnie.110mb.com
Group:		Productivity/Office/Dictionary
License:	GPL
BuildRoot:	%{_tmppath}/build-%{name}-%{version}
BuildRequires: 	update-desktop-files
BuildRequires: 	libqt4-devel >= 4.3.0
Requires: libqt4 >= 4.3.0, libqt4-sql-sqlite >= 4.3.0, libqt4-sql >= 4.3.0

%description
QamIDEN is an English <-> Indonesian dictionary ported to Qt4 + SQLite3 from a
Win32 application named SATUVisi Indict.

You'll need a qamiden-db-bin file. Download it from http://qamiden.sourceforge.net/

Authors:
--------
     Donnie S Bhayangkara <dsbhayangkara@sourceforge.net>

%prep
%setup -q -n "%{name}-%{version}"
%{?suse_update_config:%{suse_update_config -f}}

%build

%__make clean

qmake -config release

%__make %{?jobs:-j%{jobs}}

%install

%__install -D -m 0755 "%{_builddir}/%{name}-%{version}/bin/qamiden" "%{buildroot}%{_bindir}/%{name}"
%__install -D -m 0644 "%{_builddir}/%{name}-%{version}/resources/images/qamiden-icon.png" "%{buildroot}%{_datadir}/pixmaps/%{name}.png"

%__install -d -m 755 "%{buildroot}%{_datadir}/applications"
%__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=%{name}
Name=QamIDEN
Comment=English <-> Indonesian Dictionary
GenericName=QamIDEN
Icon=%{name}.png
Terminal=false
StartupNotify=true
EOF

%suse_update_desktop_file -r %{name} Qt Office Dictionary

find %{buildroot} -type f -o -type l | sed "s|^%{buildroot}||" >master.list

%if %suse_version < 930
%__strip "%{buildroot}%{_bindir}"/*
%endif

%clean
%__rm -rf "%{buildroot}"

%files -f master.list
%defattr(-,root,root)
%doc COPYING README TODO

%changelog
* Sat Jul 7 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 1.0
- new upstream version
- added Requires: libqt4 >= 4.3.0, libqt4-sql-sqlite >= 4.3.0, libqt4-sql >= 4.3.0

* Sat Jun 23 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 0.1.0svn20070623
- updated to 0.1.0svn20070623

* Thu Jun 21 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 0.1.0svn20070620
- initial release
openSUSE Build Service is sponsored by