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