Blob Blame History Raw
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")

Summary: Coded METAR weather reports parser for Python
Name: python-metar
Version: 1.3.0
Release: 2%{?dist}
License: MIT
Group: Development/Languages
URL: http://homepage.mac.com/wtpollard/Software/FileSharing4.html
# I don't think this source URL could get more complicated... and breaks mach
#Source: http://homepage.mac.com/WebObjects/FileSharing.woa/wa/metar-1.3.0.tar.gz.3.0.tar.gz?a=downloadFile&user=wtpollard&path=.Public/Downloads/metar-%{version}.tar.gz
Source: metar-%{version}.tar.gz
Patch0: metar-1.3.0-nobang.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: python-devel
BuildArch: noarch

%description
Python package that parses coded METAR weather reports.


%prep
%setup -q -n metar-%{version}
%patch0 -p1 -b .nobang


%build
%{__python} setup.py build


%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install --skip-build --root %{buildroot}


%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc CHANGES README TODO
%{python_sitelib}/metar/


%changelog
* Tue Mar 27 2007 Matthias Saou <http://freshrpms.net/> 1.3.0-2
- Include nobang patch.

* Fri Feb  9 2007 Matthias Saou <http://freshrpms.net/> 1.3.0-1
- Initial RPM release.