File libgnomecanvas.spec of Package libgnomecanvas

#
# spec file for package libgnomecanvas
#
# Copyright (c) 2014 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:           libgnomecanvas
Version:        2.30.3
Release:        0
Summary:        An Add-On for the GNOME User Interface Libraries
License:        GPL-2.0+ and LGPL-2.1+
Group:          Development/Libraries/GNOME
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/libgnomecanvas/2.20/%{name}-%{version}.tar.bz2
Source99:       baselibs.conf
BuildRequires:  intltool
BuildRequires:  libart_lgpl-devel
BuildRequires:  libglade2-devel
BuildRequires:  translation-update-upstream
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Libgnomecanvas is a graphical add-on for the GNOME User Interface
libraries.

%package -n libgnomecanvas-2-0
Summary:        An Add-On for the GNOME User Interface Libraries
Group:          System/Libraries
Recommends:     %{name}-lang
Provides:       %{name} = %{version}
Obsoletes:      %{name} < %{version}
# bug437293
%ifarch ppc64
Obsoletes:      libgnomecanvas-64bit
%endif
#

%description -n libgnomecanvas-2-0
Libgnomecanvas is a graphical add-on for the GNOME User Interface
libraries.

%package devel
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/GNOME
Requires:       libgnomecanvas-2-0 = %{version}
Provides:       libgnomecanvas-doc = %{version}
Obsoletes:      libgnomecanvas-doc < %{version}
# bug437293
%ifarch ppc64
Obsoletes:      libgnomecanvas-devel-64bit
%endif
#

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

%lang_package
%prep
%setup -q
translation-update-upstream

%build
%configure --with-pic\
	--disable-static \
        --enable-glade
make %{?_smp_mflags}

%install
%make_install
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%find_lang %{name}-2.0
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print

%post -n libgnomecanvas-2-0 -p /sbin/ldconfig

%postun -n libgnomecanvas-2-0 -p /sbin/ldconfig

%files -n libgnomecanvas-2-0
%defattr(-,root,root)
%doc AUTHORS COPYING.LIB README NEWS ChangeLog
%{_libdir}/libgnomecanvas-2.so.*
%{_libdir}/libglade/2.0/libcanvas.so

%files lang -f %{name}-2.0.lang

%files devel
%defattr(-,root,root)
%{_includedir}/libgnomecanvas-2.0/
%{_libdir}/libgnomecanvas-2.so
%{_libdir}/pkgconfig/libgnomecanvas-2.0.pc
%{_datadir}/gtk-doc/html/libgnomecanvas/
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html

%changelog
openSUSE Build Service is sponsored by