gobject-introspection/gobject-introspection.spec

105 lines
2.7 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:41:19 -04:00
%global glib2_version 2.58.0
%global __python %{__python3}
Name: gobject-introspection
Version: 1.66.1
2021-07-22 17:16:46 +08:00
Release: 2
2019-09-30 10:41:19 -04:00
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.66/%{name}-%{version}.tar.xz
2019-09-30 10:41:19 -04:00
2021-07-22 17:16:46 +08:00
BuildRequires: gcc bison cairo-gobject-devel chrpath flex fontconfig-devel freetype-devel gettext glib2-devel >= %{glib2_version} libxslt meson
2019-11-06 19:08:51 +08:00
BuildRequires: gtk-doc libffi-devel libX11-devel libXfixes-devel libXft-devel libxml2-devel mesa-libGL-devel python3-devel python3-mako python3-markdown
2019-09-30 10:41:19 -04:00
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
2019-11-06 19:08:51 +08:00
%package_help
2019-09-30 10:41:19 -04:00
%prep
%autosetup -p1
%build
2020-07-24 16:30:40 +08:00
%meson -Ddoctool=enabled -Dgtk_doc=true -Dpython=%{__python3}
%meson_build
2019-09-30 10:41:19 -04:00
%install
2020-07-24 16:30:40 +08:00
%meson_install
2019-09-30 10:41:19 -04:00
%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
%files devel
2019-11-06 19:08:51 +08:00
%{_bindir}/g-ir-*
2019-09-30 10:41:19 -04:00
%{_libdir}/lib*.so
%{_libdir}/gobject-introspection/
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0
%{_datadir}/gobject-introspection-1.0/
%{_datadir}/aclocal/introspection.m4
%{_datadir}/gtk-doc/html/gi/
2019-11-06 19:08:51 +08:00
%{_includedir}/*
%files help
%{_mandir}/man1/*.gz
2019-09-30 10:41:19 -04:00
%changelog
2021-07-22 17:16:46 +08:00
* 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
2020-07-24 16:30:40 +08:00
* Fri Jul 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.64.1-1
- update software to v1.64.1
2020-03-14 17:05:14 +08:00
* Sat Mar 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.58.0-6
- fixbug in self-building
2019-12-13 15:19:07 +08:00
* 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
2019-11-06 19:08:51 +08:00
* 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