File libgnomeprint.spec of Package libgnomeprint

#
# spec file for package libgnomeprint (Version 2.18.8)
#
# 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/
#

# norootforbuild


Name:           libgnomeprint
BuildRequires:  bison
BuildRequires:  cups-devel
BuildRequires:  fdupes
BuildRequires:  flex
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  libart_lgpl-devel
BuildRequires:  libgnomecups-devel
BuildRequires:  libxml2-devel
BuildRequires:  pango-devel
BuildRequires:  popt-devel
BuildRequires:  translation-update-upstream
BuildRequires:  zlib-devel
License:        GPLv2+ ; LGPLv2.1+
Group:          Development/Libraries/GNOME
AutoReqProv:    on
# bug437293
%ifarch ppc64
Obsoletes:      libgnomeprint-64bit
%endif
#
Version:        2.18.8
Release:        1
Summary:        The GNOME 2.x Printing Library
Source:         %{name}-%{version}.tar.bz2
Source1:        libgnomeprint-icons.tar.gz
Source99:       baselibs.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch:          libgnomeprint-suseconfig.dif
Patch1:         libgnomeprint.patch
Patch3:         libgnomeprint-pdf-invalid-path-176712.patch
Requires:       %{name}-lang = %{version}

%description
This package contains the GNOME 2.x printing library, which provides a
simple and clean API for GNOME programs that have to print documents.



Authors:
--------
    Lauris Kaplinski <lauris@ximian.com>
    Chema Celorio <chema@celorio.com>
    Chris Lahey <clahey@ximian.com>
    Raph Levien <raph@acm.org>
    Miguel de Icaza <miguel@gnu.org>

%package devel
License:        GPLv2+ ; LGPLv2.1+
Summary:        Include files and libraries mandatory for development with libgnomeprint
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version} libart_lgpl-devel glib2-devel libxml2-devel pango-devel
# bug437293
%ifarch ppc64
Obsoletes:      libgnomeprint-devel-64bit
%endif
#

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



Authors:
--------
    Lauris Kaplinski <lauris@ximian.com>
    Chema Celorio <chema@celorio.com>
    Chris Lahey <clahey@ximian.com>
    Raph Levien <raph@acm.org>
    Miguel de Icaza <miguel@gnu.org>

%package doc
License:        GPLv2+ ; LGPLv2.1+
Summary:        Documentation for libgnomeprint
Group:          Development/Libraries/GNOME
%if 0%{?suse_version} >= 1120
BuildArch:      noarch
%endif

%description doc
This package contains documentation for the GNOME 2.x printing library,
which provide a simple and clean API for GNOME programs that have to
print documents.



Authors:
--------
    Lauris Kaplinski <lauris@ximian.com>
    Chema Celorio <chema@celorio.com>
    Chris Lahey <clahey@ximian.com>
    Raph Levien <raph@acm.org>
    Miguel de Icaza <miguel@gnu.org>

%lang_package
%prep
%setup -q
translation-update-upstream
tar xvfz %SOURCE1
%patch -p1
%patch1 
%patch3

%build
autoreconf -f -i
# can use openprinting/papi
# FIXME: Which packages are required for rebuild of gtk-doc stuff?
%configure\
	--disable-static\
	--disable-gtk-doc
make %{?jobs:-j%jobs}

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
rm $RPM_BUILD_ROOT%{_libdir}/*/*/*/*.*a $RPM_BUILD_ROOT%{_libdir}/*/*/*/*/*.*a
%find_lang libgnomeprint-2.2
%fdupes $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING README NEWS ChangeLog 
%{_datadir}/gnome-print-2.0
%{_datadir}/libgnomeprint
%{_libdir}/*.so.*
%{_libdir}/libgnomeprint

%files lang -f libgnomeprint-2.2.lang

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

%files doc
%defattr(-,root,root)
%doc %{_datadir}/gtk-doc/html/*

%changelog
openSUSE Build Service is sponsored by