Accepting request 114360 from home:tzotsos:python
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
This commit is contained in:
24
.gitattributes
vendored
Normal file
24
.gitattributes
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
*.changes merge=merge-changes
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
*.obscpio
|
||||
*.osc
|
||||
_build.*
|
||||
.pbuild
|
||||
3
pyproj-285.tar.bz2
Normal file
3
pyproj-285.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:68faa40d261c7acd05348570f4037c063d70b0bdb6bc278dc35d1f922bf03771
|
||||
size 2331952
|
||||
5
python-pyproj.changes
Normal file
5
python-pyproj.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 11 22:22:02 UTC 2012 - ocefpaf@gmail.com
|
||||
|
||||
- first openSuse release 1.9.0
|
||||
|
||||
59
python-pyproj.spec
Normal file
59
python-pyproj.spec
Normal file
@@ -0,0 +1,59 @@
|
||||
%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
|
||||
Reference in New Issue
Block a user