Python interface to Proj library OBS-URL: https://build.opensuse.org/request/show/114360 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-pyproj?expand=0&rev=1
60 lines
1.8 KiB
RPMSpec
60 lines
1.8 KiB
RPMSpec
%define revision 285
|
|
%define ver 1.9.0
|
|
%define pyname pyproj
|
|
|
|
Name: python-%{pyname}
|
|
Version: %{ver}.dev%{revision}
|
|
Release: 0
|
|
Summary: Python interface to PROJ.4 library
|
|
License: Public domain and MIT/X11
|
|
Url: http://pypi.python.org/pypi/pyproj/
|
|
Group: Productivity/Scientific/Other
|
|
Source0: %{pyname}-%{revision}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
#BuildArch: noarch
|
|
BuildRequires: python-devel
|
|
BuildRequires: fdupes
|
|
# python-distribute,
|
|
Requires: python-numpy
|
|
%{py_requires}
|
|
|
|
%description
|
|
Performs cartographic transformations and geodetic computations.
|
|
The Proj class can convert from geographic (longitude,latitude) to native map
|
|
projection (x,y) coordinates and vice versa, or from one map projection
|
|
coordinate system directly to another.
|
|
|
|
The Geod class can perform forward and inverse geodetic, or Great Circle,
|
|
computations. The forward computation involves determining latitude, longitude
|
|
and back azimuth of a terminus point given the latitude and longitude of an
|
|
initial point, plus azimuth and distance. The inverse computation involves
|
|
determining the forward and back azimuths and distance given the latitudes and
|
|
longitudes of an initial and terminus point.
|
|
|
|
Input coordinates can be given as python arrays, lists/tuples, scalars or
|
|
numpy/Numeric/numarray arrays. Optimized for objects that support the Python
|
|
buffer protocol (regular python and numpy array objects).
|
|
|
|
%prep
|
|
%setup -q -n %{pyname}
|
|
|
|
%build
|
|
%{__python} setup.py build
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot} \
|
|
--record-rpm=INSTALLED_FILES
|
|
|
|
%fdupes -s %{buildroot}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files -f INSTALLED_FILES
|
|
%defattr(-,root,root,-)
|
|
%doc README LICENSE_geographiclib LICENSE_proj4
|
|
|
|
%changelog
|