%define name gobject-introspection %define version 1.29.16 %define git 0 %define rel 2 %if %git %define release %mkrel -c %{git} %{rel} %else %define release %mkrel %{rel} %endif %define api 1.0 %define major 1 %define libname %mklibname girepository %{api} %{major} %define develname %mklibname -d girepository %define url_ver %(echo %{version} | cut -d. -f1,2) Summary: GObject Introspection Name: %{name} Version: %{version} Release: %{release} %if %{git} Source0: %{name}-%{git}.tar.xz %else Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz %endif Source1: glib-2.0.c Patch0: gobject-introspection-fix-link.patch License: GPLv2+ and LGPLv2+ Group: Development/C Url: http://www.gnome.org BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo-gobject) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(glib-2.0) >= 2.29.7 BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(libffi) BuildRequires: python-devel BuildRequires: flex BuildRequires: bison BuildRequires: gnome-common BuildRequires: libtool Conflicts: %{mklibname girepository 1.0 0} < 0.6.10-5mdv Conflicts: gir-repository < 0.6.5-12.20100622.3mdv %description The goal of the project is to describe the APIs and collect them in a uniform, machine readable format. %package -n %{libname} Group: System/Libraries Summary: GObject Introspection shared library Conflicts: %{name} < 0.6.8-2mdv Requires: %{name} >= %{version} %description -n %{libname} The goal of the project is to describe the APIs and collect them in a uniform, machine readable format. %package -n %{develname} Group: Development/C Summary: GObject Introspection development libraries Requires: %{libname} = %{version}-%{release} Provides: libgirepository-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} #gw /usr/bin/libtool is called in giscanner Requires: libtool %description -n %{develname} The goal of the project is to describe the APIs and collect them in a uniform, machine readable format. %prep %if %{git} %setup -q -n %{name} %else %setup -q %endif %apply_patches # From Ubuntu: # Roll back to gir/glib-2.0 as of before upstream commit 6d30588c1. # Later commits have a GVariant which current pygobject does not # deal with. This is fixed in the invoke-rewrite branch of # pygobject, so until this lands we need the older annotations. pushd gir rm -rf glib-2.0.c cp %{SOURCE1} . popd %build %if %{git} ./autogen.sh -V %else autoreconf -fi %endif %configure2_5x \ --disable-static %make %install rm -rf %{buildroot} %makeinstall_std # don't ship .la #find %{buildroot} -name '*.la' -exec rm -f {} \; %check make check %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README NEWS TODO AUTHORS %dir %{_libdir}/girepository-%{api} %{_libdir}/girepository-%{api}/DBus-1.0.typelib %{_libdir}/girepository-%{api}/DBusGLib-1.0.typelib %{_libdir}/girepository-%{api}/GIRepository-2.0.typelib %{_libdir}/girepository-%{api}/GL-1.0.typelib %{_libdir}/girepository-%{api}/GLib-2.0.typelib %{_libdir}/girepository-%{api}/GModule-2.0.typelib %{_libdir}/girepository-%{api}/GObject-2.0.typelib %{_libdir}/girepository-%{api}/Gio-2.0.typelib %{_libdir}/girepository-%{api}/cairo-1.0.typelib %{_libdir}/girepository-%{api}/fontconfig-2.0.typelib %{_libdir}/girepository-%{api}/freetype2-2.0.typelib %{_libdir}/girepository-%{api}/libxml2-2.0.typelib %{_libdir}/girepository-%{api}/xfixes-4.0.typelib %{_libdir}/girepository-%{api}/xft-2.0.typelib %{_libdir}/girepository-%{api}/xlib-2.0.typelib %{_libdir}/girepository-%{api}/xrandr-1.3.typelib %files -n %{libname} %defattr(-,root,root) %{_libdir}/libgirepository-%{api}.so.%{major}* %files -n %{develname} %defattr(-,root,root) %doc ChangeLog %{_libdir}/libgirepository-%{api}.so %{_libdir}/pkgconfig/gobject-introspection-%{api}.pc %{_libdir}/pkgconfig/gobject-introspection-no-export-%{api}.pc %{_includedir}/%{name}-%{api} %{_datadir}/aclocal/*.m4 %{_datadir}/%{name}-%{api} %{_bindir}/g-ir-* %{_libdir}/%{name} %{_datadir}/gtk-doc/html/gi %dir %{_datadir}/gir-%{api} %{_datadir}/gir-%{api}/DBus-1.0.gir %{_datadir}/gir-%{api}/DBusGLib-1.0.gir %{_datadir}/gir-%{api}/GIRepository-2.0.gir %{_datadir}/gir-%{api}/GL-1.0.gir %{_datadir}/gir-%{api}/GLib-2.0.gir %{_datadir}/gir-%{api}/GModule-2.0.gir %{_datadir}/gir-%{api}/GObject-2.0.gir %{_datadir}/gir-%{api}/Gio-2.0.gir %{_datadir}/gir-%{api}/cairo-1.0.gir %{_datadir}/gir-%{api}/fontconfig-2.0.gir %{_datadir}/gir-%{api}/freetype2-2.0.gir %{_datadir}/gir-%{api}/libxml2-2.0.gir %{_datadir}/gir-%{api}/xfixes-4.0.gir %{_datadir}/gir-%{api}/xft-2.0.gir %{_datadir}/gir-%{api}/xlib-2.0.gir %{_datadir}/gir-%{api}/xrandr-1.3.gir %{_mandir}/man1/* %{_libdir}/*.la