File kde3-kwlan.spec of Package kwlan

#
# spec file for package kwlan (Version 0.6.3)
#
# Copyright 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com>
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
#
# 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.
#

%define _prefix	/opt/kde3
%define rversion 0.6.3
%define rrelease 1.1
%define releasesuffix OS102DSB

Name:		kde3-kwlan
Version:	%{rversion}
Release:	5.15

Summary:	Wireless Lan Manager
Source:		kwlan-%{rversion}.tar.bz2
Patch0:		kwlan-kdelinkdir.diff
Patch1:         kwlan-%{version}-no-return-in-nonvoid-function.patch
%if %suse_version > 1140
Patch2:         wireless-tools-inline.patch
%endif
URL:		http://home.arcor.de/tom.michel
Group:		Productivity/Networking/System
License:	GPL-2.0
BuildRoot:	%{_tmppath}/build-%{name}-%{version}
BuildRequires:	autoconf automake libstdc++-devel
BuildRequires: 	kdelibs3-devel qt3-devel
BuildRequires: 	wireless-tools libtool
%if %suse_version >= 1120
BuildRequires: 	libiw-devel
%endif
Requires:	wpa_supplicant
Obsoletes:      kwlan <= %{version}


%description
Kwlan  is a simple gui to connect to various networks. It uses profiles to
define multiple networks per interface.

Profiles allow you to preconfigure dhcp, encryption and other settings. You can
configure profiles for your home network, your network at work and so on.

%prep
%setup -q -n "kwlan-%{rversion}"
%patch -P 0
%patch -P 1
%if %suse_version > 1140
%patch -P 2 -p1
%endif

%build
export CXXFLAGS="$CXXFLAGS -Wl,--add-needed"
%configure --with-qt-libraries=/usr/lib/qt3/%_lib

make

%install
%makeinstall

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README VERSION
/opt/kde3/bin/kwlan                       
/opt/kde3/share/applications/kde/kwlan.desktop
%dir /opt/kde3/share/apps/kwlan
/opt/kde3/share/apps/kwlan/*
/opt/kde3/share/icons/hicolor/22x22/apps/*.png
%dir /opt/kde3/share/icons/hicolor/22x22/apps/kwlan
/opt/kde3/share/icons/hicolor/22x22/apps/kwlan/*.png
%dir /opt/kde3/share/icons/hicolor/48x48/apps/kwlan
/opt/kde3/share/icons/hicolor/48x48/apps/kwlan/*.png
/opt/kde3/share/icons/hicolor/48x48/apps/*.png
%lang(ar) /opt/kde3/share/locale/ar/LC_MESSAGES/kwlan.mo
%lang(bg) /opt/kde3/share/locale/bg/LC_MESSAGES/kwlan.mo
%lang(br) /opt/kde3/share/locale/br/LC_MESSAGES/kwlan.mo
%lang(cs) /opt/kde3/share/locale/cs/LC_MESSAGES/kwlan.mo
%lang(da) /opt/kde3/share/locale/da/LC_MESSAGES/kwlan.mo
%lang(de) /opt/kde3/share/locale/de/LC_MESSAGES/kwlan.mo
%lang(el) /opt/kde3/share/locale/el/LC_MESSAGES/kwlan.mo
%lang(es) /opt/kde3/share/locale/es/LC_MESSAGES/kwlan.mo
%lang(et) /opt/kde3/share/locale/et/LC_MESSAGES/kwlan.mo
%lang(ga) /opt/kde3/share/locale/ga/LC_MESSAGES/kwlan.mo
%lang(it) /opt/kde3/share/locale/it/LC_MESSAGES/kwlan.mo
%lang(ja) /opt/kde3/share/locale/ja/LC_MESSAGES/kwlan.mo
%lang(nl) /opt/kde3/share/locale/nl/LC_MESSAGES/kwlan.mo
%lang(pt) /opt/kde3/share/locale/pt/LC_MESSAGES/kwlan.mo
%lang(sk) /opt/kde3/share/locale/sk/LC_MESSAGES/kwlan.mo
%lang(sr) /opt/kde3/share/locale/sr/LC_MESSAGES/kwlan.mo
%dir /opt/kde3/share/locale/sr@Latn
%dir /opt/kde3/share/locale/sr@Latn/LC_MESSAGES
%lang(sr) /opt/kde3/share/locale/sr@Latn/LC_MESSAGES/kwlan.mo
%lang(sv) /opt/kde3/share/locale/sv/LC_MESSAGES/kwlan.mo
%dir /opt/kde3/share/locale/br
%dir /opt/kde3/share/locale/br/LC_MESSAGES
%dir /opt/kde3/share/locale/ga
%dir /opt/kde3/share/locale/ga/LC_MESSAGES

%changelog
openSUSE Build Service is sponsored by