File synce-kpm.spec of Package synce-kpm
#
# spec file for package synce-kpm (Version 0.15.1)
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: synce-kpm
Version: 0.15.1
Release: 0
License: GPLv2+
Summary: SynCE KDE PDA Manager
Url: http://www.synce.org/moin/SynceTools/SynceKpm
Group: Hardware/Mobile
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Vendor: The SynCE Project
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}.desktop
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: update-desktop-files
Requires: libxslt-python
Requires: python-kde4
Requires: python-qt4
Requires: python-rapi2 >= 0.13
Requires: python-setuptools
Recommends: rra-tools
Recommends: synce-connector
Recommends: synce-sync-engine
Suggests: kio_rapip
%py_requires
%description
SynCE-KPM stands for SynCE KDE PDA Manager and aims to be an application to
manage WM5/WM6 PDA devices from Linux.
%prep
%setup -q
%build
export CFLAGS="%{optflags}"
python setup.py build
%install
python setup.py install --root %{buildroot} \
--prefix=%{_prefix}
if [ ! -d %{buildroot}%{_datadir}/pixmaps ]; then
mkdir -p %{buildroot}%{_datadir}/pixmaps
fi
cp synceKPM/data/blue_scalable.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg
%suse_update_desktop_file -i %{name} Utility PDA KDE Qt
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README TODO
%{_bindir}/synce-kpm
%{python_sitelib}/synce_kpm-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/synceKPM
%{_datadir}/pixmaps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%changelog