File memphis.spec of Package memphis

#
# spec file for package memphis (Version 0.2.3)
#
# Copyright (c) 2010 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:           memphis
Version:        0.2.3
Release:        2
License:        LGPLv2.1+
Summary:        Map-rendering library for OpenStreetMap
Group:          System/Libraries
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  libexpat-devel
BuildRequires:  vala-devel
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)

%description
LibMemphis provides a GObject based API to render OpenStreetMap data on
a cairo surface. Libmemphis implements the 'Slippy Map Tilename'
specification, like Mapnik and Osmarender.

It supports zoom level 12 to 18, projected with the Mercator projection.

%package -n libmemphis-0_2-0
License:        LGPLv2.1+
Summary:        Map-rendering library for OpenStreetMap -- Library
Group:          System/Libraries

%description -n libmemphis-0_2-0
LibMemphis provides a GObject based API to render OpenStreetMap data on
a cairo surface. Libmemphis implements the 'Slippy Map Tilename'
specification, like Mapnik and Osmarender.

It supports zoom level 12 to 18, projected with the Mercator projection.

%package devel
License:        LGPLv2.1+
Summary:        Map-rendering library for OpenStreetMap -- Development Files
Group:          Development/Libraries/C and C++
Requires:       libmemphis-0_2-0 = %{version}

%description devel
LibMemphis provides a GObject based API to render OpenStreetMap data on
a cairo surface. Libmemphis implements the 'Slippy Map Tilename'
specification, like Mapnik and Osmarender.

It supports zoom level 12 to 18, projected with the Mercator projection.

%prep
%setup -q

%build
%configure \
    --disable-static \
    --enable-vala
%__make %{?_smp_mflags} V=1

%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
# Those are demo files, they shouldn't get installed
rm %{buildroot}%{_bindir}/example
rm %{buildroot}%{_datadir}/memphis/default-rules.xml

%post -n libmemphis-0_2-0 -p /sbin/ldconfig

%postun -n libmemphis-0_2-0 -p /sbin/ldconfig

%files -n libmemphis-0_2-0
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING README
%{_libdir}/libmemphis-0.2.so.*
%{_libdir}/girepository-1.0/Memphis-0.2.typelib

%files devel
%defattr(-, root, root)
%doc %{_datadir}/gtk-doc/html/libmemphis/
%{_includedir}/libmemphis-0.2/
%{_libdir}/libmemphis-0.2.so
%{_libdir}/pkgconfig/memphis-0.2.pc
%{_datadir}/gir-1.0/*.gir
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/memphis-0.2.*

%changelog
openSUSE Build Service is sponsored by