summaryrefslogtreecommitdiff
path: root/gobject-introspection.spec
blob: 1eb74151b1fb41eaa8614e9f2cad32f0298023ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
%global glib2_version 2.76.0

Name:           gobject-introspection
Version:        1.76.1
Release:        2
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

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}

%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-xml
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

%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 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