File libgnomecups.spec of Package libgnomecups
#
# spec file for package libgnomecups
#
# Copyright (c) 2012 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: libgnomecups
BuildRequires: cups-devel
BuildRequires: fdupes
BuildRequires: glib2-devel
BuildRequires: gnome-common
BuildRequires: intltool
BuildRequires: translation-update-upstream
BuildRequires: zlib-devel
Version: 0.2.3
Release: 0
Url: http://www.gnome.org/
Summary: GNOME CUPS Library
License: GPL-2.0+ ; LGPL-2.0
Group: System/GUI/GNOME
Source: %{name}-%{version}.tar.gz
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM libgnomecups-callback-fix.patch
Patch0: libgnomecups-callback-fix.patch
# PATCH-FIX-UPSTREAM libgnomecups-lpoptions.patch
Patch1: libgnomecups-lpoptions.patch
# PATCH-FEATURE-OPENSUSE libgnomecups-ignore-default-ipp-warning.patch
Patch2: libgnomecups-ignore-default-ipp-warning.patch
# PATCH-FIX-UPSTREAM libgnomecups-glib.patch bgo#664930 dimstar@opensuse.org -- Fix build with glib 2.31: only glib.h can be included.
Patch3: libgnomecups-glib.patch
# bug437293
%ifarch ppc64
Obsoletes: libgnomecups-64bit
%endif
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: %{name}-lang = %{version}
%description
A gobject (GLib) wrapper for IPP printer management, which is used by
CUPS. Mainly used by the GNOME printing system.
Authors:
--------
Dave Camp <dave@ximian.com>
Michael Meeks <michael@ximian.com>
Chris Lahey <clahey@ximian.com>
%package devel
Summary: GNOME CUPS Library
Group: System/GUI/GNOME
Requires: %{name} = %{version} cups-devel glib2-devel zlib-devel
# bug437293
%ifarch ppc64
Obsoletes: libgnomecups-devel-64bit
%endif
#
%description devel
A gobject (GLib) wrapper for IPP printer management, which is used by
CUPS. Mainly used by the GNOME printing system.
Authors:
--------
Dave Camp <dave@ximian.com>
Michael Meeks <michael@ximian.com>
Chris Lahey <clahey@ximian.com>
%lang_package
%prep
%setup -q
translation-update-upstream
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
autoreconf -f -i
%configure --with-pic\
--disable-static
make %{?jobs:-j%jobs}
%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-, root, root)
%doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README
%{_libdir}/*.so.*
%files lang -f %{name}.lang
%files devel
%defattr (-, root, root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%changelog