File umtsmon.spec of Package umtsmon
#
# spec file for package umtsmon (Version 0.9.72.20090509)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: umtsmon
BuildRequires: libusb-devel qt3-devel
%if 0%{?suse_version} > 0
# not there on mandriva and fedora...
BuildRequires: qt3-devel-tools update-desktop-files
%endif
%if %{defined fedora_version}
BuildRequires: gcc-c++
%endif
%if 0%{?mandriva_version} > 2007
BuildRequires: libqt3-devel
%endif
Version: 0.9.72.20090509
Release: 2
%define DATE 20090509
Summary: Control/monitor your UMTS card
License: GPL v2 or later
Group: Hardware/Mobile
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://sourceforge.net/projects/umtsmon/
AutoReqProv: on
Source0: %name-%version.tar.bz2
Requires: ppp
%if ! %{defined fedora_version}
Suggests: usb_modeswitch ozerocdoff
%endif
%description
A program to control your UMTS (and GPRS/EDGE) card: enter SIM PIN
code, send and receive SMS and control/monitor the network connection.
Authors:
--------
Klaas van Gend
and others
%prep
%setup0 -n umtsmon
%build
# nothing sucks more than qmake!
PREFIX=usr qmake DEFINES="APPFLAVOUR='\"-%{DATE}\"'"
# PATH is needed, otherwise Mandriva won't find 'lrelease'
PATH=/usr/lib/qt3/bin:$PATH make
%install
make install INSTALL_ROOT=$RPM_BUILD_ROOT/
mkdir -p $RPM_BUILD_ROOT/usr/share/umtsmon/translations
cp i18n/*.qm $RPM_BUILD_ROOT/usr/share/umtsmon/translations
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
mv $RPM_BUILD_ROOT/usr/share/icons/hicolor/128x128/apps/umtsmon-128x128.png $RPM_BUILD_ROOT/usr/share/pixmaps
%if 0%{?suse_version} > 0
%suse_update_desktop_file -i -G "UMTS / 3G Card Manager" %name Network Dialup
%endif
%files
%defattr(-, root, root)
/usr/bin/*
%doc README TODO AUTHORS COPYING
/usr/share/umtsmon
/usr/share/applications/*
/usr/share/pixmaps/*
%clean
rm -rf %{buildroot}
%changelog