File libgnomecups.spec of Package libgnomecups

#
# spec file for package libgnomecups (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/
#

# norootforbuild


Name:           libgnomecups
BuildRequires:  cups-devel fdupes glib2-devel gnome-common intltool translation-update-upstream zlib-devel
Version:        0.2.3
Release:        121
Url:            http://www.gnome.org/
Group:          System/GUI/GNOME
License:        GPLv2+ ; LGPLv2.0
Summary:        GNOME CUPS Library
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
AutoReqProv:    on
# 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
License:        GPLv2+ ; LGPLv2.0
Group:          System/GUI/GNOME
Summary:        GNOME CUPS Library
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

%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
openSUSE Build Service is sponsored by