pkubat / rpms / pgsphere

Forked from rpms/pgsphere 5 years ago
Clone
Blob Blame History Raw
Summary: Spherical data types, functions, and operators for PostgreSQL
Name: pgsphere
Version: 1.1.1
Release: 3%{?dist}
License: BSD
Group: Applications/Databases
Source0: http://pgfoundry.org/frs/download.php/2558/%{name}-%{version}.tar.gz
URL: http://pgfoundry.org/projects/pgsphere
BuildRequires: postgresql-devel >= 8.0
Requires: postgresql-server >= 8.0

%description
pgSphere is a server side module for PostgreSQL. It contains methods for 
working with spherical coordinates and objects. It also supports indexing of 
spherical objects.

%prep
%setup -q

%build
make USE_PGXS=1 %{?_smp_mflags} 

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_libdir}/pgsql/
install -d %{buildroot}%{_datadir}/%{name}

install -m 755 pg_sphere.so %{buildroot}%{_libdir}/pgsql/pg_sphere.so
install -m 644 pg_sphere.sql %{buildroot}%{_datadir}/%{name}/

%post -p /sbin/ldconfig 
%postun -p /sbin/ldconfig 

%files
%doc COPYRIGHT.pg_sphere README.pg_sphere
%{_datadir}/%{name}
%{_libdir}/pgsql/pg_sphere.so

%changelog
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Thu Jun 30 2011 Sergio Pascual <sergiopr at fedoraproject.org> 1.1.1-2
- Fix source url
- Directory in datadir included

* Tue Jan 11 2011 Sergio Pascual <sergiopr at fedoraproject.org> 1.1.1-1
- Initial spec file