File pywireless.spec of Package pywireless
# norootforbuild
Name: pywireless
Version: 3.3
Release: 0
Summary: Wireless Connection Monitor
Source: http://www.kde-apps.org/CONTENT/content-files/28637-PyWireless-%{version}.tar.gz
Source1: pywireless.desktop
Source2: pywireless.png
Patch1: pywireless-version.diff
URL: http://kde-apps.org/content/show.php?content=28637
Group: Hardware/Other
License: GNU General Public License (GPL)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%if %suse_version >= 1030
Requires: python-kde3
%else
Requires: kdebindings3-python
%endif
BuildRequires: make python gettext gettext-devel
BuildRequires: autoconf automake libtool update-desktop-files
BuildArch: noarch
Obsoletes: PyWireless
Provides: PyWireless = %{version}-%{release}
%py_requires
%description
PyWireless is a basic wireless connection monitor with DCOP support.
%prep
%setup -q -n "PyWireless-%{version}"
%build
%__make
%install
%__install -D -m 0755 PyWireless.py "%{buildroot}%{_bindir}/PyWireless.py"
%__ln_s PyWireless.py "%{buildroot}%{_bindir}/pywireless"
for f in po/*/*.po; do
l=${f##*/}
%__install -d "%{buildroot}%{_datadir}/locale/${l%%.*}/LC_MESSAGES"
msgfmt "$f" -o "%{buildroot}%{_datadir}/locale/${l%%.*}/LC_MESSAGES/PyWireless.mo"
done
%__install -d "%{buildroot}%{_datadir}/PyWireless"
%__install -m 0644 images/*.png "%{buildroot}%{_datadir}/PyWireless/"
%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%__install -D -m 0644 "%{SOURCE2}" "%{buildroot}%{_datadir}/pixmaps/%{name}.png"
%suse_update_desktop_file -r "%{name}" System Network
%find_lang PyWireless
%clean
%__rm -rf "%{buildroot}"
%files -f "PyWireless.lang"
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_bindir}/pywireless
%{_bindir}/PyWireless.py
%{_datadir}/PyWireless
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog
* Tue Dec 25 2007 Pascal Bleser <guru@unixtech.be> 3.3
- moved to openSUSE Build Service
* Sun Nov 26 2006 Pascal Bleser <guru@unixtech.be> 3.3-1
- new upstream version
* Tue Jan 17 2006 Pascal Bleser <guru@unixtech.be> 3.2-2
- added patch to display correct version information
* Mon Jan 16 2006 Pascal Bleser <guru@unixtech.be> 3.2-1
- use find_lang macro
- removed debuginfo
- new upstream version
* Sat Dec 10 2005 Pascal Bleser <guru@unixtech.be> 3.0-1
- new upstream version
* Sat Sep 3 2005 Pascal Bleser <guru@unixtech.be> 2.0-1
- new package
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: