2012-11-13 16:13:41 +00:00
|
|
|
%{!?javabuild:%define javabuild 0}
|
2006-12-27 21:42:37 +00:00
|
|
|
%{!?utils:%define utils 1}
|
2012-11-13 16:13:41 +00:00
|
|
|
%{!?gcj_support:%define gcj_support 0}
|
2006-12-27 21:42:37 +00:00
|
|
|
|
2013-09-12 06:37:36 +00:00
|
|
|
%global majorversion 2.1
|
2010-01-21 18:37:39 +00:00
|
|
|
|
2012-11-13 15:42:35 +00:00
|
|
|
%global pg_version_minimum 9.2
|
2011-04-03 12:24:52 +00:00
|
|
|
%global pg_version_built %(if [ -x %{_bindir}/pg_config ]; then %{_bindir}/pg_config --version | /bin/sed 's,^PostgreSQL *,,gi'; else echo %{pg_version_minimum}; fi)
|
|
|
|
|
2006-12-27 21:42:37 +00:00
|
|
|
Summary: Geographic Information Systems Extensions to PostgreSQL
|
|
|
|
Name: postgis
|
2013-12-12 12:10:56 +00:00
|
|
|
Version: 2.1.1
|
|
|
|
Release: 1%{?dist}
|
2008-05-29 21:07:04 +00:00
|
|
|
License: GPLv2+
|
2006-12-27 21:42:37 +00:00
|
|
|
Group: Applications/Databases
|
2013-03-06 08:13:31 +00:00
|
|
|
Source0: http://download.osgeo.org/%{name}/source/%{name}-%{version}.tar.gz
|
|
|
|
Source2: http://download.osgeo.org/%{name}/docs/%{name}-%{version}.pdf
|
2006-12-27 21:42:37 +00:00
|
|
|
Source4: filter-requires-perl-Pg.sh
|
2011-04-03 12:23:04 +00:00
|
|
|
Patch0: postgis-1.5.1-pgsql9.patch
|
2013-03-06 08:13:31 +00:00
|
|
|
URL: http://www.postgis.org
|
2006-12-27 21:42:37 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2013-09-12 06:37:36 +00:00
|
|
|
BuildRequires: postgresql-devel >= %{pg_version_minimum}, proj-devel, geos-devel >= 3.4.2 byacc, proj-devel, flex, sinjdoc, java, java-devel, ant
|
2013-09-12 06:38:08 +00:00
|
|
|
BuildRequires: gtk2-devel, libxml2-devel, gdal-devel >= 1.10.0
|
|
|
|
Requires: postgresql >= %{pg_version_built}, geos >= 3.4.2, proj, gdal >= 1.10.0
|
2006-12-27 21:42:37 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
PostGIS adds support for geographic objects to the PostgreSQL object-relational
|
|
|
|
database. In effect, PostGIS "spatially enables" the PostgreSQL server,
|
|
|
|
allowing it to be used as a backend spatial database for geographic information
|
|
|
|
systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS
|
|
|
|
follows the OpenGIS "Simple Features Specification for SQL" and has been
|
|
|
|
certified as compliant with the "Types and Functions" profile.
|
|
|
|
|
2009-06-18 19:44:03 +00:00
|
|
|
%package docs
|
|
|
|
Summary: Extra documentation for PostGIS
|
|
|
|
Group: Applications/Databases
|
|
|
|
%description docs
|
|
|
|
The postgis-docs package includes PDF documentation of PostGIS.
|
|
|
|
|
2006-12-27 21:42:37 +00:00
|
|
|
%if %javabuild
|
|
|
|
%package jdbc
|
|
|
|
Summary: The JDBC driver for PostGIS
|
|
|
|
Group: Applications/Databases
|
2008-05-29 21:07:04 +00:00
|
|
|
License: LGPLv2+
|
2009-12-03 14:21:52 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}, postgresql-jdbc
|
2010-01-20 20:29:52 +00:00
|
|
|
BuildRequires: ant >= 0:1.6.2, junit >= 0:3.7, postgresql-jdbc
|
2006-12-27 21:42:37 +00:00
|
|
|
|
|
|
|
%if %{gcj_support}
|
|
|
|
BuildRequires: gcc-java
|
2009-04-24 09:13:04 +00:00
|
|
|
BuildRequires: java-1.5.0-gcj-devel
|
2008-01-05 11:12:07 +00:00
|
|
|
Requires(post): %{_bindir}/rebuild-gcj-db
|
|
|
|
Requires(postun): %{_bindir}/rebuild-gcj-db
|
2006-12-27 21:42:37 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description jdbc
|
|
|
|
The postgis-jdbc package provides the essential jdbc driver for PostGIS.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %utils
|
|
|
|
%package utils
|
|
|
|
Summary: The utils for PostGIS
|
|
|
|
Group: Applications/Databases
|
2009-12-03 14:21:52 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}, perl-DBD-Pg
|
2006-12-27 21:42:37 +00:00
|
|
|
|
|
|
|
%description utils
|
|
|
|
The postgis-utils package provides the utilities for PostGIS.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%define __perl_requires %{SOURCE4}
|
|
|
|
|
|
|
|
%prep
|
2010-02-04 19:39:59 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2011-04-03 12:23:04 +00:00
|
|
|
%patch0 -p1 -b .pgsql9
|
2009-06-18 19:44:03 +00:00
|
|
|
# Copy .pdf file to top directory before installing.
|
|
|
|
cp -p %{SOURCE2} .
|
2006-12-27 21:42:37 +00:00
|
|
|
|
|
|
|
%build
|
2013-09-12 06:37:36 +00:00
|
|
|
%configure --with-gui --enable-raster
|
2009-07-30 23:01:56 +00:00
|
|
|
#make %{?_smp_mflags} LPATH=`pg_config --pkglibdir` shlib="%{name}.so"
|
|
|
|
make LPATH=`pg_config --pkglibdir` shlib="%{name}.so"
|
2006-12-27 21:42:37 +00:00
|
|
|
|
|
|
|
%if %javabuild
|
2010-02-04 19:39:59 +00:00
|
|
|
export BUILDXML_DIR=%{_builddir}/%{name}-%{version}/java/jdbc
|
2007-01-03 01:14:05 +00:00
|
|
|
JDBC_VERSION_RPM=`rpm -ql postgresql-jdbc| grep 'jdbc2.jar$'|awk -F '/' '{print $5}'`
|
2008-01-05 11:12:07 +00:00
|
|
|
sed 's/postgresql.jar/'${JDBC_VERSION_RPM}'/g' $BUILDXML_DIR/build.xml > $BUILDXML_DIR/build.xml.new
|
|
|
|
mv -f $BUILDXML_DIR/build.xml.new $BUILDXML_DIR/build.xml
|
|
|
|
pushd java/jdbc
|
|
|
|
ant
|
|
|
|
popd
|
2006-12-27 21:42:37 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %utils
|
|
|
|
make -C utils
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make install DESTDIR=%{buildroot}
|
2013-09-12 08:12:27 +00:00
|
|
|
make -C utils install DESTDIR=%{buildroot}
|
|
|
|
make -C extensions install DESTDIR=%{buildroot}
|
2006-12-27 21:42:37 +00:00
|
|
|
rm -f %{buildroot}%{_datadir}/*.sql
|
|
|
|
|
2013-10-25 10:07:41 +00:00
|
|
|
if [ "%{_lib}" = "lib64" ] ; then
|
2010-01-21 18:37:39 +00:00
|
|
|
mv %{buildroot}%{_datadir}/pgsql/contrib/%{name}-%{majorversion}/postgis.sql %{buildroot}%{_datadir}/pgsql/contrib/postgis-64.sql
|
2008-08-11 18:56:44 +00:00
|
|
|
fi
|
|
|
|
|
2006-12-27 21:42:37 +00:00
|
|
|
%if %javabuild
|
|
|
|
install -d %{buildroot}%{_javadir}
|
2011-10-05 02:45:10 +00:00
|
|
|
install -m 755 java/jdbc/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2006-12-27 21:42:37 +00:00
|
|
|
%if %{gcj_support}
|
|
|
|
aot-compile-rpm
|
|
|
|
%endif
|
|
|
|
strip %{buildroot}/%{_libdir}/gcj/%{name}/*.jar.so
|
2007-07-03 06:41:57 +00:00
|
|
|
%endif
|
2006-12-27 21:42:37 +00:00
|
|
|
|
|
|
|
%if %utils
|
|
|
|
install -d %{buildroot}%{_datadir}/%{name}
|
2010-01-20 20:29:52 +00:00
|
|
|
install -m 755 utils/*.pl %{buildroot}%{_datadir}/%{name}
|
2006-12-27 21:42:37 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2007-07-03 06:41:57 +00:00
|
|
|
%if %javabuild
|
|
|
|
%if %gcj_support
|
2006-12-27 21:42:37 +00:00
|
|
|
%post -p %{_bindir}/rebuild-gcj-db
|
|
|
|
%postun -p %{_bindir}/rebuild-gcj-db
|
2007-07-03 06:41:57 +00:00
|
|
|
%endif
|
|
|
|
%endif
|
2006-12-27 21:42:37 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-07-06 04:22:12 +00:00
|
|
|
%doc COPYING CREDITS NEWS TODO README.%{name} doc/html loader/README.* doc/%{name}.xml doc/ZMSgeoms.txt
|
2006-12-27 21:42:37 +00:00
|
|
|
%attr(755,root,root) %{_bindir}/*
|
2009-07-06 04:22:12 +00:00
|
|
|
%attr(755,root,root) %{_libdir}/pgsql/postgis-*.so
|
2013-09-15 20:31:34 +00:00
|
|
|
%{_datadir}/pgsql/contrib/postgis-%{majorversion}/*.sql
|
2013-10-25 10:07:41 +00:00
|
|
|
%if %{_lib} == lib64
|
2013-09-15 20:31:34 +00:00
|
|
|
%{_datadir}/pgsql/contrib/postgis*.sql
|
2013-09-16 04:28:24 +00:00
|
|
|
%endif
|
2013-01-25 20:24:44 +00:00
|
|
|
%{_datadir}/pgsql/extension/postgis-*.sql
|
|
|
|
%{_datadir}/pgsql/extension/postgis_topology*.sql
|
|
|
|
%{_datadir}/pgsql/extension/postgis.control
|
2013-01-25 20:45:05 +00:00
|
|
|
%{_datadir}/pgsql/extension/postgis_topology.control
|
2013-09-12 06:55:39 +00:00
|
|
|
%{_datadir}/pgsql/extension/postgis_tiger_geocoder*.sql
|
2013-09-12 08:22:00 +00:00
|
|
|
%{_datadir}/pgsql/extension/postgis_tiger_geocoder.control
|
2013-01-25 20:24:44 +00:00
|
|
|
%{_datadir}/postgis/svn_repo_revision.pl
|
|
|
|
%{_includedir}/liblwgeom.h
|
|
|
|
%{_libdir}/liblwgeom*
|
|
|
|
%{_libdir}/pgsql/rtpostgis-%{majorversion}.so
|
2006-12-27 21:42:37 +00:00
|
|
|
|
|
|
|
%if %javabuild
|
|
|
|
%files jdbc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc java/jdbc/COPYING_LGPL java/jdbc/README
|
2011-10-05 02:45:10 +00:00
|
|
|
%attr(755,root,root) %{_javadir}/%{name}.jar
|
2006-12-27 21:42:37 +00:00
|
|
|
%if %{gcj_support}
|
|
|
|
%dir %{_libdir}/gcj/%{name}
|
|
|
|
%{_libdir}/gcj/%{name}/*.jar.so
|
|
|
|
%{_libdir}/gcj/%{name}/*.jar.db
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %utils
|
|
|
|
%files utils
|
2010-01-20 20:29:52 +00:00
|
|
|
%defattr(755,root,root)
|
2006-12-27 21:42:37 +00:00
|
|
|
%doc utils/README
|
2009-06-18 19:44:03 +00:00
|
|
|
%dir %{_datadir}/%{name}/
|
2010-01-20 20:29:52 +00:00
|
|
|
%{_datadir}/%{name}/test_estimation.pl
|
|
|
|
%{_datadir}/%{name}/profile_intersects.pl
|
|
|
|
%{_datadir}/%{name}/test_joinestimation.pl
|
|
|
|
%{_datadir}/%{name}/create_undef.pl
|
|
|
|
%{_datadir}/%{name}/%{name}_proc_upgrade.pl
|
|
|
|
%{_datadir}/%{name}/%{name}_restore.pl
|
2013-09-15 20:31:34 +00:00
|
|
|
%{_datadir}/pgsql/contrib/postgis-%{majorversion}/postgis_restore.pl
|
2010-01-20 20:29:52 +00:00
|
|
|
%{_datadir}/%{name}/read_scripts_version.pl
|
|
|
|
%{_datadir}/%{name}/test_geography_estimation.pl
|
|
|
|
%{_datadir}/%{name}/test_geography_joinestimation.pl
|
2006-12-27 21:42:37 +00:00
|
|
|
%endif
|
|
|
|
|
2009-06-18 19:44:03 +00:00
|
|
|
%files docs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc postgis*.pdf
|
|
|
|
|
2006-12-27 21:42:37 +00:00
|
|
|
%changelog
|
2013-12-12 12:10:56 +00:00
|
|
|
* Thu Dec 12 2013 Devrim Gündüz <devrim@gunduz.org> - 2.1.1-1
|
|
|
|
- Update to 2.1.1
|
|
|
|
|
2013-10-25 10:07:41 +00:00
|
|
|
* Fri Oct 25 2013 Dan Horák <dan[at]danny.cz> - 2.1.0-2
|
|
|
|
- fix build on non-x86 64-bit arches
|
|
|
|
|
2013-09-12 06:37:36 +00:00
|
|
|
* Thu Sep 12 2013 Devrim Gündüz <devrim@gunduz.org> - 2.1.0-1
|
|
|
|
- Update to 2.1.0, per changes described at:
|
|
|
|
http://svn.osgeo.org/postgis/tags/2.1.0/NEWS
|
|
|
|
|
2013-08-27 16:02:57 +00:00
|
|
|
* Tue Aug 27 2013 Orion Poplawski <orion@cora.nwra.com> - 2.0.3-4
|
|
|
|
- Rebuild for gdal 1.10.0
|
|
|
|
|
2013-08-04 04:57:22 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-17 07:30:17 +00:00
|
|
|
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 2.0.3-2
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-03-06 08:13:31 +00:00
|
|
|
* Wed Mar 6 2013 Devrim GÜNDÜZ <devrim@gunduz.org> - 2.0.3-1
|
|
|
|
- Update to 2.0.3, and build against GeOS 3.3.8.
|
|
|
|
- Update all URLs.
|
|
|
|
|
2013-01-25 17:23:17 +00:00
|
|
|
* Fri Jan 25 2013 Devrim GÜNDÜZ <devrim@gunduz.org> - 2.0.2-2
|
|
|
|
- Rebuilt against geos 3.3.7.
|
2013-01-25 20:24:44 +00:00
|
|
|
- Apply changes for PostgreSQL 9.2 and extensions.
|
2013-01-25 17:23:17 +00:00
|
|
|
|
2013-01-25 20:00:52 +00:00
|
|
|
* Wed Jan 16 2013 Devrim GÜNDÜZ <devrim@gunduz.org> - 2.0.2-1
|
2013-01-15 02:02:10 +00:00
|
|
|
- Update to 2.0.2, for various changes described at:
|
|
|
|
http://www.postgis.org/news/20121203/
|
|
|
|
|
2012-11-13 15:42:35 +00:00
|
|
|
* Tue Nov 13 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 2.0.1-1
|
|
|
|
- Update to 2.0.1, so it works against PostgreSQL 9.2,
|
|
|
|
which also fixes #872710.
|
|
|
|
- Add deps for gdal.
|
2012-11-13 16:13:41 +00:00
|
|
|
- Don't build JDBC portions. I have already disabled it in
|
|
|
|
upstream packaging 8 months ago.
|
2012-11-13 15:42:35 +00:00
|
|
|
|
2012-07-21 02:44:16 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-14 01:09:08 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-05 02:45:10 +00:00
|
|
|
* Tue Oct 4 2011 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.5.3-2
|
|
|
|
- Provide postgis.jar instead of provide postgis-1.5.2.jar,
|
|
|
|
per #714856
|
|
|
|
|
2011-10-04 15:39:19 +00:00
|
|
|
* Tue Oct 4 2011 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.5.3-1
|
|
|
|
- Update to 1.5.3
|
|
|
|
|
2011-04-19 11:56:56 +00:00
|
|
|
* Tue Apr 19 2011 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.5.2-1
|
|
|
|
- Update to 1.5.2
|
|
|
|
|
2011-04-03 12:23:04 +00:00
|
|
|
* Sun Apr 03 2011 Nils Philippsen <nils@redhat.com> - 1.5.1-3
|
|
|
|
- cope with PostgreSQL 9.0 build environment
|
2011-04-03 12:24:52 +00:00
|
|
|
- require pgsql version used for building
|
2011-04-03 12:23:04 +00:00
|
|
|
|
2011-02-09 16:10:33 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-03-11 19:05:46 +00:00
|
|
|
* Thu Mar 11 2010 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.5.1-1
|
|
|
|
- Update to 1.5.1
|
|
|
|
|
2010-02-04 19:39:59 +00:00
|
|
|
* Tue Jan 12 2010 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.5.0-1
|
|
|
|
- Update to 1.5.0
|
|
|
|
- Trim changelog a bit.
|
2010-01-20 20:29:52 +00:00
|
|
|
|
2010-01-06 10:41:06 +00:00
|
|
|
* Wed Jan 6 2010 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.4.1-2
|
|
|
|
- Add shp2pgsql-{cli-gui} among installed files.
|
|
|
|
|
2009-12-20 00:03:55 +00:00
|
|
|
* Sun Dec 20 2009 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.4.1-1
|
|
|
|
- Update to 1.4.1
|
|
|
|
|
2009-12-03 14:21:52 +00:00
|
|
|
* Thu Dec 03 2009 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.4.1-rc2_1.2
|
|
|
|
- Fix spec per rawhide report.
|
|
|
|
|
2009-11-30 23:32:26 +00:00
|
|
|
* Tue Dec 01 2009 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.4.1-rc2_1.1
|
|
|
|
- Update spec for rc2 changes.
|
|
|
|
|
2009-11-30 16:24:17 +00:00
|
|
|
* Mon Nov 30 2009 Devrim GUNDUZ <devrim@gunduz.org> - 1.4.1rc2-1
|
|
|
|
- Update to 1.4.1rc2
|
|
|
|
|
2009-11-23 18:48:34 +00:00
|
|
|
* Mon Nov 23 2009 Devrim GUNDUZ <devrim@gunduz.org> - 1.4.1rc1-1
|
|
|
|
- Update to 1.4.1rc1
|
|
|
|
|
2009-11-22 00:45:22 +00:00
|
|
|
* Sun Nov 22 2009 Devrim GÜNDÜZ <devrim@gunduz.org> - 1.4.0-2
|
|
|
|
- Fix spec, per bz #536860
|
|
|
|
|
2009-07-27 12:11:45 +00:00
|
|
|
* Mon Jul 27 2009 Devrim GUNDUZ <devrim@gunduz.org> - 1.4.0-1
|
|
|
|
- Update to 1.4.0
|
|
|
|
|
2009-07-26 19:14:21 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0rc1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-07-06 04:22:12 +00:00
|
|
|
* Mon Jul 6 2009 Devrim GUNDUZ <devrim@gunduz.org> - 1.4.0rc1-1
|
|
|
|
- Update to 1.4.0rc1
|
|
|
|
- Fix spec for 1.4
|