File gir-repository.spec of Package gir-repository

#
# spec file for package gir-repository (Version 0.6.5)
#
# 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:           gir-repository
Version:        0.6.5
Release:        7
License:        GPLv2+
Summary:        GIR Repository
Url:            http://live.gnome.org/GObjectIntrospection
Group:          Development/Libraries/GNOME
Source:         %{name}-%{version}.tar.bz2
Source99:       gir-repository-rpmlintrc
# PATCH-FIX-UPSTREAM gir-repository-dbus-glib.patch bgo603690 vuntz@opensuse.org -- Install dbus-glib data
Patch0:         gir-repository-dbus-glib.patch
# PATCH-FIX-UPSTREAM gir-repository-latest-babl.patch bgo608343 vuntz@opensuse.org -- Fix build with babl 0.1.2
Patch1:         gir-repository-latest-babl.patch
BuildRequires:  babl-devel
BuildRequires:  dbus-1-glib-devel
BuildRequires:  gconf2-devel
# Needed for patch0 gir-repository-dbus-glib.patch
BuildRequires:  gnome-common
BuildRequires:  gobject-introspection-devel
BuildRequires:  goocanvas-devel
BuildRequires:  gtksourceview-devel
BuildRequires:  libavahi-gobject-devel
BuildRequires:  libgnome-keyring-devel
BuildRequires:  libnotify-devel
BuildRequires:  libpoppler-glib-devel
BuildRequires:  libsoup-devel
BuildRequires:  nautilus-devel
BuildRequires:  pango-devel
BuildRequires:  vte-devel
# Virtual provides for compatibility with other distributions.
Provides:       gir-repository-devel = %{version}-%{release}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is a repository of GIR interface description files.

%prep
%setup -q
%patch0 -p1
%if 0%{?suse_version} > 1120
%patch1 -p1
%endif

%build
NOCONFIGURE=1 gnome-autogen.sh
export SUSE_ASNEEDED=0
%configure \
	--disable-static
%__make

%install
%makeinstall
%{__rm} %{buildroot}%{_libdir}/*.la
# Remove stuff that is shipped in other packages
%{__rm} %{buildroot}%{_datadir}/gir-1.0/{Atk,Gdk,Gtk-2,Pango}*
%{__rm} %{buildroot}%{_libdir}/girepository-1.0/{Atk,Gdk,Gtk-2,Pango}*
%{__rm} %{buildroot}%{_libdir}/libgirepo-{Gdk,Gtk}-custom.so

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_datadir}/gir-1.0/
%{_libdir}/*.so
%dir %{_libdir}/girepository-1.0/
%{_libdir}/girepository-1.0/Avahi-0.6.typelib
%{_libdir}/girepository-1.0/AvahiCore-0.6.typelib
%if 0%{?suse_version} > 1120
%{_libdir}/girepository-1.0/Babl-0.1.typelib
%else
%{_libdir}/girepository-1.0/Babl-0.0.typelib
%endif
%{_libdir}/girepository-1.0/DBus-1.0.typelib
%{_libdir}/girepository-1.0/DBusGLib-1.0.typelib
%{_libdir}/girepository-1.0/GConf-2.0.typelib
%{_libdir}/girepository-1.0/GnomeKeyring-2.0.typelib
%{_libdir}/girepository-1.0/GooCanvas-0.10.typelib
%{_libdir}/girepository-1.0/GtkSource-2.2.typelib
%{_libdir}/girepository-1.0/Nautilus-1.0.typelib
%{_libdir}/girepository-1.0/Notify-0.4.typelib
%{_libdir}/girepository-1.0/Poppler-0.8.typelib
%{_libdir}/girepository-1.0/Soup-2.4.typelib
%{_libdir}/girepository-1.0/Vte-1.0.typelib

%changelog
openSUSE Build Service is sponsored by