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