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