1985a7
Name:           python-wifi
152a1a
Version:        0.5.0
61a436
Release:        20%{?dist}
1985a7
Summary:        Python binding for the wireless extensions
1985a7
589bb2
#python-wifi is licensed under LGPLv2+, however, the examples
589bb2
#(e.g. iwconfig.py and iwlist.py) are licensed under GPLv2+
589bb2
License:        LGPLv2+ and GPLv2+
1985a7
URL:            https://developer.berlios.de/projects/pythonwifi/
589bb2
Source0:        http://download.berlios.de/pythonwifi/%{name}-%{version}.tar.bz2
1985a7
BuildArch:      noarch
1985a7
287071
BuildRequires:  python2-devel
c204f6
BuildRequires:  python2-setuptools
1985a7
30cfea
%global _description\
30cfea
Python-Wifi is a Python library that provides access to information about a\
1985a7
W-LAN card's capabilities, like the wireless extensions written in C.
1985a7
30cfea
%description %_description
30cfea
30cfea
%package -n python2-wifi
30cfea
Summary: %summary
30cfea
%{?python_provide:%python_provide python2-wifi}
30cfea
30cfea
%description -n python2-wifi %_description
30cfea
1985a7
%prep
1985a7
%setup -q
589bb2
#Remove shebang
589bb2
sed -i -e '/^#!\//, 1d' {tests/output_diff.sh,examples/*.py}
589bb2
#Fix permissions
589bb2
chmod -x {tests/output_diff.sh,examples/*.py}
589bb2
# Convert to utf-8
589bb2
for file in docs/AUTHORS; do
589bb2
    mv $file timestamp
589bb2
    iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp
589bb2
    touch -r timestamp $file
589bb2
done
ee3c26
rm -rf python_wifi.egg-info
1985a7
1985a7
%build
7cfe5f
%py2_build
1985a7
1985a7
%install
277e5b
%py2_install
287071
# Delete the doc files, wrong location
589bb2
rm %{buildroot}/usr/{INSTALL,README}
ed5e23
rm -rf %{buildroot}/usr/docs/
ed5e23
rm -rf %{buildroot}/usr/examples/
287071
# Move the man pages
589bb2
mkdir -p %{buildroot}%{_mandir}/man8/
589bb2
mv %{buildroot}/usr/man/man8/iw*  %{buildroot}%{_mandir}/man8/
1985a7
30cfea
%files -n python2-wifi
9c04a8
%doc README docs/AUTHORS docs/BUGS docs/ChangeLog docs/LICENSE* docs/DEVEL.txt 
9c04a8
%doc docs/TODO docs/ROADMAP docs/NEWS 
ed5e23
%doc examples/*.py* tests
589bb2
%{_mandir}/man*/iw*.*
0a93b8
%{python2_sitelib}/pythonwifi/
0a93b8
%{python2_sitelib}/python_wifi*.egg-info
1985a7
1985a7
%changelog
61a436
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-20
61a436
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
61a436
db0820
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-19
db0820
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
db0820
c38672
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-18
c38672
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c38672
c204f6
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.5.0-17
c204f6
- Update Python 2 dependency declarations to new packaging standards
c204f6
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
c204f6
30cfea
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.0-16
30cfea
- Python 2 binary package renamed to python2-wifi
30cfea
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
30cfea
621894
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-15
621894
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
621894
55da50
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-14
55da50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
55da50
0f1609
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-13
0f1609
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0f1609
c9651f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-12
c9651f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c9651f
ebdaea
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-11
ebdaea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ebdaea
c43d74
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-10
c43d74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c43d74
287071
* Mon Aug 05 2013 Fabian Affolter <mail@fabian-affolter.ch> - 0.5.0-9
287071
- Spec file updates
287071
- Fix FTBFS (#993182)
287071
6b8336
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-8
6b8336
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6b8336
ca5c2f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-7
ca5c2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ca5c2f
7e2c15
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-6
7e2c15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7e2c15
3ac4e5
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-5
3ac4e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3ac4e5
6dd206
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-4
6dd206
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6dd206
ff0c8b
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.5.0-3
ff0c8b
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
ff0c8b
287071
* Thu Dec 24 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.5.0-2
fb1c96
- Updated the convert to utf-8 part
fb1c96
- Fixed permissions
589bb2
- Added license for examples
589bb2
- Fixed tarball URL
589bb2
- Added man pages
589bb2
287071
* Wed Dec 23 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.5.0-1
152a1a
- Updated docs
152a1a
- Updated BR
152a1a
- Updated to new upstream version 0.5.0
152a1a
b192a7
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-3
b192a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b192a7
287071
* Wed Feb 18 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.1-2
1985a7
- Changes acc. to bug #478300
1985a7
287071
* Sat Dec 27 2008 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.1-1
1985a7
- Initial spec for Fedora