File gtkimageview.spec of Package gtkimageview

#
# spec file for package gtkimageview (Version 1.6.4)
#
# 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:           gtkimageview
Version:        1.6.4
Release:        1
License:        LGPLv2.0+
Summary:        Library providing an advanced widget for GdkPixbuf
Url:            http://trac.bjourne.webfactional.com
Group:          Development/Libraries/GNOME
Source:         gtkimageview-%{version}.tar.bz2
BuildRequires:  gtk2-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GtkImageView is a widget that provides a zoomable and panable view of a
GdkPixbuf. It is intended to be usable in most types of image viewing
applications.

%package -n libgtkimageview0
License:        LGPLv2.0+
Summary:        Library providing an advanced widget for GdkPixbuf
Group:          Development/Libraries/GNOME

%description -n libgtkimageview0
GtkImageView is a widget that provides a zoomable and panable view of a
GdkPixbuf. It is intended to be usable in most types of image viewing
applications.

%package devel
License:        LGPLv2.0+
Summary:        Library providing an advanced widget for GdkPixbuf - Development Files
Group:          Development/Libraries/GNOME
Requires:       gtk2-devel
Requires:       libgtkimageview0 = %{version}
Provides:       libgtkimageview-devel = %{version}
Obsoletes:      libgtkimageview-devel < %{version}

%description devel
GtkImageView is a widget that provides a zoomable and panable view of a
GdkPixbuf. It is intended to be usable in most types of image viewing
applications.

%prep
%setup -q

%build
%configure --disable-static
make %{?jobs:-j%jobs}

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

%check
make %{?jobs:-j%jobs} check

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf %{buildroot}

%files -n libgtkimageview0
%defattr(-,root,root)
%doc COPYING README
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_includedir}/gtkimageview/
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gtk-doc/html/gtkimageview

%changelog