commit b722b8aae7bb20325afec08fb2da69b7a9191f53 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:41:19 2019 -0400 Package init diff --git a/gobject-introspection-1.58.0.tar.xz b/gobject-introspection-1.58.0.tar.xz new file mode 100644 index 0000000..08cd9ab Binary files /dev/null and b/gobject-introspection-1.58.0.tar.xz differ diff --git a/gobject-introspection.spec b/gobject-introspection.spec new file mode 100644 index 0000000..310fbb5 --- /dev/null +++ b/gobject-introspection.spec @@ -0,0 +1,90 @@ +%global glib2_version 2.58.0 + +%global __python %{__python3} + +Name: gobject-introspection +Version: 1.58.0 +Release: 3 +Summary: Introspection system for GObject-based libraries + +License: GPLv2+, LGPLv2+, MIT +URL: https://wiki.gnome.org/Projects/GObjectIntrospection +Source0: https://download.gnome.org/sources/gobject-introspection/1.58/%{name}-%{version}.tar.xz + +BuildRequires: gcc bison cairo-gobject-devel chrpath flex fontconfig-devel freetype-devel gettext glib2-devel >= %{glib2_version} gtk-doc libffi-devel libX11-devel libXfixes-devel libXft-devel libxml2-devel mesa-libGL-devel python3-devel python3-mako python3-markdown + +Requires: glib2%{?_isa} >= %{glib2_version} + +%description +GObject Introspection can scan C header and source files in order to +generate introspection "typelib" files. It also provides an API to examine +typelib files, useful for creating language bindings among other +things. + +%package devel +Summary: Libraries and headers for gobject-introspection +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: libtool +Requires: python3-mako + +%description devel +Libraries and headers for gobject-introspection + +%package help +Summary: Manuals for gobject-introspection + +%description help +Manuals for gobject-introspection + +%prep +%autosetup -p1 + +%build +%configure --enable-gtk-doc --enable-doctool --with-python=%{__python3} +%make_build OPTIMIZE="%{optflags}" + +%install +rm -rf $RPM_BUILD_ROOT +%make_install + +# Remove lib64 rpaths +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/g-ir-compiler +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/g-ir-generate +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/g-ir-inspect + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT" + +%post +/sbin/ldconfig + +%postun +if [ "$1" = "0" ]; then +/sbin/ldconfig +fi + +%files +%license COPYING +%{_libdir}/lib*.so.* +%dir %{_libdir}/girepository-1.0 +%{_libdir}/girepository-1.0/*.typelib +%{_libdir}/* +%exclude %{_prefix}/src +%exclude %{_libdir}/*.{a,la} +%exclude %{_libdir}/%{name}/giscanner/*.{a,la} + +%files devel +%{_libdir}/lib*.so +%{_libdir}/gobject-introspection/ +%{_libdir}/pkgconfig/* +%{_includedir}/* +%{_bindir}/g-ir-* + +%files help +%{_datadir}/gir-1.0 +%{_datadir}/gobject-introspection-1.0/ +%{_datadir}/aclocal/introspection.m4 +%{_mandir}/man1/*.gz +%{_datadir}/gtk-doc/html/gi/ + +%changelog