pkubat / rpms / pgRouting

Forked from rpms/pgRouting 5 years ago
Clone
Blob Blame History Raw
Name:		pgRouting
Version:	2.2.3
Release:	6%{?dist}
Summary:	Provides routing functionality to PostGIS/PostgreSQL
Group:		Applications/Databases
License:	GPLv2+
URL:		http://pgrouting.org
Source0:	https://github.com/pgRouting/pgrouting/archive/pgrouting-%{version}.tar.gz

# https://github.com/pgRouting/pgrouting/issues/576
Patch0:		%{name}-2.2.3-math.patch

# https://github.com/pgRouting/pgrouting/pull/654
# undefined symbol: __throw_bad_alloc on installing the extension
Patch1:		%{name}-2.2.3-externC.patch

BuildRequires:	boost-devel
BuildRequires:	boost-graph
BuildRequires:	boost-thread
BuildRequires:	CGAL-devel
BuildRequires:	cmake
BuildRequires:	gmp-devel
BuildRequires:	postgresql-devel
BuildRequires:	proj-devel
BuildRequires:	perl(Data::Dumper)

Requires:	postgis
# Postgis possibly should require postgresql-server already. But because we
# provide a PostgreSQL plugin, we need to rebuild for any major PostgreSQL server
# update (e.g. from 9.4 to 9.5). This guards against incompatible
# postgresql-server updates in future.

# Quite the only component of postgis that would serve a purpose without the
# server on the same machine, is the shape loader. Suse requires postgresql-
# server on postgis and seemingly got no complaints
Requires:	postgresql-server(:MODULE_COMPAT_%{postgresql_major})


%global _privatelibs librouting.*\.so.*
%global __provides_exclude ^(%{_privatelibs})$

%description
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide
geospatial routing functionality.


%prep
%setup -qn pgrouting-pgrouting-%{version}
%patch0 -p1
%patch1 -p1


%build
install -d build
cd build
%cmake ..

make VERBOSE=1 %{?_smp_mflags}


%install
make -C build install DESTDIR=%{buildroot}


%files
%doc README.md COPYING
%{_libdir}/pgsql/*.so
%{_datadir}/pgsql/extension/*

%changelog
* Mon Oct 10 2016 Pavel Raiskup <praiskup@redhat.com> - 2.2.3-6
- bump: build in rawhide done too early

* Mon Oct 10 2016 Petr Kubat <pkubat@redhat.com> - 2.2.3-5
- Rebuild for PostgreSQL 9.6.0

* Mon Sep 26 2016 volker27@gmx.at - 2.2.3-4
- Rebuild for cgal

* Sat Jul 30 2016 Volker Froehlich <volker27@gmx.at> - 2.2.3-3
- Solve __throw_bad_alloc on creating the extension
  Thank you, Jonathan Wakely
- Remove obsolete build option

* Thu Jul 28 2016 Volker Froehlich <volker27@gmx.at> - 2.2.3-2
- Fix the build: https://github.com/pgRouting/pgrouting/issues/576

* Mon May 16 2016 Volker Froehlich <volker27@gmx.at> - 2.2.3-1
- New release

* Thu Apr 28 2016 Volker Froehlich <volker27@gmx.at> - 2.2.2-1
- New release

* Tue Apr 19 2016 Volker Froehlich <volker27@gmx.at> - 2.2.1-1
- New release

* Sun Apr 10 2016 Volker Froehlich <volker27@gmx.at> - 2.2.0-1
- New release

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Sat Jan 16 2016 Jonathan Wakely <jwakely@redhat.com> - 2.1.0-3
- Rebuilt for Boost 1.60

* Fri Jan 08 2016 Pavel Kajaba <pkajaba@redhat.com> - 2.1.0-2
- Rebuild for PostgreSQL 9.5 (rhbz#1296584)

* Fri Sep 18 2015 Volker Froehlich <volker27@gmx.at> - 2.1.0-1
- New release
- Update source URL and add BR for Perl data dumper module

* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 2.0.0-12
- Rebuilt for Boost 1.59

* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-11
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159

* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 2.0.0-10
- rebuild for Boost 1.58

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.0.0-8
- Rebuilt for GCC 5 C++11 ABI change

* Sun Mar 01 2015 Volker Froehlich <volker27@gmx.at> - 2.0.0-7
- Rebuild for cgal 4.6

* Sat Feb 14 2015 Volker Fröhlich <volker27@gmx.at> - 2.0.0-6
- Require a specific major version for postgresql-server (BZ#1181158)

* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 2.0.0-5
- Rebuild for boost 1.57.0

* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 2.0.0-2
- rebuild for boost 1.55.0

* Sat Sep 28 2013 Volker Fröhlich <volker27@gmx.at> - 2.0.0-1
- New upstream release; drop all patches
- New license is GPLv2+
- New source URL
- Filter private provides
- Add dependency on postgresql-server

* Fri Sep 13 2013 Volker Fröhlich <volker27@gmx.at> - 1.05-7
- Rebuild for PostgreSQL 9.3

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 1.05-5
- Rebuild for boost 1.54.0

* Sun Mar 31 2013 Volker Fröhlich <volker27@gmx.at> - 1.05-4
- Link to gmp
- Move most stuff from prep section to patches
- Solve FTBFS (BZ #914327), due to upstream issue 77
- Solve upstream bug 35, issue with NULL geometries

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Fri Oct 26 2012 Volker Fröhlich <volker27@gmx.at> - 1.05-2
- Rebuild for new soname version in CGAL 4.1

* Wed Aug 15 2012 Volker Fröhlich <volker27@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@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.