diff --git a/postgis.spec b/postgis.spec index 6606534..f2cfa50 100644 --- a/postgis.spec +++ b/postgis.spec @@ -5,10 +5,11 @@ Summary: Geographic Information Systems Extensions to PostgreSQL Name: postgis Version: 1.3.6 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: Applications/Databases Source0: http://postgis.refractions.net/download/%{name}-%{version}.tar.gz +Source2: http://www.postgis.org/download/%{name}-%{version}.pdf Source4: filter-requires-perl-Pg.sh URL: http://postgis.refractions.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -25,6 +26,12 @@ 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. +%package docs +Summary: Extra documentation for PostGIS +Group: Applications/Databases +%description docs +The postgis-docs package includes PDF documentation of PostGIS. + %if %javabuild %package jdbc Summary: The JDBC driver for PostGIS @@ -58,6 +65,8 @@ The postgis-utils package provides the utilities for PostGIS. %prep %setup -q +# Copy .pdf file to top directory before installing. +cp -p %{SOURCE2} . %build %configure @@ -141,6 +150,7 @@ rm -rf %{buildroot} %files utils %defattr(-,root,root) %doc utils/README +%dir %{_datadir}/%{name}/ %attr(755,root,root) %{_datadir}/%{name}/test_estimation.pl %attr(755,root,root) %{_datadir}/%{name}/profile_intersects.pl %attr(755,root,root) %{_datadir}/%{name}/test_joinestimation.pl @@ -149,7 +159,15 @@ rm -rf %{buildroot} %attr(644,root,root) %{_datadir}/%{name}/%{name}_restore.pl %endif +%files docs +%defattr(-,root,root) +%doc postgis*.pdf + %changelog +* Thu Jun 18 2009 Devrim GUNDUZ - 1.3.6-2 +- Add a new subpackage: -docs, and add postgis pdf file to it. +- Own /usr/share/postgis, per bugzilla #474686 + * Fri May 8 2009 Devrim GUNDUZ - 1.3.6-1 - Update to 1.3.6