package init
This commit is contained in:
parent
7ef6540cd7
commit
a998b370dd
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# geos
|
||||
|
||||
#### Description
|
||||
GEOS is a C++ port of the Java Topology Suite.
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
||||
# geos
|
||||
|
||||
#### 介绍
|
||||
GEOS is a C++ port of the Java Topology Suite.
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
BIN
geos-3.6.1.tar.bz2
Normal file
BIN
geos-3.6.1.tar.bz2
Normal file
Binary file not shown.
10
geos-gcc43.patch
Normal file
10
geos-gcc43.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- tests/unit/geos_unit.cpp.old 2009-12-02 13:21:54.000000000 +0200
|
||||
+++ tests/unit/geos_unit.cpp 2009-12-02 13:22:12.000000000 +0200
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <tut_reporter.hpp>
|
||||
// geos
|
||||
#include <geos/unload.h>
|
||||
+#include <stdlib.h>
|
||||
// std
|
||||
#include <cstdlib>
|
||||
#include <iomanip>
|
||||
104
geos.spec
Normal file
104
geos.spec
Normal file
@ -0,0 +1,104 @@
|
||||
Name: geos
|
||||
Version: 3.6.1
|
||||
Release: 11
|
||||
Summary: GEOS is a C++ port of the Java Topology Suite
|
||||
License: LGPLv2
|
||||
URL: http://trac.osgeo.org/geos/
|
||||
Source0: http://download.osgeo.org/%{name}/%{name}-%{version}.tar.bz2
|
||||
#To add stdlib.h
|
||||
Patch0000: geos-gcc43.patch
|
||||
|
||||
BuildRequires: gcc gcc-c++ doxygen libtool python2-devel
|
||||
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
%description
|
||||
GEOS (Geometry Engine - Open Source) is a C++ port of the JTS Topology Suite (JTS).
|
||||
It aims to contain the complete functionality of JTS in C++. This includes all the
|
||||
OpenGIS Simple Features for SQL spatial predicate functions and spatial operators,
|
||||
as well as specific JTS enhanced functions. GEOS provides spatial functionality to
|
||||
many other projects and products.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for GEOS
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
GEOS (Geometry Engine - Open Source) is a C++ port of the JTS Topology Suite (JTS).
|
||||
It aims to contain the complete functionality of JTS in C++. This includes all the
|
||||
OpenGIS Simple Features for SQL spatial predicate functions and spatial operators,
|
||||
as well as specific JTS enhanced functions. GEOS provides spatial functionality to
|
||||
many other projects and products.
|
||||
|
||||
This package contains the development files to build applications that
|
||||
use GEOS.
|
||||
|
||||
%package -n python2-geos
|
||||
%{?python_provide:%python_provide python2-geos}
|
||||
Provides: %{name}-python = %{version}-%{release}
|
||||
Obsoletes: %{name}-python < %{version}-%{release}
|
||||
Summary: Python modules for GEOS
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildRequires: swig
|
||||
|
||||
%description -n python2-geos
|
||||
Python module to build applications using GEOS and python
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
sed -i -e 's|\/lib\/python|$libdir\/python|g' configure
|
||||
sed -i -e 's|.get_python_lib(0|.get_python_lib(1|g' configure
|
||||
sed -i -e 's|find \$i -name libpython|find \$i\/lib*\/ -name libpython|g' configure
|
||||
sed -i -e 's|= isnan(|= std::isnan(|g' configure
|
||||
sed -i -e 's|(isnan(|(std::isnan(|g' include/geos/platform.h.in
|
||||
|
||||
for makefile in `find . -type f -name 'Makefile.in'`; do
|
||||
sed -i 's|@LIBTOOL@|%{_bindir}/libtool|g' $makefile
|
||||
done
|
||||
|
||||
%configure --disable-static --disable-dependency-tracking --enable-python
|
||||
touch swig/python/geos_wrap.cxx
|
||||
|
||||
%make_build
|
||||
cd doc
|
||||
make doxygen-html
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%check
|
||||
make check || exit 0
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%doc AUTHORS COPYING NEWS README TODO
|
||||
%{_libdir}/libgeos-%{version}.so
|
||||
%{_libdir}/libgeos_c.so.1*
|
||||
%exclude %{_libdir}/*.a
|
||||
|
||||
%files devel
|
||||
%doc doc/doxygen_docs
|
||||
%{_bindir}/geos-config
|
||||
%{_includedir}/*
|
||||
%{_libdir}/libgeos.so
|
||||
%{_libdir}/libgeos_c.so
|
||||
%exclude %{_libdir}/*.la
|
||||
%exclude %{_libdir}/*.a
|
||||
|
||||
%files -n python2-geos
|
||||
%dir %{python2_sitearch}/%{name}
|
||||
%exclude %{python2_sitearch}/%{name}/_%{name}.a
|
||||
%exclude %{python2_sitearch}/%{name}/_%{name}.la
|
||||
%{python2_sitearch}/%{name}.pth
|
||||
%{python2_sitearch}/%{name}/*.py
|
||||
%{python2_sitearch}/%{name}/*.py?
|
||||
%{python2_sitearch}/%{name}/_%{name}.so
|
||||
|
||||
%changelog
|
||||
* Wed Mar 04 2020 yangjian<yangjian79@huawei.com> - 3.6.1-11
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user