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