diff options
Diffstat (limited to 'gobject-introspection.spec')
-rw-r--r-- | gobject-introspection.spec | 156 |
1 files changed, 156 insertions, 0 deletions
diff --git a/gobject-introspection.spec b/gobject-introspection.spec new file mode 100644 index 0000000..b4f413e --- /dev/null +++ b/gobject-introspection.spec @@ -0,0 +1,156 @@ +%global glib2_version 2.76.0 + +Name: gobject-introspection +Version: 1.76.1 +Release: 3 +Summary: Introspection system for GObject-based libraries +License: GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-2-Clause +URL: https://gi.readthedocs.io/ +Source0: https://download.gnome.org/sources/gobject-introspection/1.76/%{name}-%{version}.tar.xz +# gi-find-deps.sh is a rpm helper from openSUSE for Provides and Requires. +# Script creates typelib()-style Provides/Requires. +Source1: gi-find-deps.sh +Source2: gobjectintrospection.attr +Source3: gobject-introspection-typelib.template + +BuildRequires: gcc +BuildRequires: meson >= 0.60.0 +BuildRequires: pkgconfig(cairo) +BuildRequires: pkgconfig(cairo-gobject) +BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version} +BuildRequires: pkgconfig(gio-unix-2.0) >= %{glib2_version} +BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version} +BuildRequires: pkgconfig(gmodule-2.0) >= %{glib2_version} +BuildRequires: pkgconfig(gobject-2.0) >= %{glib2_version} +BuildRequires: pkgconfig(libffi) +BuildRequires: python3-devel >= 3.6 +BuildRequires: python3-mako +BuildRequires: python3-markdown +BuildRequires: gtk-doc +BuildRequires: /usr/bin/bison +BuildRequires: /usr/bin/flex +Requires: glib2%{?_isa} >= %{glib2_version} +# Provide typelib() symbols based on gobject-introspection-typelib.template +# The template is checked during install if it matches the installed *.typelib files. +%(cat %{S:3} | awk '{ print "Provides: " $0}') + +%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: glib2%{?_isa} >= %{glib2_version} +Requires: libtool +Requires: /usr/bin/file +Requires: /usr/bin/pcre2grep +Requires: python3-libxml2 +Requires: python3-mako +Requires: python3-markdown +Requires: python(abi) = %{python3_version} + +%description devel +Libraries and headers for gobject-introspection + +%package_help + +%prep +%autosetup -p1 + +%build +%meson -Ddoctool=enabled -Dgtk_doc=true -Dpython=%{__python3} +%meson_build + +%install +%meson_install + +install -D %{S:1} %{buildroot}%{_rpmconfigdir}/gi-find-deps.sh +install -D %{S:2} -m 0644 %{buildroot}%{_fileattrsdir}/gobjectintrospection.attr + +%check +%meson_test + +# comparing, if we provide all the symbols expected. +ls %{buildroot}%{_libdir}/girepository-1.0/*.typelib | bash %{S:1} -P > gobject-introspection-typelib.installed +diff -s %{S:3} gobject-introspection-typelib.installed + +%files +%license COPYING COPYING.GPL COPYING.LGPL +%{_libdir}/lib*.so.* +%dir %{_libdir}/girepository-1.0 +%{_libdir}/girepository-1.0/*.typelib + +%files devel +%{_bindir}/g-ir-* +%{_libdir}/lib*.so +%{_libdir}/gobject-introspection/ +%{_libdir}/pkgconfig/* +%{_datadir}/gir-1.0 +%{_datadir}/gobject-introspection-1.0 +%{_datadir}/aclocal/introspection.m4 +%{_includedir}/* +%{_rpmconfigdir}/gi-find-deps.sh +%{_fileattrsdir}/gobjectintrospection.attr + +%files help +%doc NEWS README.rst +%dir %{_datadir}/gtk-doc +%dir %{_datadir}/gtk-doc/html +%{_datadir}/gtk-doc/html/gi +%{_mandir}/man1/*.1* + +%changelog +* Mon Oct 14 2024 Funda Wang <fundawang@yeah.net> - 1.76.1-3 +- check typelib provides against installed typelib libs + +* Mon Sep 23 2024 Funda Wang <fundawang@yeah.net> - 1.76.1-2 +- Add gi-find-deps script from openSUSE to ease dependency solving + +* Sat Jan 27 2024 shixuantong <shixuantong1@huawei.com> - 1.76.1-1 +- upgrade version to 1.76.1 + +* Thu May 25 2023 fuanan <fuanan3@h-partners.com> - 1.74.0-2 +- enable test in check + +* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 1.74.0-1 +- update to 1.74.0 + +* Tue Oct 25 2022 yanglongkang <yanglongkang@h-partners.com> - 1.72.0-2 +- rebuild for next release + +* Fri Apr 22 2022 dillon chen <dillon.chen@gmail.com> - 1.72.0-1 +- Update to 1.72.0 + +* Sun Dec 26 2021 tianwei <tianwei12@huawei.com> - 1.70.0-1 +- upgrade version to 1.70.0 + +* Thu Jul 22 2021 wuchaochao <wuchaochao4@huawei.com> - 1.66.1-2 +- Remove BuildRequires gdb + +* Wed May 19 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 1.66.1-1 +- Upgrade to 1.66.1 +- Update Version, Release, Source0 + +* Mon Sep 14 2020 Leo Fang <leofang_94@163.com> - 1.64.1-2 +- update Source0 in spec + +* Fri Jul 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.64.1-1 +- update software to v1.64.1 + +* Sat Mar 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.58.0-6 +- fixbug in self-building + +* Wed Nov 20 2019 fangyufa<fangyufa1@huawei.com> - 1.58.0-5 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix build problem for x86_64 + +* Tue Oct 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.58.0-4 +- fix provides for main package and devel + +* Mon Oct 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.58.0-3 +- Package init |