# # spec file for package gobject-introspection (Version 0.6.2) # # Copyright (c) 2009 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: gobject-introspection BuildRequires: bison BuildRequires: fdupes BuildRequires: flex BuildRequires: glib2-devel BuildRequires: libffi-devel BuildRequires: python-devel BuildRequires: python-xml # needed for the git patch BuildRequires: gnome-common %if %suse_version <= 1110 BuildRequires: gtk-doc %endif License: GPL v2 or later Url: http://live.gnome.org/GObjectIntrospection Group: Development/Libraries/GNOME Version: 0.6.2 Release: 2 Summary: GObject Introspection Tools Source: %{name}-%{version}.tar.bz2 # PATCH-FEATURE-UPSTREAM gobject-introspection-git-20090501.patch.bz2 vuntz@novell.com -- Update to git as of 20090501 Patch0: gobject-introspection-git-20090501.patch.bz2 Requires: libgirepository-1_0-0 = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The goal of the project is to describe the APIs and collect them in a uniform, machine readable format. %package -n libgirepository-1_0-0 License: LGPL v2.1 or later Summary: GObject Introspection Library Group: Development/Libraries/GNOME Recommends: gir-repository %description -n libgirepository-1_0-0 The goal of the project is to describe the APIs and collect them in a uniform, machine readable format. %package devel License: LGPL v2.1 or later Summary: GObject Introspection Development Files Group: Development/Libraries/GNOME # Note: the devel package requires the binaries, not just the library Requires: %{name} = %{version} Requires: glib2-devel %description devel The goal of the project is to describe the APIs and collect them in a uniform, machine readable format. %prep %setup -q %patch0 -p1 %build # needed for the git patch NOCONFIGURE=1 gnome-autogen.sh %configure \ --disable-static %__make %{?jobs:-j%jobs} %install %makeinstall find %{buildroot} -type f -name "*.la" -delete -print %fdupes %{buildroot} %clean rm -rf %{buildroot} %post -n libgirepository-1_0-0 -p /sbin/ldconfig %postun -n libgirepository-1_0-0 -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/* # We don't include directly %{_libdir}/gobject-introspection since there might # be files there in the future that belong to the library package %dir %{_libdir}/gobject-introspection %{_libdir}/gobject-introspection/giscanner %doc %{_mandir}/man?/*.* %files -n libgirepository-1_0-0 %defattr(-,root,root) %doc AUTHORS CONTRIBUTORS COPYING NEWS README TODO ChangeLog.pre-git %{_datadir}/gir-1.0 %{_libdir}/*.so.* %{_libdir}/girepository-1.0 %files devel %defattr(-,root,root) %{_includedir}/* %{_datadir}/aclocal/*.m4 %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %changelog