2007-01-15 23:41:30 +00:00
#
2011-09-01 13:15:22 +00:00
# spec file for package wpa_supplicant
2007-01-15 23:41:30 +00:00
#
2012-01-10 09:45:39 +00:00
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-01-15 23:41:30 +00:00
#
2008-09-02 10:16:58 +00:00
# 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.
2007-01-15 23:41:30 +00:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
2008-03-11 17:11:21 +00:00
2007-01-15 23:41:30 +00:00
Name : wpa_supplicant
2011-10-10 15:19:43 +00:00
BuildRequires : dbus-1-devel libqt4 libqt4-devel openssl-devel pkg-config readline-devel
%if 0%{?suse_version} > 1140
BuildRequires : libnl-1_1-devel
%else
BuildRequires : libnl-devel
%endif
2007-11-12 20:59:46 +00:00
Url : http://hostap.epitest.fi/wpa_supplicant/
2011-04-19 15:15:05 +00:00
Version : 0.7.3
2011-09-01 13:15:22 +00:00
Release : 6
2012-01-10 09:45:39 +00:00
License : BSD-3-Clause ; GPL-2.0+
2007-01-15 23:41:30 +00:00
Group : Productivity/Networking/Other
Summary : WPA supplicant implementation
Source : http://hostap.epitest.fi/releases/wpa_supplicant-%{version} .tar.bz2
Source1 : config
2007-11-14 13:55:48 +00:00
Source2 : %{name} .conf
Source3 : fi.epitest.hostap.WPASupplicant.service
2009-09-10 10:52:36 +00:00
Source4 : logrotate.wpa_supplicant
2011-04-19 15:15:05 +00:00
Source5 : fi.w1.wpa_supplicant1.service
2008-08-04 11:02:45 +00:00
Patch0 : wpa_supplicant-driver-wext-debug.patch
2009-05-06 16:55:20 +00:00
# wpa_supplicant-flush-debug-output.patch won't go upstream as it might
# change timings
2008-08-04 11:02:45 +00:00
Patch1 : wpa_supplicant-flush-debug-output.patch
2009-05-06 16:55:20 +00:00
# wpa_supplicant-sigusr1-changes-debuglevel.patch won't go upstream as it
# is not portable
2008-08-04 11:02:45 +00:00
Patch2 : wpa_supplicant-sigusr1-changes-debuglevel.patch
Patch4 : wpa_supplicant-errormsg.patch
2011-04-19 15:15:05 +00:00
# PATCH-FIX-UPSTREAM wpa_supplicant-dbus-events.patch dimstar@opensuse.org -- dbus: Emit property changed events when adding/removing BSSes, taken from git.
Patch5 : wpa_supplicant-dbus-events.patch
2012-01-10 09:45:39 +00:00
# PATCH-FIX-UPSTREAM wpa_supplicant-probed-cert-dbus-signal.patch bnc#574266 glin@suse.com -- emit a D-Bus signal when the AP returned the certificate of the RADIUS server
Patch6 : wpa_supplicant-probed-cert-dbus-signal.patch
2007-01-15 23:41:30 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2009-09-10 10:52:36 +00:00
Requires : logrotate
2007-01-15 23:41:30 +00:00
%description
wpa_supplicant is an implementation of the WPA Supplicant component,
i.e., the part that runs in the client stations. It implements key
negotiation with a WPA Authenticator and it controls the roaming and
IEEE 802.11 authentication/association of the wlan driver.
Authors:
--------
Jouni Malinen <jkmaline@cc.hut.fi>
%package gui
2012-01-10 09:45:39 +00:00
License : BSD-3-Clause ; GPL-2.0+
2007-01-15 23:41:30 +00:00
Summary : WPA supplicant graphical front-end
Requires : wpa_supplicant
Group : System/Monitoring
%description gui
This package contains a graphical front-end to wpa_supplicant, an
implementation of the WPA Supplicant component.
Authors:
--------
Jouni Malinen <jkmaline@cc.hut.fi>
%prep
2010-02-11 18:44:15 +00:00
%setup -q -n wpa_supplicant-%{version}
rm -rf wpa_supplicant-%{version} /patches
2008-08-04 11:02:45 +00:00
cp %{SOURCE1} wpa_supplicant/.config
2010-02-11 18:44:15 +00:00
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch4 -p0
2011-04-19 15:15:05 +00:00
%patch5 -p1
2012-01-10 09:45:39 +00:00
%patch6 -p1
2007-01-15 23:41:30 +00:00
%build
2008-08-04 11:02:45 +00:00
cd wpa_supplicant
2011-10-10 15:19:43 +00:00
CFLAGS=" $RPM_OPT_FLAGS " make V=1 %{?_smp_mflags}
2007-11-14 13:55:48 +00:00
cd wpa_gui-qt4
2011-10-10 15:19:43 +00:00
qmake QMAKE_CXXFLAGS=" $RPM_OPT_FLAGS " QMAKE_CFLAGS=" $RPM_OPT_FLAGS "
make %{?_smp_mflags}
2007-01-15 23:41:30 +00:00
%install
2007-11-14 13:55:48 +00:00
install -d %{buildroot} /%{_sbindir}
2008-08-04 11:02:45 +00:00
install -m 0755 wpa_supplicant/wpa_cli %{buildroot} %{_sbindir}
install -m 0755 wpa_supplicant/wpa_passphrase %{buildroot} %{_sbindir}
install -m 0755 wpa_supplicant/wpa_supplicant %{buildroot} %{_sbindir}
2007-11-14 13:55:48 +00:00
install -d %{buildroot} %{_sysconfdir} /dbus-1/system.d
2010-02-11 18:44:15 +00:00
install -m 0644 wpa_supplicant/dbus/dbus-wpa_supplicant.conf %{buildroot} %{_sysconfdir} /dbus-1/system.d/wpa_supplicant.conf
2007-11-14 13:55:48 +00:00
install -d %{buildroot} /%{_sysconfdir} /%{name}
install -m 0600 %{SOURCE2} %{buildroot} /%{_sysconfdir} /%{name}
install -d %{buildroot} /%{_datadir} /dbus-1/system-services
install -m 0644 %{SOURCE3} %{buildroot} /%{_datadir} /dbus-1/system-services
2011-04-19 15:15:05 +00:00
install -m 0644 %{SOURCE5} %{buildroot} /%{_datadir} /dbus-1/system-services
2009-09-10 10:52:36 +00:00
install -d %{buildroot} /%{_sysconfdir} /logrotate.d/
install -m 644 %{SOURCE4} %{buildroot} /%{_sysconfdir} /logrotate.d/wpa_supplicant
2007-11-14 13:55:48 +00:00
install -d %{buildroot} /%{_localstatedir} /run/%{name}
install -d %{buildroot} %{_mandir} /man{5,8}
2008-08-04 11:02:45 +00:00
install -m 0644 wpa_supplicant/doc/docbook/*.8 %{buildroot} %{_mandir} /man8
install -m 0644 wpa_supplicant/doc/docbook/*.5 %{buildroot} %{_mandir} /man5
install -m 755 wpa_supplicant/wpa_gui-qt4/wpa_gui %{buildroot} %{_sbindir}
2007-01-15 23:41:30 +00:00
%files
%defattr (-,root,root)
2010-02-11 18:44:15 +00:00
%doc wpa_supplicant/ChangeLog COPYING README wpa_supplicant/todo.txt wpa_supplicant/examples wpa_supplicant/wpa_supplicant.conf
2007-01-15 23:41:30 +00:00
%{_sbindir} /wpa_cli
%{_sbindir} /wpa_passphrase
%{_sbindir} /wpa_supplicant
2007-11-14 13:55:48 +00:00
%config %{_sysconfdir} /dbus-1/system.d/%{name} .conf
%{_datadir} /dbus-1/system-services
%config %{_sysconfdir} /%{name} /%{name} .conf
2009-09-10 10:52:36 +00:00
%config (noreplace) %{_sysconfdir} /logrotate.d/wpa_supplicant
2007-11-14 13:55:48 +00:00
%dir %{_localstatedir} /run/%{name}
2011-08-31 12:36:40 +00:00
%if 0%{?suse_version} > 1140
%ghost %{_localstatedir} /run/%{name}
%endif
2007-11-14 13:55:48 +00:00
%dir %{_sysconfdir} /%{name}
2008-03-17 18:02:04 +00:00
%doc %{_mandir} /man8/*
%doc %{_mandir} /man5/*
2007-01-15 23:41:30 +00:00
%files gui
%defattr (-,root,root)
/usr/sbin/wpa_gui
2007-12-19 00:08:58 +00:00
2007-03-13 00:07:10 +00:00
%changelog