File libgaiagraphics.spec of Package libgaiagraphics

#
# spec file for package libgaiagraphics
#
# Copyright (c) 2011 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 http://bugs.opensuse.org/
#

Name:           libgaiagraphics
Version:        0.5
Release:        0
License:        LGPL-3.0+
Summary:        LibGaiaGraphics Library
Url:            https://www.gaia-gis.it/fossil/libgaiagraphics/index
Group:          Development/Libraries/C and C++
Source:         %{name}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:	libgeotiff-devel 
BuildRequires:	libjpeg-devel
BuildRequires:	libpng-devel
BuildRequires:	cairo-devel
BuildRequires:	libxml2-devel
BuildRequires:  libspatialite-devel 
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  fdupes
BuildRequires:  pkg-config

%description
libgaiagraphics is an open source library supporting common-utility raster handling methods.

%package -n %{name}1
Summary:        LibGaiaGraphics Library
Group:          Development/Libraries/C and C++

%description -n %{name}1
libgaiagraphics is an open source library supporting common-utility raster handling methods.

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

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

%prep
%setup -q

%build
%configure --disable-static

make %{?_smp_flags}

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

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

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

%clean
rm -rf %{buildroot}

%files -n %{name}1
%defattr(-,root,root,-)
%{_libdir}/lib*.so.*


%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by