188 lines
6.1 KiB
RPMSpec
188 lines
6.1 KiB
RPMSpec
Name: wpa_supplicant
|
|
Version: 2.1
|
|
Release: 1mamba
|
|
Summary: WPA/WPA2/IEEE 802.1x Supplicant
|
|
Group: Network/Security
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://hostap.epitest.fi/wpa_supplicant
|
|
Source: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
|
|
Source1: wpa_supplicant.conf
|
|
Patch1: %{name}-0.7.3-defconfig_enable_dbus.patch
|
|
Patch2: %{name}-0.7.3-dbus_service_fix_path.patch
|
|
Patch3: %{name}-0.7.3-emit_property_changed_events_when_BSSs_property_changed.patch
|
|
Patch4: %{name}-0.7.3-enable_NL80211.patch
|
|
Patch5: %{name}-1.0-gcc-4.7.patch
|
|
Patch6: wpa_supplicant-1.0-wpagui-getopt.patch.patch
|
|
Patch7: wpa_supplicant-1.0-gcc-4.7.patch
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libdbus-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libnl1-devel
|
|
BuildRequires: libopenssl-devel
|
|
%if "%{stage1}" != "1"
|
|
BuildRequires: libqt4-devel
|
|
%endif
|
|
BuildRequires: libstdc++6-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with support for WPA and WPA2.
|
|
|
|
%package gui
|
|
Summary: QT4 GUI for %{name}
|
|
Group: Graphical Desktop/Applications/Networking
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description gui
|
|
wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with support for WPA and WPA2.
|
|
|
|
This package contains the QT4 GUI.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
#%patch2 -p1
|
|
#%patch3 -p1
|
|
#%patch4 -p1
|
|
#%patch5 -p1
|
|
#%patch6 -p1
|
|
%patch7 -p1
|
|
|
|
%build
|
|
cd wpa_supplicant
|
|
cp defconfig .config
|
|
%make BINDIR=/sbin CC=%{_host}-gcc \
|
|
%if "%{_host}" != "%{_build}"
|
|
LDFLAGS="-ldl"
|
|
%endif
|
|
|
|
%if "%{stage1}" != "1"
|
|
#% make wpa_gui UIC=uic
|
|
cd wpa_gui-qt4
|
|
qmake-qt4
|
|
%make UIC=uic-qt4
|
|
cd ..
|
|
%make -C doc/docbook man
|
|
%endif
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
cd wpa_supplicant
|
|
%makeinstall BINDIR=/sbin LIBDIR=%{_libdir}
|
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/wpa_supplicant.conf
|
|
install -D -m0644 dbus/fi.epitest.hostap.WPASupplicant.service \
|
|
%{buildroot}%{_datadir}/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service
|
|
install -D -m0644 dbus/fi.w1.wpa_supplicant1.service \
|
|
%{buildroot}%{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service
|
|
install -D -m0644 dbus/dbus-wpa_supplicant.conf \
|
|
%{buildroot}%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf
|
|
install -d %{buildroot}%{_mandir}/{man5,man8}
|
|
install doc/docbook/*.5 %{buildroot}%{_mandir}/man5/
|
|
install doc/docbook/*.8 %{buildroot}%{_mandir}/man8/
|
|
%if "%{stage1}" != "1"
|
|
install -D -m0755 wpa_gui-qt4/wpa_gui %{buildroot}%{_bindir}/wpa_gui
|
|
install -D -m0644 wpa_gui-qt4/wpa_gui.desktop %{buildroot}%{_datadir}/applications/wpa_gui.desktop
|
|
install -D -m0644 wpa_gui-qt4/icons/wpa_gui.svg %{buildroot}%{_datadir}/pixmaps/wpa_gui.svg
|
|
%endif
|
|
# systemd service
|
|
install -d -m0755 %{buildroot}/lib/systemd/system
|
|
cp -a systemd/*.service %{buildroot}/lib/systemd/system/
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
%post
|
|
if [ "$1" -ge 1 ]; then
|
|
grep "country=" /etc/wpa_supplicant.conf >/dev/null || {
|
|
COUNTRY=`echo $LANG | sed "s|.*_\([A-Z]*\).*|\1|"`
|
|
[ "$COUNTRY" ] && echo "country=$COUNTRY" >> /etc/wpa_supplicant.conf
|
|
}
|
|
fi
|
|
:
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%config(noreplace) %{_sysconfdir}/wpa_supplicant.conf
|
|
%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf
|
|
/sbin/wpa_cli
|
|
/sbin/wpa_passphrase
|
|
/sbin/wpa_supplicant
|
|
/lib/systemd/system/wpa_supplicant-nl80211@.service
|
|
/lib/systemd/system/wpa_supplicant-wired@.service
|
|
/lib/systemd/system/wpa_supplicant.service
|
|
/lib/systemd/system/wpa_supplicant@.service
|
|
%{_datadir}/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service
|
|
%{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service
|
|
%{_mandir}/man5/*.gz
|
|
%{_mandir}/man8/*.gz
|
|
%doc COPYING
|
|
#%doc wpa_supplicant/ChangeLog README
|
|
|
|
%if "%{stage1}" != "1"
|
|
%files gui
|
|
%defattr(-,root,root)
|
|
%{_bindir}/wpa_gui
|
|
%{_datadir}/applications/wpa_gui.desktop
|
|
%{_datadir}/pixmaps/wpa_gui.svg
|
|
%endif
|
|
|
|
%changelog
|
|
* Wed Feb 12 2014 Automatic Build System <autodist@mambasoft.it> 2.1-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Tue Mar 19 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0-2mamba
|
|
- rebuilt with systemd support
|
|
|
|
* Mon Jan 14 2013 Automatic Build System <autodist@mambasoft.it> 2.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Nov 21 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-2mamba
|
|
- pass BINDIR to make to fix wpa_supplicant path in dbus service files
|
|
|
|
* Tue Nov 20 2012 Automatic Build System <autodist@mambasoft.it> 1.0-1mamba
|
|
- update to 1.0
|
|
|
|
* Mon Apr 30 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.3-4mamba
|
|
- set country in /etc/wpa_supplicant.conf from LANG
|
|
|
|
* Sun Sep 18 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.3-3mamba
|
|
- install binaries in %{_sbin} directory as required by dbus service file
|
|
- enable nl80211 driver required by NetworkManager >= 0.9
|
|
|
|
* Thu Dec 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.3-2mamba
|
|
- rebuilt with dBus interface support for NetworkManager
|
|
|
|
* Wed Sep 15 2010 Automatic Build System <autodist@mambasoft.it> 0.7.3-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri Jun 25 2010 Automatic Build System <autodist@mambasoft.it> 0.7.2-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Mon Jan 18 2010 Automatic Build System <autodist@mambasoft.it> 0.7.1-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri Jun 26 2009 Automatic Build System <autodist@mambasoft.it> 0.6.9-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Mon Jan 26 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.7-2mamba
|
|
- build QT4 gui
|
|
- added default configuration /etc/wpa_supplicant.conf
|
|
|
|
* Mon Jan 19 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.7-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sun Apr 13 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.10-1mamba
|
|
- update to 0.5.10
|
|
- added installation of man pages
|
|
|
|
* Mon Jul 16 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.8-1mamba
|
|
- update to 0.5.8
|
|
|
|
* Tue Nov 08 2005 Marco Poet <marco.poet@qinet.it> 0.4.6-1qilnx
|
|
- package created by autospec
|