[postgis-users] CentOS 4.5 postgis-1.1.0.spec patch
Rob Nagler
nagler at bivio.biz
Tue Nov 20 06:44:01 PST 2007
Aha! http://postgis.refractions.net/rpms/ is out of date. I just
downloaded the srpm assuming it was the latest. It hasn't been
updated since 1/4/06, and binary RPMs for Fedora have not been updated
either.
I've attached a patch for the postgis.spec in the 1.3.1 tarball. This
builds on Centos 4.5 without javabuild & gcj_support. The Version had
to be changed to 1.3.1 and some dependencies had to be moved around in
the appropriate %if sections. The config.patch failed so I removed it
along with the postgis-javamakefile.patch, which I didn't need.
If you need help creating an autobuilder for the SRPM from the
tarball, let me know.
PostGIS is a great resource. Thanks!
Cheers,
Rob
----------------------------------------------------------------
*** postgis-1.3.1.spec~ 2007-11-20 07:21:14.000000000 -0700
--- postgis-1.3.1.spec 2007-11-20 07:33:10.000000000 -0700
***************
*** 10,21 ****
Group: Applications/Databases
Source0: http://postgis.refractions.net/download/%{name}-%{version}.tar.gz
Source4: filter-requires-perl-Pg.sh
- Patch1: postgis-configure.patch
- Patch2: postgis-javamakefile.patch
URL: http://postgis.refractions.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
! BuildRequires: postgresql-devel, proj-devel, geos-devel, byacc, proj-devel, flex, postgresql-jdbc
Requires: postgresql, geos, proj
%description
--- 10,19 ----
Group: Applications/Databases
Source0: http://postgis.refractions.net/download/%{name}-%{version}.tar.gz
Source4: filter-requires-perl-Pg.sh
URL: http://postgis.refractions.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
! BuildRequires: postgresql-devel, proj-devel, geos-devel, byacc, proj-devel, flex
Requires: postgresql, geos, proj
%description
***************
*** 32,38 ****
Group: Applications/Databases
License: LGPL
Requires: postgis
! BuildRequires: ant >= 0:1.6.2, junit >= 0:3.7
%if %{gcj_support}
BuildRequires: gcc-java
--- 30,36 ----
Group: Applications/Databases
License: LGPL
Requires: postgis
! BuildRequires: ant >= 0:1.6.2, junit >= 0:3.7, postgresql-jdbc
%if %{gcj_support}
BuildRequires: gcc-java
***************
*** 58,65 ****
%prep
%setup -q
- %patch1 -p0
- %patch2 -p0
%build
%configure
--- 56,61 ----
***************
*** 105,113 ****
--- 101,111 ----
%clean
rm -rf %{buildroot}
+ %if %{gcj_support}
%post -p %{_bindir}/rebuild-gcj-db
%postun -p %{_bindir}/rebuild-gcj-db
+ %endif
%files
%defattr(-,root,root)
More information about the postgis-users
mailing list