From 4d3bbafdb4da02c65358243ee921420bd7ea4cf02a02700e8bd4eb10dbca6d11 Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Wed, 18 Apr 2012 11:19:12 +0000 Subject: [PATCH] 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 --- .gitattributes | 24 ++++++++++++++++++ .gitignore | 4 +++ pyproj-285.tar.bz2 | 3 +++ python-pyproj.changes | 5 ++++ python-pyproj.spec | 59 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 95 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pyproj-285.tar.bz2 create mode 100644 python-pyproj.changes create mode 100644 python-pyproj.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/pyproj-285.tar.bz2 b/pyproj-285.tar.bz2 new file mode 100644 index 0000000..ff931a6 --- /dev/null +++ b/pyproj-285.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68faa40d261c7acd05348570f4037c063d70b0bdb6bc278dc35d1f922bf03771 +size 2331952 diff --git a/python-pyproj.changes b/python-pyproj.changes new file mode 100644 index 0000000..0cb10c6 --- /dev/null +++ b/python-pyproj.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Feb 11 22:22:02 UTC 2012 - ocefpaf@gmail.com + +- first openSuse release 1.9.0 + diff --git a/python-pyproj.spec b/python-pyproj.spec new file mode 100644 index 0000000..7deae76 --- /dev/null +++ b/python-pyproj.spec @@ -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