]>
Commit | Line | Data |
---|---|---|
14a7d833 | 1 | # |
37d665c0 | 2 | # Conditional build: |
d64d6d6e JB |
3 | %bcond_without cairo # cairo support |
4 | %bcond_without static_libs # static library | |
5 | %bcond_without apidocs # API documentation | |
d0b4172e | 6 | |
eb4f3d1d | 7 | Summary: Introspection for GObject libraries |
cb9f2302 | 8 | Summary(pl.UTF-8): Obserwacja bibliotek GObject |
eb4f3d1d | 9 | Name: gobject-introspection |
39257114 | 10 | Version: 1.60.2 |
b8f5484e | 11 | Release: 1 |
d03649a9 | 12 | License: LGPL v2+ (giscanner) and GPL v2+ (tools) |
eb4f3d1d | 13 | Group: Libraries |
4f13b08b | 14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/1.60/%{name}-%{version}.tar.xz |
39257114 | 15 | # Source0-md5: 57c1c5dcf3d0a9aa73d06c2d5e6960d7 |
d64d6d6e | 16 | URL: https://wiki.gnome.org/action/show/Projects/GObjectIntrospection |
531b0cb0 | 17 | BuildRequires: autoconf >= 2.63 |
f3d59e96 | 18 | BuildRequires: autoconf-archive |
531b0cb0 | 19 | BuildRequires: automake >= 1:1.11 |
d03649a9 | 20 | BuildRequires: bison |
37d665c0 | 21 | %{?with_cairo:BuildRequires: cairo-gobject-devel} |
b78f8f11 | 22 | BuildRequires: flex |
f3d59e96 | 23 | BuildRequires: glib2-devel >= 1:2.58.0 |
b78f8f11 | 24 | BuildRequires: glibc-misc |
99d63db7 ŁK |
25 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.19} |
26 | BuildRequires: libffi-devel >= 3.0.0 | |
b9e29cb6 | 27 | BuildRequires: libtool >= 2:2.2 |
eb4f3d1d | 28 | BuildRequires: pkgconfig |
4f13b08b JP |
29 | BuildRequires: python3 >= 1:3.4 |
30 | BuildRequires: python3-Mako | |
31 | BuildRequires: python3-devel >= 1:3.4 | |
32 | BuildRequires: python3-markdown | |
33 | BuildRequires: python3-modules >= 1:3.4 | |
b78f8f11 | 34 | BuildRequires: rpm-pythonprov |
531b0cb0 AF |
35 | BuildRequires: tar >= 1:1.22 |
36 | BuildRequires: xz | |
63b31c30 | 37 | BuildRequires: zlib-devel |
f3d59e96 | 38 | Requires: glib2 >= 1:2.58.0 |
7fc4c9c0 | 39 | Obsoletes: gobject-introspection-libs < %{version}-%{release} |
eb4f3d1d | 40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | Tools for introspecting GObject-based frameworks. | |
44 | ||
cb9f2302 JB |
45 | %description -l pl.UTF-8 |
46 | Narzędzia do obserwacji szkieletów opartych na bibliotece GObject. | |
47 | ||
eb4f3d1d | 48 | %package devel |
49 | Summary: Header files for gobject-introspection library | |
cb9f2302 | 50 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gobject-introspection |
eb4f3d1d | 51 | Group: Development/Libraries |
7fc4c9c0 | 52 | Requires: %{name} = %{version}-%{release} |
14a7d833 | 53 | Requires: glib2-devel >= 1:2.58.0 |
99d63db7 | 54 | Requires: libffi-devel >= 3.0.0 |
4f13b08b JP |
55 | Requires: python3-Mako |
56 | Requires: python3-modules >= 1:3.4 | |
d0b4172e ER |
57 | # for ldd |
58 | Requires: glibc-misc | |
02cd345f JB |
59 | # vala 0.18 seems to fail on recently generated .gir files |
60 | Conflicts: vala < 2:0.20 | |
eb4f3d1d | 61 | |
62 | %description devel | |
63 | Header files for gobject-introspection library. | |
64 | ||
cb9f2302 JB |
65 | %description devel -l pl.UTF-8 |
66 | Pliki nagłówkowe biblioteki gobject-introspection. | |
67 | ||
eb4f3d1d | 68 | %package static |
69 | Summary: Static gobject-introspection library | |
cb9f2302 | 70 | Summary(pl.UTF-8): Statyczna biblioteka gobject-introspection |
eb4f3d1d | 71 | Group: Development/Libraries |
72 | Requires: %{name}-devel = %{version}-%{release} | |
73 | ||
74 | %description static | |
75 | Static gobject-introspection library. | |
76 | ||
cb9f2302 JB |
77 | %description static -l pl.UTF-8 |
78 | Statyczna biblioteka gobject-introspection. | |
79 | ||
cdd85f97 PZ |
80 | %package apidocs |
81 | Summary: gobject-introspection API documentation | |
82 | Summary(pl.UTF-8): Dokumentacja API gobject-introspection | |
83 | Group: Documentation | |
84 | Requires: gtk-doc-common | |
b04364d3 ER |
85 | %if "%{_rpmversion}" >= "5" |
86 | BuildArch: noarch | |
87 | %endif | |
cdd85f97 PZ |
88 | |
89 | %description apidocs | |
90 | gobject-introspection API documentation. | |
91 | ||
92 | %description apidocs -l pl.UTF-8 | |
93 | Dokumentacja API gobject-introspection. | |
94 | ||
eb4f3d1d | 95 | %prep |
96 | %setup -q | |
eb4f3d1d | 97 | |
98 | %build | |
99 | %{__libtoolize} | |
100 | %{__aclocal} -I m4 | |
101 | %{__autoconf} | |
102 | %{__autoheader} | |
103 | %{__automake} | |
bc513ae5 | 104 | %configure \ |
37d665c0 | 105 | %{!?with_cairo:--disable-tests} \ |
cdd85f97 | 106 | --disable-silent-rules \ |
3b54d10a ŁK |
107 | %{__enable_disable apidocs gtk-doc} \ |
108 | %{__enable_disable static_libs static} \ | |
cdd85f97 | 109 | --with-html-dir=%{_gtkdocdir} |
74d1aab2 | 110 | %{__make} \ |
4f13b08b | 111 | pkgpyexecdir=%{py3_sitedir}/giscanner |
eb4f3d1d | 112 | |
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
d64d6d6e | 115 | |
eb4f3d1d | 116 | %{__make} install \ |
4f13b08b | 117 | pkgpyexecdir=%{py3_sitedir}/giscanner \ |
eb4f3d1d | 118 | DESTDIR=$RPM_BUILD_ROOT |
119 | ||
4f13b08b | 120 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/giscanner/*.{a,la} \ |
d64d6d6e | 121 | $RPM_BUILD_ROOT%{_libdir}/*.la |
d03649a9 | 122 | |
eb4f3d1d | 123 | %clean |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
7fc4c9c0 PZ |
126 | %post -p /sbin/ldconfig |
127 | %postun -p /sbin/ldconfig | |
eb4f3d1d | 128 | |
129 | %files | |
130 | %defattr(644,root,root,755) | |
f3d59e96 | 131 | %doc NEWS README.rst TODO |
0bee94df | 132 | %attr(755,root,root) %{_libdir}/libgirepository-1.0.so.*.*.* |
cdd85f97 | 133 | %attr(755,root,root) %ghost %{_libdir}/libgirepository-1.0.so.1 |
d03649a9 | 134 | %dir %{_libdir}/girepository-1.0 |
647651c4 JB |
135 | %{_libdir}/girepository-1.0/DBus-1.0.typelib |
136 | %{_libdir}/girepository-1.0/DBusGLib-1.0.typelib | |
137 | %{_libdir}/girepository-1.0/GIRepository-2.0.typelib | |
138 | %{_libdir}/girepository-1.0/GL-1.0.typelib | |
139 | %{_libdir}/girepository-1.0/GLib-2.0.typelib | |
140 | %{_libdir}/girepository-1.0/GModule-2.0.typelib | |
141 | %{_libdir}/girepository-1.0/GObject-2.0.typelib | |
142 | %{_libdir}/girepository-1.0/Gio-2.0.typelib | |
143 | %{_libdir}/girepository-1.0/cairo-1.0.typelib | |
144 | %{_libdir}/girepository-1.0/fontconfig-2.0.typelib | |
145 | %{_libdir}/girepository-1.0/freetype2-2.0.typelib | |
146 | %{_libdir}/girepository-1.0/libxml2-2.0.typelib | |
af9c8f41 | 147 | %{_libdir}/girepository-1.0/win32-1.0.typelib |
647651c4 JB |
148 | %{_libdir}/girepository-1.0/xfixes-4.0.typelib |
149 | %{_libdir}/girepository-1.0/xft-2.0.typelib | |
150 | %{_libdir}/girepository-1.0/xlib-2.0.typelib | |
151 | %{_libdir}/girepository-1.0/xrandr-1.3.typelib | |
eb4f3d1d | 152 | |
153 | %files devel | |
154 | %defattr(644,root,root,755) | |
dc48bd4c | 155 | %attr(755,root,root) %{_bindir}/g-ir-annotation-tool |
cd5f239a | 156 | %attr(755,root,root) %{_bindir}/g-ir-compiler |
555bfc72 | 157 | %attr(755,root,root) %{_bindir}/g-ir-doc-tool |
cd5f239a | 158 | %attr(755,root,root) %{_bindir}/g-ir-generate |
46e8f997 | 159 | %attr(755,root,root) %{_bindir}/g-ir-inspect |
cd5f239a | 160 | %attr(755,root,root) %{_bindir}/g-ir-scanner |
7fc4c9c0 PZ |
161 | %{_mandir}/man1/g-ir-compiler.1* |
162 | %{_mandir}/man1/g-ir-generate.1* | |
163 | %{_mandir}/man1/g-ir-scanner.1* | |
d03649a9 | 164 | %attr(755,root,root) %{_libdir}/libgirepository-1.0.so |
cb9f2302 JB |
165 | %{_includedir}/gobject-introspection-1.0 |
166 | %{_pkgconfigdir}/gobject-introspection-1.0.pc | |
167 | %{_pkgconfigdir}/gobject-introspection-no-export-1.0.pc | |
168 | %{_aclocaldir}/introspection.m4 | |
0c1ce70f MB |
169 | %dir %{_libdir}/gobject-introspection |
170 | %dir %{_libdir}/gobject-introspection/giscanner | |
171 | %{_libdir}/gobject-introspection/giscanner/doctemplates | |
cd5f239a | 172 | %dir %{_datadir}/gir-1.0 |
647651c4 JB |
173 | %{_datadir}/gir-1.0/DBus-1.0.gir |
174 | %{_datadir}/gir-1.0/DBusGLib-1.0.gir | |
175 | %{_datadir}/gir-1.0/GIRepository-2.0.gir | |
176 | %{_datadir}/gir-1.0/GL-1.0.gir | |
177 | %{_datadir}/gir-1.0/GLib-2.0.gir | |
178 | %{_datadir}/gir-1.0/GModule-2.0.gir | |
179 | %{_datadir}/gir-1.0/GObject-2.0.gir | |
180 | %{_datadir}/gir-1.0/Gio-2.0.gir | |
181 | %{_datadir}/gir-1.0/cairo-1.0.gir | |
182 | %{_datadir}/gir-1.0/fontconfig-2.0.gir | |
183 | %{_datadir}/gir-1.0/freetype2-2.0.gir | |
3c7a0e92 | 184 | %{_datadir}/gir-1.0/gir-1.2.rnc |
647651c4 | 185 | %{_datadir}/gir-1.0/libxml2-2.0.gir |
af9c8f41 | 186 | %{_datadir}/gir-1.0/win32-1.0.gir |
647651c4 JB |
187 | %{_datadir}/gir-1.0/xfixes-4.0.gir |
188 | %{_datadir}/gir-1.0/xft-2.0.gir | |
189 | %{_datadir}/gir-1.0/xlib-2.0.gir | |
190 | %{_datadir}/gir-1.0/xrandr-1.3.gir | |
abb75853 | 191 | %{_datadir}/gobject-introspection-1.0 |
4f13b08b JP |
192 | %dir %{py3_sitedir}/giscanner |
193 | %{py3_sitedir}/giscanner/*.py | |
194 | %dir %{py3_sitedir}/giscanner/__pycache__ | |
195 | %{py3_sitedir}/giscanner/__pycache__/*.py[co] | |
196 | %attr(755,root,root) %{py3_sitedir}/giscanner/_giscanner.so | |
eb4f3d1d | 197 | |
3b54d10a | 198 | %if %{with static_libs} |
eb4f3d1d | 199 | %files static |
200 | %defattr(644,root,root,755) | |
d03649a9 | 201 | %{_libdir}/libgirepository-1.0.a |
3b54d10a | 202 | %endif |
cdd85f97 | 203 | |
3b54d10a | 204 | %if %{with apidocs} |
cdd85f97 PZ |
205 | %files apidocs |
206 | %defattr(644,root,root,755) | |
207 | %{_gtkdocdir}/gi | |
3b54d10a | 208 | %endif |