]>
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 |
8666fa2e JB |
9 | Version: 1.66.0 |
10 | Release: 1 | |
d03649a9 | 11 | License: LGPL v2+ (giscanner) and GPL v2+ (tools) |
eb4f3d1d | 12 | Group: Libraries |
8666fa2e JB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/1.66/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 3d23bfa9fed55249043717a8465531c9 | |
15 | URL: https://wiki.gnome.org/Projects/GObjectIntrospection | |
d03649a9 | 16 | BuildRequires: bison |
37d665c0 | 17 | %{?with_cairo:BuildRequires: cairo-gobject-devel} |
b78f8f11 | 18 | BuildRequires: flex |
f3d59e96 | 19 | BuildRequires: glib2-devel >= 1:2.58.0 |
b78f8f11 | 20 | BuildRequires: glibc-misc |
99d63db7 ŁK |
21 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.19} |
22 | BuildRequires: libffi-devel >= 3.0.0 | |
2c6780c7 | 23 | BuildRequires: meson >= 0.50.1 |
b488975b | 24 | BuildRequires: ninja >= 1.5 |
eb4f3d1d | 25 | BuildRequires: pkgconfig |
4f13b08b JP |
26 | BuildRequires: python3 >= 1:3.4 |
27 | BuildRequires: python3-Mako | |
28 | BuildRequires: python3-devel >= 1:3.4 | |
29 | BuildRequires: python3-markdown | |
30 | BuildRequires: python3-modules >= 1:3.4 | |
b78f8f11 | 31 | BuildRequires: rpm-pythonprov |
70a5631e | 32 | BuildRequires: rpmbuild(macros) >= 1.736 |
531b0cb0 AF |
33 | BuildRequires: tar >= 1:1.22 |
34 | BuildRequires: xz | |
63b31c30 | 35 | BuildRequires: zlib-devel |
f3d59e96 | 36 | Requires: glib2 >= 1:2.58.0 |
7fc4c9c0 | 37 | Obsoletes: gobject-introspection-libs < %{version}-%{release} |
eb4f3d1d | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
41 | Tools for introspecting GObject-based frameworks. | |
42 | ||
cb9f2302 JB |
43 | %description -l pl.UTF-8 |
44 | Narzędzia do obserwacji szkieletów opartych na bibliotece GObject. | |
45 | ||
eb4f3d1d | 46 | %package devel |
47 | Summary: Header files for gobject-introspection library | |
cb9f2302 | 48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gobject-introspection |
eb4f3d1d | 49 | Group: Development/Libraries |
7fc4c9c0 | 50 | Requires: %{name} = %{version}-%{release} |
14a7d833 | 51 | Requires: glib2-devel >= 1:2.58.0 |
99d63db7 | 52 | Requires: libffi-devel >= 3.0.0 |
4f13b08b JP |
53 | Requires: python3-Mako |
54 | Requires: python3-modules >= 1:3.4 | |
d0b4172e ER |
55 | # for ldd |
56 | Requires: glibc-misc | |
b488975b | 57 | Obsoletes: gobject-introspection-static < 1.62 |
02cd345f JB |
58 | # vala 0.18 seems to fail on recently generated .gir files |
59 | Conflicts: vala < 2:0.20 | |
eb4f3d1d | 60 | |
61 | %description devel | |
62 | Header files for gobject-introspection library. | |
63 | ||
cb9f2302 JB |
64 | %description devel -l pl.UTF-8 |
65 | Pliki nagłówkowe biblioteki gobject-introspection. | |
66 | ||
cdd85f97 PZ |
67 | %package apidocs |
68 | Summary: gobject-introspection API documentation | |
69 | Summary(pl.UTF-8): Dokumentacja API gobject-introspection | |
70 | Group: Documentation | |
71 | Requires: gtk-doc-common | |
8666fa2e | 72 | %if "%{_rpmversion}" >= "4.6" |
b04364d3 ER |
73 | BuildArch: noarch |
74 | %endif | |
cdd85f97 PZ |
75 | |
76 | %description apidocs | |
77 | gobject-introspection API documentation. | |
78 | ||
79 | %description apidocs -l pl.UTF-8 | |
80 | Dokumentacja API gobject-introspection. | |
81 | ||
eb4f3d1d | 82 | %prep |
83 | %setup -q | |
eb4f3d1d | 84 | |
70a5631e JP |
85 | %{__sed} -i -e "s,^giscannerdir[[:space:]]*=[[:space:]]*.*,giscannerdir='%{py3_sitedir}/giscanner'," giscanner/meson.build |
86 | ||
eb4f3d1d | 87 | %build |
70a5631e | 88 | %meson build \ |
2c6780c7 | 89 | -Ddoctool=enabled \ |
70a5631e JP |
90 | -Dgtk_doc=%{__true_false apidocs} |
91 | ||
92 | %ninja_build -C build | |
eb4f3d1d | 93 | |
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
d64d6d6e | 96 | |
70a5631e | 97 | %ninja_install -C build |
eb4f3d1d | 98 | |
70a5631e JP |
99 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} |
100 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
d03649a9 | 101 | |
2c6780c7 JP |
102 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \ |
103 | $RPM_BUILD_ROOT%{_bindir}/{g-ir-annotation-tool,g-ir-doc-tool,g-ir-scanner} | |
104 | ||
eb4f3d1d | 105 | %clean |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
7fc4c9c0 PZ |
108 | %post -p /sbin/ldconfig |
109 | %postun -p /sbin/ldconfig | |
eb4f3d1d | 110 | |
111 | %files | |
112 | %defattr(644,root,root,755) | |
f3d59e96 | 113 | %doc NEWS README.rst TODO |
0bee94df | 114 | %attr(755,root,root) %{_libdir}/libgirepository-1.0.so.*.*.* |
cdd85f97 | 115 | %attr(755,root,root) %ghost %{_libdir}/libgirepository-1.0.so.1 |
d03649a9 | 116 | %dir %{_libdir}/girepository-1.0 |
647651c4 JB |
117 | %{_libdir}/girepository-1.0/DBus-1.0.typelib |
118 | %{_libdir}/girepository-1.0/DBusGLib-1.0.typelib | |
119 | %{_libdir}/girepository-1.0/GIRepository-2.0.typelib | |
120 | %{_libdir}/girepository-1.0/GL-1.0.typelib | |
121 | %{_libdir}/girepository-1.0/GLib-2.0.typelib | |
122 | %{_libdir}/girepository-1.0/GModule-2.0.typelib | |
123 | %{_libdir}/girepository-1.0/GObject-2.0.typelib | |
124 | %{_libdir}/girepository-1.0/Gio-2.0.typelib | |
70a5631e | 125 | %{_libdir}/girepository-1.0/Vulkan-1.0.typelib |
647651c4 JB |
126 | %{_libdir}/girepository-1.0/cairo-1.0.typelib |
127 | %{_libdir}/girepository-1.0/fontconfig-2.0.typelib | |
128 | %{_libdir}/girepository-1.0/freetype2-2.0.typelib | |
129 | %{_libdir}/girepository-1.0/libxml2-2.0.typelib | |
af9c8f41 | 130 | %{_libdir}/girepository-1.0/win32-1.0.typelib |
647651c4 JB |
131 | %{_libdir}/girepository-1.0/xfixes-4.0.typelib |
132 | %{_libdir}/girepository-1.0/xft-2.0.typelib | |
133 | %{_libdir}/girepository-1.0/xlib-2.0.typelib | |
134 | %{_libdir}/girepository-1.0/xrandr-1.3.typelib | |
eb4f3d1d | 135 | |
136 | %files devel | |
137 | %defattr(644,root,root,755) | |
dc48bd4c | 138 | %attr(755,root,root) %{_bindir}/g-ir-annotation-tool |
cd5f239a | 139 | %attr(755,root,root) %{_bindir}/g-ir-compiler |
555bfc72 | 140 | %attr(755,root,root) %{_bindir}/g-ir-doc-tool |
cd5f239a | 141 | %attr(755,root,root) %{_bindir}/g-ir-generate |
46e8f997 | 142 | %attr(755,root,root) %{_bindir}/g-ir-inspect |
cd5f239a | 143 | %attr(755,root,root) %{_bindir}/g-ir-scanner |
7fc4c9c0 PZ |
144 | %{_mandir}/man1/g-ir-compiler.1* |
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 |