File googlemapsplugin.spec of Package GoogleMapsPlugin

%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%define _prefix /opt/baltrad/%{name}
Name:		GoogleMapsPlugin
Version:	0.0.29
Release:	1%{?dist}
Summary:	Google Map plugin for Baltrad
Group:		Development/Libraries
License:	LGPL
URL:		http://www.baltrad.eu/
Source0:	GoogleMapPlugin.tar.gz
Patch0:		0001-Prefix-to-copying.patch
BuildArch:	noarch
BuildRequires:	python2-devel
BuildRequires:  python-distribute
BuildRequires:	hlhdf-python
BuildRequires: 	rave
BuildRequires:	rave-devel
Requires:	python2
Requires:	hlhdf-python
Requires:	hlhdf
Requires:	rave
Requires:	httpd
Requires:   php
Requires:   php-common
%description

%clean
rm -rf %{buildroot}


%prep
%setup -q -n %{name}
%patch0 -p1

%build
mkdir -p %{buildroot}%{_prefix}
mkdir -p %{buildroot}%{python_sitelib}
%{__python} setup.py install --prefix=%{buildroot}%{_prefix}

%files
%doc %{_prefix}/rave_gmap/COPYING
%doc %{_prefix}/rave_gmap/COPYING.LESSER
%doc %{_prefix}/rave_gmap/LICENSE
%doc %{_prefix}/rave_gmap/README
%doc %{_prefix}/rave_gmap/README.ravepgf
%doc %{_prefix}/rave_gmap/README2
%{python_sitelib}/rave_gmap.pth
%{_prefix}/rave_gmap/web/*
%{_prefix}/rave_gmap/Lib/*


%changelog