]>
Commit | Line | Data |
---|---|---|
14a7d833 | 1 | # |
37d665c0 | 2 | # Conditional build: |
d64d6d6e | 3 | %bcond_without cairo # cairo support |
d64d6d6e | 4 | %bcond_without apidocs # API documentation |
a0c12f9c | 5 | %bcond_with bootstrap # bootstrap from glib < 2.80 |
d0b4172e | 6 | |
eb4f3d1d | 7 | Summary: Introspection for GObject libraries |
cb9f2302 | 8 | Summary(pl.UTF-8): Obserwacja bibliotek GObject |
eb4f3d1d | 9 | Name: gobject-introspection |
d3602b7e | 10 | Version: 1.80.1 |
23bddae6 | 11 | Release: 1 |
a0c12f9c | 12 | License: LGPL v2+ (libraries, giscanner) and GPL v2+ (tools) |
eb4f3d1d | 13 | Group: Libraries |
a0c12f9c | 14 | Source0: https://download.gnome.org/sources/gobject-introspection/1.80/%{name}-%{version}.tar.xz |
d3602b7e | 15 | # Source0-md5: ef1496a7a7abfcd31d25b3459ea86ebb |
a0c12f9c JB |
16 | Source1: https://download.gnome.org/sources/glib/2.80/glib-2.80.0.tar.xz |
17 | # Source1-md5: 3a51e2803ecd22c2dadcd07d9475ebe3 | |
8666fa2e | 18 | URL: https://wiki.gnome.org/Projects/GObjectIntrospection |
9a6b2a11 | 19 | BuildRequires: automake |
d03649a9 | 20 | BuildRequires: bison |
37d665c0 | 21 | %{?with_cairo:BuildRequires: cairo-gobject-devel} |
b78f8f11 | 22 | BuildRequires: flex |
5898e001 | 23 | BuildRequires: gcc >= 5:3.2 |
a0c12f9c | 24 | %{!?with_bootstrap:BuildRequires: glib2-devel >= 1:2.80.0} |
b78f8f11 | 25 | BuildRequires: glibc-misc |
99d63db7 | 26 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.19} |
a0c12f9c JB |
27 | BuildRequires: libffi-devel >= 7:3.4 |
28 | BuildRequires: meson >= 1.2.0 | |
b488975b | 29 | BuildRequires: ninja >= 1.5 |
eb4f3d1d | 30 | BuildRequires: pkgconfig |
3266b451 | 31 | BuildRequires: python3 >= 1:3.6 |
4f13b08b | 32 | BuildRequires: python3-Mako |
3266b451 | 33 | BuildRequires: python3-devel >= 1:3.6 |
4f13b08b | 34 | BuildRequires: python3-markdown |
3266b451 | 35 | BuildRequires: python3-modules >= 1:3.6 |
0f7e7e87 | 36 | BuildRequires: rpm-build >= 4.6 |
b78f8f11 | 37 | BuildRequires: rpm-pythonprov |
443f30b2 | 38 | BuildRequires: rpmbuild(macros) >= 1.752 |
531b0cb0 AF |
39 | BuildRequires: tar >= 1:1.22 |
40 | BuildRequires: xz | |
63b31c30 | 41 | BuildRequires: zlib-devel |
a0c12f9c JB |
42 | Requires: glib2 >= 1:2.80.0 |
43 | Requires: libffi >= 7:3.4 | |
7fc4c9c0 | 44 | Obsoletes: gobject-introspection-libs < %{version}-%{release} |
eb4f3d1d | 45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
48 | Tools for introspecting GObject-based frameworks. | |
49 | ||
cb9f2302 JB |
50 | %description -l pl.UTF-8 |
51 | Narzędzia do obserwacji szkieletów opartych na bibliotece GObject. | |
52 | ||
eb4f3d1d | 53 | %package devel |
54 | Summary: Header files for gobject-introspection library | |
cb9f2302 | 55 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gobject-introspection |
eb4f3d1d | 56 | Group: Development/Libraries |
7fc4c9c0 | 57 | Requires: %{name} = %{version}-%{release} |
a0c12f9c JB |
58 | Requires: glib2-devel >= 1:2.80.0 |
59 | Requires: libffi-devel >= 7:3.4 | |
4f13b08b | 60 | Requires: python3-Mako |
3266b451 | 61 | Requires: python3-modules >= 1:3.6 |
d0b4172e ER |
62 | # for ldd |
63 | Requires: glibc-misc | |
b488975b | 64 | Obsoletes: gobject-introspection-static < 1.62 |
02cd345f JB |
65 | # vala 0.18 seems to fail on recently generated .gir files |
66 | Conflicts: vala < 2:0.20 | |
eb4f3d1d | 67 | |
68 | %description devel | |
69 | Header files for gobject-introspection library. | |
70 | ||
cb9f2302 JB |
71 | %description devel -l pl.UTF-8 |
72 | Pliki nagłówkowe biblioteki gobject-introspection. | |
73 | ||
cdd85f97 PZ |
74 | %package apidocs |
75 | Summary: gobject-introspection API documentation | |
76 | Summary(pl.UTF-8): Dokumentacja API gobject-introspection | |
77 | Group: Documentation | |
78 | Requires: gtk-doc-common | |
cead63ac | 79 | BuildArch: noarch |
cdd85f97 PZ |
80 | |
81 | %description apidocs | |
82 | gobject-introspection API documentation. | |
83 | ||
84 | %description apidocs -l pl.UTF-8 | |
85 | Dokumentacja API gobject-introspection. | |
86 | ||
eb4f3d1d | 87 | %prep |
a0c12f9c JB |
88 | %setup -q %{?with_bootstrap:-a1} |
89 | ||
90 | %if %{with bootstrap} | |
91 | %{__mv} glib-2.80.0 subprojects/glib | |
92 | %endif | |
eb4f3d1d | 93 | |
70a5631e | 94 | %{__sed} -i -e "s,^giscannerdir[[:space:]]*=[[:space:]]*.*,giscannerdir='%{py3_sitedir}/giscanner'," giscanner/meson.build |
0f7e7e87 | 95 | %{__sed} -i -e '/python_cmd =/ s,/usr/bin/env python@0@,/usr/bin/python@0@,' tools/meson.build |
70a5631e | 96 | |
eb4f3d1d | 97 | %build |
70a5631e | 98 | %meson build \ |
2c6780c7 | 99 | -Ddoctool=enabled \ |
70a5631e JP |
100 | -Dgtk_doc=%{__true_false apidocs} |
101 | ||
102 | %ninja_build -C build | |
eb4f3d1d | 103 | |
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
d64d6d6e | 106 | |
70a5631e | 107 | %ninja_install -C build |
eb4f3d1d | 108 | |
70a5631e JP |
109 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} |
110 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
d03649a9 | 111 | |
a0c12f9c JB |
112 | %if %{with bootstrap} |
113 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{gapplication,gdbus*,gi-*,gio*,glib-*,gobject-*,gresource,gsettings,gtester*} | |
114 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/{gio-unix-2.0,glib-2.0} | |
115 | %{__rm} $RPM_BUILD_ROOT%{_libexecdir}/gio-launch-desktop | |
116 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{gio,girepository,glib,gmodule,gobject,gthread}-2.0.* | |
117 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/{gio,glib-2.0} | |
118 | %{__rm} $RPM_BUILD_ROOT%{_pkgconfigdir}/{gio,gio-unix,girepository,glib,gmodule,gmodule-export,gmodule-no-export,gobject,gthread}-2.0.pc | |
119 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load/usr/%{_lib}/lib{glib,gobject}-2.0.* | |
120 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/gettext/its/gschema.* | |
121 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/glib-2.0 | |
122 | %{__rm} $RPM_BUILD_ROOT%{_aclocaldir}/{glib-2.0,glib-gettext,gsettings}.m4 | |
123 | %{__rm} $RPM_BUILD_ROOT%{bash_compdir}/{gapplication,gdbus,gio,gresource,gsettings} | |
124 | %{__rm} $RPM_BUILD_ROOT%{_localedir}/*/LC_MESSAGES/glib20.mo | |
125 | %endif | |
126 | ||
eb4f3d1d | 127 | %clean |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
7fc4c9c0 PZ |
130 | %post -p /sbin/ldconfig |
131 | %postun -p /sbin/ldconfig | |
eb4f3d1d | 132 | |
133 | %files | |
134 | %defattr(644,root,root,755) | |
a0c12f9c | 135 | %doc COPYING NEWS README.rst |
0bee94df | 136 | %attr(755,root,root) %{_libdir}/libgirepository-1.0.so.*.*.* |
cdd85f97 | 137 | %attr(755,root,root) %ghost %{_libdir}/libgirepository-1.0.so.1 |
d03649a9 | 138 | %dir %{_libdir}/girepository-1.0 |
647651c4 JB |
139 | %{_libdir}/girepository-1.0/DBus-1.0.typelib |
140 | %{_libdir}/girepository-1.0/DBusGLib-1.0.typelib | |
141 | %{_libdir}/girepository-1.0/GIRepository-2.0.typelib | |
142 | %{_libdir}/girepository-1.0/GL-1.0.typelib | |
70a5631e | 143 | %{_libdir}/girepository-1.0/Vulkan-1.0.typelib |
647651c4 JB |
144 | %{_libdir}/girepository-1.0/cairo-1.0.typelib |
145 | %{_libdir}/girepository-1.0/fontconfig-2.0.typelib | |
146 | %{_libdir}/girepository-1.0/freetype2-2.0.typelib | |
147 | %{_libdir}/girepository-1.0/libxml2-2.0.typelib | |
af9c8f41 | 148 | %{_libdir}/girepository-1.0/win32-1.0.typelib |
647651c4 JB |
149 | %{_libdir}/girepository-1.0/xfixes-4.0.typelib |
150 | %{_libdir}/girepository-1.0/xft-2.0.typelib | |
151 | %{_libdir}/girepository-1.0/xlib-2.0.typelib | |
152 | %{_libdir}/girepository-1.0/xrandr-1.3.typelib | |
eb4f3d1d | 153 | |
154 | %files devel | |
155 | %defattr(644,root,root,755) | |
dc48bd4c | 156 | %attr(755,root,root) %{_bindir}/g-ir-annotation-tool |
cd5f239a | 157 | %attr(755,root,root) %{_bindir}/g-ir-compiler |
555bfc72 | 158 | %attr(755,root,root) %{_bindir}/g-ir-doc-tool |
cd5f239a | 159 | %attr(755,root,root) %{_bindir}/g-ir-generate |
46e8f997 | 160 | %attr(755,root,root) %{_bindir}/g-ir-inspect |
cd5f239a | 161 | %attr(755,root,root) %{_bindir}/g-ir-scanner |
7fc4c9c0 | 162 | %{_mandir}/man1/g-ir-compiler.1* |
914f2e2f | 163 | %{_mandir}/man1/g-ir-doc-tool.1* |
7fc4c9c0 PZ |
164 | %{_mandir}/man1/g-ir-generate.1* |
165 | %{_mandir}/man1/g-ir-scanner.1* | |
d03649a9 | 166 | %attr(755,root,root) %{_libdir}/libgirepository-1.0.so |
cb9f2302 JB |
167 | %{_includedir}/gobject-introspection-1.0 |
168 | %{_pkgconfigdir}/gobject-introspection-1.0.pc | |
169 | %{_pkgconfigdir}/gobject-introspection-no-export-1.0.pc | |
170 | %{_aclocaldir}/introspection.m4 | |
cd5f239a | 171 | %dir %{_datadir}/gir-1.0 |
647651c4 JB |
172 | %{_datadir}/gir-1.0/DBus-1.0.gir |
173 | %{_datadir}/gir-1.0/DBusGLib-1.0.gir | |
174 | %{_datadir}/gir-1.0/GIRepository-2.0.gir | |
175 | %{_datadir}/gir-1.0/GL-1.0.gir | |
70a5631e | 176 | %{_datadir}/gir-1.0/Vulkan-1.0.gir |
647651c4 JB |
177 | %{_datadir}/gir-1.0/cairo-1.0.gir |
178 | %{_datadir}/gir-1.0/fontconfig-2.0.gir | |
179 | %{_datadir}/gir-1.0/freetype2-2.0.gir | |
3c7a0e92 | 180 | %{_datadir}/gir-1.0/gir-1.2.rnc |
647651c4 | 181 | %{_datadir}/gir-1.0/libxml2-2.0.gir |
af9c8f41 | 182 | %{_datadir}/gir-1.0/win32-1.0.gir |
647651c4 JB |
183 | %{_datadir}/gir-1.0/xfixes-4.0.gir |
184 | %{_datadir}/gir-1.0/xft-2.0.gir | |
185 | %{_datadir}/gir-1.0/xlib-2.0.gir | |
186 | %{_datadir}/gir-1.0/xrandr-1.3.gir | |
abb75853 | 187 | %{_datadir}/gobject-introspection-1.0 |
4f13b08b JP |
188 | %dir %{py3_sitedir}/giscanner |
189 | %{py3_sitedir}/giscanner/*.py | |
190 | %dir %{py3_sitedir}/giscanner/__pycache__ | |
191 | %{py3_sitedir}/giscanner/__pycache__/*.py[co] | |
70a5631e JP |
192 | %{py3_sitedir}/giscanner/doctemplates |
193 | %attr(755,root,root) %{py3_sitedir}/giscanner/_giscanner.cpython-*.so | |
cdd85f97 | 194 | |
3b54d10a | 195 | %if %{with apidocs} |
cdd85f97 PZ |
196 | %files apidocs |
197 | %defattr(644,root,root,755) | |
198 | %{_gtkdocdir}/gi | |
3b54d10a | 199 | %endif |