]>
Commit | Line | Data |
---|---|---|
63b31c30 | 1 | # TODO: |
2 | # - requires gobject-introspection-devel to build - fix it | |
eb4f3d1d | 3 | Summary: Introspection for GObject libraries |
cb9f2302 | 4 | Summary(pl.UTF-8): Obserwacja bibliotek GObject |
eb4f3d1d | 5 | Name: gobject-introspection |
03973887 | 6 | Version: 0.9.5 |
70c6ce69 | 7 | Release: 1 |
d03649a9 | 8 | License: LGPL v2+ (giscanner) and GPL v2+ (tools) |
eb4f3d1d | 9 | Group: Libraries |
514cea2d | 10 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/0.9/%{name}-%{version}.tar.bz2 |
03973887 | 11 | # Source0-md5: 114684e42d69fdad9d9626dc97e79d7d |
eb4f3d1d | 12 | Patch0: %{name}-libtool.patch |
13 | URL: http://live.gnome.org/GObjectIntrospection | |
14 | BuildRequires: autoconf >= 2.59 | |
15 | BuildRequires: automake >= 1:1.8 | |
d03649a9 | 16 | BuildRequires: bison |
63b31c30 | 17 | BuildRequires: cairo-devel |
b78f8f11 | 18 | BuildRequires: flex |
d03649a9 | 19 | BuildRequires: glib2-devel >= 1:2.16.0 |
b78f8f11 | 20 | BuildRequires: glibc-misc |
04f8c6fe | 21 | BuildRequires: gtk-doc >= 1.12 |
eb4f3d1d | 22 | BuildRequires: libffi-devel |
23 | BuildRequires: libtool | |
24 | BuildRequires: pkgconfig | |
d03649a9 MB |
25 | BuildRequires: python >= 1:2.5 |
26 | BuildRequires: python-devel >= 1:2.5 | |
b78f8f11 | 27 | BuildRequires: python-modules |
28 | BuildRequires: rpm-pythonprov | |
63b31c30 | 29 | BuildRequires: zlib-devel |
7fc4c9c0 | 30 | Obsoletes: gobject-introspection-libs < %{version}-%{release} |
eb4f3d1d | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | Tools for introspecting GObject-based frameworks. | |
35 | ||
cb9f2302 JB |
36 | %description -l pl.UTF-8 |
37 | Narzędzia do obserwacji szkieletów opartych na bibliotece GObject. | |
38 | ||
eb4f3d1d | 39 | %package devel |
40 | Summary: Header files for gobject-introspection library | |
cb9f2302 | 41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gobject-introspection |
eb4f3d1d | 42 | Group: Development/Libraries |
7fc4c9c0 | 43 | Requires: %{name} = %{version}-%{release} |
d03649a9 | 44 | Requires: glib2-devel >= 2.16.0 |
abb75853 | 45 | Requires: libffi-devel |
b78f8f11 | 46 | Requires: python-modules |
eb4f3d1d | 47 | |
48 | %description devel | |
49 | Header files for gobject-introspection library. | |
50 | ||
cb9f2302 JB |
51 | %description devel -l pl.UTF-8 |
52 | Pliki nagłówkowe biblioteki gobject-introspection. | |
53 | ||
eb4f3d1d | 54 | %package static |
55 | Summary: Static gobject-introspection library | |
cb9f2302 | 56 | Summary(pl.UTF-8): Statyczna biblioteka gobject-introspection |
eb4f3d1d | 57 | Group: Development/Libraries |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static gobject-introspection library. | |
62 | ||
cb9f2302 JB |
63 | %description static -l pl.UTF-8 |
64 | Statyczna biblioteka gobject-introspection. | |
65 | ||
cdd85f97 PZ |
66 | %package apidocs |
67 | Summary: gobject-introspection API documentation | |
68 | Summary(pl.UTF-8): Dokumentacja API gobject-introspection | |
69 | Group: Documentation | |
70 | Requires: gtk-doc-common | |
71 | ||
72 | %description apidocs | |
73 | gobject-introspection API documentation. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API gobject-introspection. | |
77 | ||
eb4f3d1d | 78 | %prep |
79 | %setup -q | |
80 | %patch0 -p1 | |
81 | ||
82 | %build | |
83 | %{__libtoolize} | |
84 | %{__aclocal} -I m4 | |
85 | %{__autoconf} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
bc513ae5 | 88 | %configure \ |
cdd85f97 | 89 | --disable-silent-rules \ |
04f8c6fe | 90 | --enable-gtk-doc \ |
cdd85f97 | 91 | --with-html-dir=%{_gtkdocdir} |
eb4f3d1d | 92 | %{__make} |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
de1d23c8 PZ |
96 | install -d $RPM_BUILD_ROOT%{py_sitedir} |
97 | ||
eb4f3d1d | 98 | %{__make} install \ |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
04f8c6fe | 101 | mv $RPM_BUILD_ROOT%{_libdir}/gobject-introspection/giscanner $RPM_BUILD_ROOT%{py_sitedir} |
de1d23c8 | 102 | |
04f8c6fe | 103 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/giscanner/*.{a,la} |
d03649a9 MB |
104 | |
105 | %py_postclean | |
106 | ||
eb4f3d1d | 107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
7fc4c9c0 PZ |
110 | %post -p /sbin/ldconfig |
111 | %postun -p /sbin/ldconfig | |
eb4f3d1d | 112 | |
113 | %files | |
114 | %defattr(644,root,root,755) | |
115 | %doc AUTHORS ChangeLog README | |
0bee94df | 116 | %attr(755,root,root) %{_libdir}/libgirepository-1.0.so.*.*.* |
cdd85f97 | 117 | %attr(755,root,root) %ghost %{_libdir}/libgirepository-1.0.so.1 |
d03649a9 MB |
118 | %dir %{_libdir}/girepository-1.0 |
119 | %{_libdir}/girepository-1.0/*.typelib | |
eb4f3d1d | 120 | |
121 | %files devel | |
122 | %defattr(644,root,root,755) | |
cd5f239a PZ |
123 | %attr(755,root,root) %{_bindir}/g-ir-compiler |
124 | %attr(755,root,root) %{_bindir}/g-ir-generate | |
125 | %attr(755,root,root) %{_bindir}/g-ir-scanner | |
7fc4c9c0 PZ |
126 | %{_mandir}/man1/g-ir-compiler.1* |
127 | %{_mandir}/man1/g-ir-generate.1* | |
128 | %{_mandir}/man1/g-ir-scanner.1* | |
d03649a9 | 129 | %attr(755,root,root) %{_libdir}/libgirepository-1.0.so |
d03649a9 | 130 | %{_libdir}/libgirepository-1.0.la |
cb9f2302 JB |
131 | %{_includedir}/gobject-introspection-1.0 |
132 | %{_pkgconfigdir}/gobject-introspection-1.0.pc | |
133 | %{_pkgconfigdir}/gobject-introspection-no-export-1.0.pc | |
134 | %{_aclocaldir}/introspection.m4 | |
cd5f239a PZ |
135 | %dir %{_datadir}/gir-1.0 |
136 | %{_datadir}/gir-1.0/*.gir | |
abb75853 | 137 | %{_datadir}/gobject-introspection-1.0 |
7fc4c9c0 PZ |
138 | %dir %{py_sitedir}/giscanner |
139 | %{py_sitedir}/giscanner/*.py[co] | |
cb9f2302 | 140 | %attr(755,root,root) %{py_sitedir}/giscanner/_giscanner.so |
eb4f3d1d | 141 | |
142 | %files static | |
143 | %defattr(644,root,root,755) | |
d03649a9 | 144 | %{_libdir}/libgirepository-1.0.a |
cdd85f97 PZ |
145 | |
146 | %files apidocs | |
147 | %defattr(644,root,root,755) | |
148 | %{_gtkdocdir}/gi |