rpms/pymetar/F-8 pymetar.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Matthias Saou (thias)
fedora-extras-commits at redhat.com
Tue Aug 12 17:35:16 UTC 2008
Author: thias
Update of /cvs/extras/rpms/pymetar/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18734/F-8
Modified Files:
.cvsignore sources
Added Files:
pymetar.spec
Log Message:
Initial import.
--- NEW FILE pymetar.spec ---
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
Summary: METAR weather reports parser for Python
Name: pymetar
Version: 0.13
Release: 1%{?dist}
License: GPLv2+
Group: Development/Libraries
URL: http://www.schwarzvogel.de/software-pymetar.shtml
Source: http://www.schwarzvogel.de/pkgs/pymetar-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: python-devel
BuildArch: noarch
%description
This library downloads the weather report for a given station ID, decodes it
and provides easy access to all the data found in the report.
%prep
%setup -q
# Convert file to UTF-8
for FILE in README; do
iconv -f iso8859-1 -t utf-8 -o tmp ${FILE}
touch -r ${FILE} tmp; mv -f tmp ${FILE}
done
%build
%{__python} setup.py build
%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install \
-O1 --skip-build --root %{buildroot}
# Rename the simple exacutable so that we don't get ugly .py* files in PATH
%{__mv} %{buildroot}%{_bindir}/weather.py \
%{buildroot}%{_bindir}/pyweather
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING README THANKS TODO librarydoc.txt bin/example.py
%{_bindir}/pyweather
%{python_sitelib}/*
%changelog
* Tue Jul 15 2008 Matthias Saou <http://freshrpms.net/> 0.13-1
- Initial RPM release.
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/pymetar/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 12 Aug 2008 17:12:38 -0000 1.1
+++ .cvsignore 12 Aug 2008 17:34:46 -0000 1.2
@@ -0,0 +1 @@
+pymetar-0.13.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/pymetar/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 12 Aug 2008 17:12:38 -0000 1.1
+++ sources 12 Aug 2008 17:34:46 -0000 1.2
@@ -0,0 +1 @@
+84b6737b101daf5647a60d0d93d7783a pymetar-0.13.tar.gz
More information about the fedora-extras-commits
mailing list