File librasterlite.spec of Package librasterlite

# spec file for package librasterlite
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           librasterlite
Version:        1.1g
Release:        0
License:        MPL-1.1
Summary:        Raster SQLite
Group:          Development/Libraries/C and C++
Source:         %{name}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  libgeos-devel libgeotiff-devel libjpeg-devel zlib-devel
BuildRequires:  libproj-devel sqlite-devel libpng-devel libspatialite-devel
BuildRequires:	freexl-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  fdupes
BuildRequires:  pkg-config

librasterlite is an open source library allowing to store huge raster coverages within a SpatiaLite DBMS. 

%package -n %{name}2
Summary:        Raster SQLite
Group:          Development/Libraries/C and C++

%description -n %{name}2
the SpatiaLite extension enables SQLite to support spatial data too [aka
GEOMETRY], in a way conformant to OpenGis specifications.

%package devel
Summary:        Development files for %{name}
Group:          Development/Libraries/C and C++
Requires:       %{name}2 = %{version}

%description devel
This package contains all necessary include files and libraries needed
to compile and develop applications that use libspatialite.

%setup -q

%configure --prefix=/usr

make %{?_smp_flags}

rm %{buildroot}/%{_libdir}/*.la

%post -n %{name}2 -p /sbin/ldconfig

%postun -n %{name}2 -p /sbin/ldconfig

rm -rf %{buildroot}

%files -n %{name}2

%files devel

openSUSE Build Service is sponsored by