[pgRouting] Revived with version 1.05
Volker Fröhlich
volter at fedoraproject.org
Sun Aug 19 20:44:21 UTC 2012
commit 9a86c89082b6d1d0e5db3b8f285a0e840c1fde63
Author: Volker Fröhlich <volker27 at gmx.at>
Date: Sun Aug 19 22:43:54 2012 +0200
Revived with version 1.05
.gitignore | 1 +
dead.package | 1 -
pgRouting.spec | 135 ++++++++++++++++++++++++++++++++++++++++++++
pgrouting-1.05-flags.patch | 13 ++++
sources | 1 +
5 files changed, 150 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..01177fd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pgrouting-1.05.tar.gz
diff --git a/pgRouting.spec b/pgRouting.spec
new file mode 100644
index 0000000..f03f000
--- /dev/null
+++ b/pgRouting.spec
@@ -0,0 +1,135 @@
+# Downstream ELGIS has gaul
+%global with_gaul 0
+
+%global tarname pgrouting
+
+Name: pgRouting
+Version: 1.05
+Release: 1%{?dist}
+Summary: Provides routing functionality to PostGIS/PostgreSQL
+Group: Applications/Databases
+
+# shooting_star* are under the latter license
+License: GPLv2+ and Boost
+URL: http://pgrouting.org
+Source0: http://download.osgeo.org/%{tarname}/source/%{tarname}-%{version}.tar.gz
+
+# Removes the preset CFLAGS and CXXFLAGS
+# https://github.com/pgRouting/pgrouting/issues/64
+Patch1: %{tarname}-1.05-flags.patch
+
+BuildRequires: boost-devel
+BuildRequires: CGAL-devel
+BuildRequires: cmake
+BuildRequires: postgresql-devel
+BuildRequires: proj-devel
+
+%if 0%{with_gaul}
+BuildRequires: gaul-devel
+%endif
+
+Requires: postgis
+
+%description
+pgRouting extends the PostGIS / PostgreSQL geospatial database to provide
+geospatial routing functionality.
+
+It provides functions for:
+
+- Shortest Path Dijkstra: routing algorithm without heuristics
+- Shortest Path A-Star: routing for large datasets (with heuristics)
+- Shortest Path Shooting-Star: routing with turn restrictions (with heuristics)
+%if 0%{with_gaul}
+- Traveling Salesperson Problem (TSP)
+%endif
+- Driving Distance calculation (Isolines)
+
+
+%prep
+%setup -qn %{tarname}-%{version}
+%patch1 -p1 -b .flags~
+
+# Correct FSF address
+# https://github.com/pgRouting/pgrouting/issues/63
+# Corrected for 2.0
+find . \( -name *.cpp -o -name *.c -o -name *.h -o -name *.sql \) -print | xargs -i \
+ sed -i 's/59 Temple Place\(, \| - \)Suite 330/51 Franklin Street, Fifth Floor/;s/02111-1307/02110-1301/' {}
+
+# Fix boost property_map files path
+# Corrected for releases after 1.05
+sed -i "s|boost/vector_property_map.hpp|boost/property_map/vector_property_map.hpp|" \
+ core/src/shooting_star_boost_wrapper.cpp
+
+sed -i "s|boost/property_map.hpp|boost/property_map/property_map.hpp|" \
+ core/src/shooting_star_relax.hpp \
+ core/src/edge_visitors.hpp
+
+# https://github.com/pgRouting/pgrouting/issues/45
+# fix to avoid deprecated "boost/graph/detail/is_same.hpp" file
+sed -i "s|boost/graph/detail/is_same.hpp|boost/type_traits/is_same.hpp|" core/src/edge_visitors.hpp
+
+
+%build
+# This is a custom flag, hardcoded and removed by patch1
+export CFLAGS=$CFLAGS" -frounding-math"
+export CXXLAGS=$CXXFLAGS" -frounding-math"
+install -d build
+cd build
+
+# TSP requires libgaul http://sourceforge.net/projects/gaul
+# Last update there was in 2006 and we don't have a package
+%cmake .. \
+ -DWITH_DD=ON \
+%if 0%{with_gaul}
+ -DWITH_TSP=ON
+%endif
+
+make VERBOSE=1 %{?_smp_mflags}
+
+
+%install
+make -C build install DESTDIR=%{buildroot}
+
+
+%files
+%doc README.routing COPYING authors.txt BOOST_LICENSE_1_0.txt RELEASE_NOTES
+%{_libdir}/pgsql/*.so
+%{_datadir}/postlbs
+
+%changelog
+* Wed Aug 15 2012 Volker Fröhlich <volker27 at gmx.at> - 1.05-1
+- Update to 1.05
+- Update URL
+- Update description
+- Correct FSF address
+- Retire patch0
+- Introduce macros with_gaul and tarname; create conditionals based on the first
+- Update flags patch and manually add custom flag
+- Replace make macros with the command
+- Remove unnecessary BR geos-devel
+- Remove unnecessary R postgresql; Postgis takes care of that
+- Drop rm for buildroot before install
+- Drop ldconfig, because libs are in sub-directory
+- Drop version requirements in BRs and Requires.
+ All shipped versions are new enough in Fedora
+- Enable DD option and added BR CGAL-devel
+- Simplify attr and drop defattr in files section
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.03-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Sun Nov 14 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.03-3
+- Fixed patch naming conventions.
+- Added backup option for files being patched with suffix.
+- Changed the package name from postgresql-pgrouting to pgRouting
+
+* Sun Nov 14 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.03-2
+- Changed the license to GPLv2+ and Boost.
+- Removed the override of CMAKE_INSTALL_PREFIX.
+- Removed test for %%{?_lib}.
+- Added VERBOSE=1 and %%{?_smp_mflags} for make.
+- Patch for removing the preset CFLAGS.
+- Removed gcc-c++ from BuildRequires.
+
+* Thu Nov 11 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 1.03-1
+- Initial import.
diff --git a/pgrouting-1.05-flags.patch b/pgrouting-1.05-flags.patch
new file mode 100644
index 0000000..7b841f8
--- /dev/null
+++ b/pgrouting-1.05-flags.patch
@@ -0,0 +1,13 @@
+--- pgrouting-1.05/CMakeLists.txt 2010-11-17 03:42:21.000000000 +0100
++++ pgrouting-1.05-flags/CMakeLists.txt 2011-03-08 19:13:48.752826398 +0100
+@@ -85,8 +85,8 @@
+ LINK_LIBRARIES(postgres)
+ ENDIF(WIN32)
+
+-SET(CMAKE_C_FLAGS "-O2 -g -frounding-math")
+-SET(CMAKE_CXX_FLAGS "-O2 -g -frounding-math")
++SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -frounding-math")
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -frounding-math")
+
+ # Recurse into the subdirectories. This does not actually
+ # cause another cmake executable to run. The same process will walk through
diff --git a/sources b/sources
new file mode 100644
index 0000000..81ded45
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+bd7c106e3db3c38f7081f1ee9b0e12ae pgrouting-1.05.tar.gz
More information about the scm-commits
mailing list