1 |
%define name gobject-introspection |
%define bootstrap 0 |
2 |
%define version 0.10.8 |
%{?_without_bootstrap: %global bootstrap 0} |
3 |
%define git 0 |
%{?_with_bootstrap: %global bootstrap 1} |
4 |
%define rel 3 |
|
5 |
|
%define name gobject-introspection |
6 |
|
%define version 1.29.0 |
7 |
|
%define git 0 |
8 |
|
%define rel 1 |
9 |
|
|
10 |
%if %git |
%if %git |
11 |
%define release %mkrel -c %git %rel |
%define release %mkrel -c %{git} %{rel} |
12 |
%else |
%else |
13 |
%define release %mkrel %rel |
%define release %mkrel %{rel} |
14 |
%endif |
%endif |
15 |
|
|
16 |
%define bootstrap 0 |
%define api 1.0 |
17 |
%{?_without_bootstrap: %global bootstrap 0} |
%define major 1 |
18 |
%{?_with_bootstrap: %global bootstrap 1} |
%define libname %mklibname girepository %{api} %{major} |
19 |
|
%define develname %mklibname -d girepository |
|
%define api 1.0 |
|
|
%define major 1 |
|
|
%define libname %mklibname girepository %api %major |
|
|
%define develname %mklibname -d girepository |
|
20 |
|
|
21 |
%define url_ver %(echo %{version} | cut -d. -f1,2) |
%define url_ver %(echo %{version} | cut -d. -f1,2) |
22 |
|
|
23 |
Summary: GObject Introspection |
Summary: GObject Introspection |
24 |
Name: %{name} |
Name: %{name} |
25 |
Version: %{version} |
Version: %{version} |
26 |
Release: %{release} |
Release: %{release} |
27 |
%if %git |
|
28 |
Source0: %{name}-%{git}.tar.xz |
%if %{git} |
29 |
|
Source0: %{name}-%{git}.tar.xz |
30 |
%else |
%else |
31 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%name/%{url_ver}/%{name}-%{version}.tar.bz2 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
32 |
%endif |
%endif |
33 |
Patch0: gobject-introspection-fix-link.patch |
|
34 |
License: GPLv2+ and LGPLv2+ |
Patch0: gobject-introspection-fix-link.patch |
35 |
Group: Development/C |
License: GPLv2+ and LGPLv2+ |
36 |
Url: http://www.gnome.org |
Group: Development/C |
37 |
BuildRequires: glib2-devel >= 2.25.8 |
Url: http://www.gnome.org |
38 |
BuildRequires: ffi5-devel |
BuildRequires: glib2-devel >= 2.25.8 |
39 |
BuildRequires: python-devel |
BuildRequires: ffi5-devel |
40 |
BuildRequires: freetype2-devel |
BuildRequires: python-devel |
41 |
BuildRequires: cairo-devel |
BuildRequires: freetype2-devel |
42 |
BuildRequires: fontconfig-devel |
BuildRequires: cairo-devel |
43 |
BuildRequires: GL-devel |
BuildRequires: fontconfig-devel |
44 |
BuildRequires: libxft-devel |
BuildRequires: GL-devel |
45 |
BuildRequires: flex bison |
BuildRequires: libxft-devel |
46 |
BuildRequires: gnome-common |
BuildRequires: flex |
47 |
BuildRequires: libtool |
BuildRequires: bison |
48 |
%if !%bootstrap |
BuildRequires: gnome-common |
49 |
BuildRequires: gtk-doc |
BuildRequires: libtool |
50 |
|
%if !%{bootstrap} |
51 |
|
BuildRequires: gtk-doc |
52 |
%endif |
%endif |
53 |
Conflicts: %{mklibname girepository 1.0 0} < 0.6.10-5mdv |
Conflicts: %{mklibname girepository 1.0 0} < 0.6.10-5mdv |
54 |
Conflicts: gir-repository < 0.6.5-12.20100622.3mdv |
Conflicts: gir-repository < 0.6.5-12.20100622.3mdv |
55 |
|
|
56 |
%description |
%description |
57 |
The goal of the project is to describe the APIs and collect them in |
The goal of the project is to describe the APIs and collect them in |
58 |
a uniform, machine readable format. |
a uniform, machine readable format. |
59 |
|
|
60 |
%package -n %libname |
%package -n %{libname} |
61 |
Group: System/Libraries |
Group: System/Libraries |
62 |
Summary: GObject Introspection shared library |
Summary: GObject Introspection shared library |
63 |
Conflicts: %name < 0.6.8-2mdv |
Conflicts: %{name} < 0.6.8-2mdv |
64 |
Requires: %name >= %version |
Requires: %{name} >= %{version} |
65 |
|
|
66 |
%description -n %libname |
%description -n %{libname} |
67 |
The goal of the project is to describe the APIs and collect them in |
The goal of the project is to describe the APIs and collect them in |
68 |
a uniform, machine readable format. |
a uniform, machine readable format. |
69 |
|
|
70 |
|
|
71 |
%package -n %develname |
%package -n %{develname} |
72 |
Group: Development/C |
Group: Development/C |
73 |
Summary: GObject Introspection development libraries |
Summary: GObject Introspection development libraries |
74 |
Requires: %libname = %version-%release |
Requires: %{libname} = %{version}-%{release} |
75 |
Provides: libgirepository-devel = %version-%release |
Provides: libgirepository-devel = %{version}-%{release} |
76 |
Provides: %name-devel = %version-%release |
Provides: %{name}-devel = %{version}-%{release} |
77 |
#gw /usr/bin/libtool is called in giscanner |
#gw /usr/bin/libtool is called in giscanner |
78 |
Requires: libtool |
Requires: libtool |
79 |
|
|
80 |
%description -n %develname |
%description -n %{develname} |
81 |
The goal of the project is to describe the APIs and collect them in |
The goal of the project is to describe the APIs and collect them in |
82 |
a uniform, machine readable format. |
a uniform, machine readable format. |
83 |
|
|
84 |
%prep |
%prep |
85 |
%if %git |
%if %{git} |
86 |
%setup -q -n %name |
%setup -q -n %{name} |
87 |
%else |
%else |
88 |
%setup -q |
%setup -q |
89 |
%endif |
%endif |
90 |
|
|
91 |
%apply_patches |
%apply_patches |
92 |
%if %git |
|
93 |
|
%if %{git} |
94 |
./autogen.sh -V |
./autogen.sh -V |
95 |
%else |
%else |
96 |
autoreconf -fi |
autoreconf -fi |
97 |
%endif |
%endif |
98 |
|
|
99 |
%build |
%build |
100 |
%configure2_5x --disable-static \ |
%configure2_5x \ |
101 |
%if !%bootstrap |
%if !%{bootstrap} |
102 |
--enable-gtk-doc |
--enable-gtk-doc \ |
103 |
%endif |
%endif |
104 |
|
--disable-static |
105 |
|
|
106 |
%make |
%make |
107 |
|
|
121 |
%files |
%files |
122 |
%defattr(-,root,root) |
%defattr(-,root,root) |
123 |
%doc README NEWS TODO AUTHORS |
%doc README NEWS TODO AUTHORS |
124 |
%dir %_libdir/girepository-%api |
%dir %{_libdir}/girepository-%{api} |
125 |
%_libdir/girepository-%api/DBus-1.0.typelib |
%{_libdir}/girepository-%{api}/DBus-1.0.typelib |
126 |
%_libdir/girepository-%api/DBusGLib-1.0.typelib |
%{_libdir}/girepository-%{api}/DBusGLib-1.0.typelib |
127 |
%_libdir/girepository-%api/GIRepository-2.0.typelib |
%{_libdir}/girepository-%{api}/GIRepository-2.0.typelib |
128 |
%_libdir/girepository-%api/GL-1.0.typelib |
%{_libdir}/girepository-%{api}/GL-1.0.typelib |
129 |
%_libdir/girepository-%api/GLib-2.0.typelib |
%{_libdir}/girepository-%{api}/GLib-2.0.typelib |
130 |
%_libdir/girepository-%api/GModule-2.0.typelib |
%{_libdir}/girepository-%{api}/GModule-2.0.typelib |
131 |
%_libdir/girepository-%api/GObject-2.0.typelib |
%{_libdir}/girepository-%{api}/GObject-2.0.typelib |
132 |
%_libdir/girepository-%api/Gio-2.0.typelib |
%{_libdir}/girepository-%{api}/Gio-2.0.typelib |
133 |
%_libdir/girepository-%api/cairo-1.0.typelib |
%{_libdir}/girepository-%{api}/cairo-1.0.typelib |
134 |
%_libdir/girepository-%api/fontconfig-2.0.typelib |
%{_libdir}/girepository-%{api}/fontconfig-2.0.typelib |
135 |
%_libdir/girepository-%api/freetype2-2.0.typelib |
%{_libdir}/girepository-%{api}/freetype2-2.0.typelib |
136 |
%_libdir/girepository-%api/libxml2-2.0.typelib |
%{_libdir}/girepository-%{api}/libxml2-2.0.typelib |
137 |
%_libdir/girepository-%api/xfixes-4.0.typelib |
%{_libdir}/girepository-%{api}/xfixes-4.0.typelib |
138 |
%_libdir/girepository-%api/xft-2.0.typelib |
%{_libdir}/girepository-%{api}/xft-2.0.typelib |
139 |
%_libdir/girepository-%api/xlib-2.0.typelib |
%{_libdir}/girepository-%{api}/xlib-2.0.typelib |
140 |
%_libdir/girepository-%api/xrandr-1.3.typelib |
%{_libdir}/girepository-%{api}/xrandr-1.3.typelib |
141 |
|
|
142 |
%files -n %libname |
%files -n %{libname} |
143 |
%defattr(-,root,root) |
%defattr(-,root,root) |
144 |
%_libdir/libgirepository-%api.so.%{major}* |
%{_libdir}/libgirepository-%{api}.so.%{major}* |
145 |
|
|
146 |
%files -n %develname |
%files -n %{develname} |
147 |
%defattr(-,root,root) |
%defattr(-,root,root) |
148 |
%doc ChangeLog |
%doc ChangeLog |
149 |
%_libdir/libgirepository-%api.so |
%{_libdir}/libgirepository-%{api}.so |
150 |
%_libdir/pkgconfig/gobject-introspection-%api.pc |
%{_libdir}/pkgconfig/gobject-introspection-%{api}.pc |
151 |
%_libdir/pkgconfig/gobject-introspection-no-export-%api.pc |
%{_libdir}/pkgconfig/gobject-introspection-no-export-%{api}.pc |
152 |
%_includedir/%name-%api |
%{_includedir}/%{name}-%{api} |
153 |
%_datadir/aclocal/*.m4 |
%{_datadir}/aclocal/*.m4 |
154 |
%_datadir/%name-%api |
%{_datadir}/%{name}-%{api} |
155 |
%_bindir/g-ir-* |
%{_bindir}/g-ir-* |
156 |
%_libdir/%name |
%{_libdir}/%{name} |
157 |
%_datadir/gtk-doc/html/gi |
%{_datadir}/gtk-doc/html/gi |
158 |
%dir %_datadir/gir-%api |
%dir %{_datadir}/gir-%{api} |
159 |
%_datadir/gir-%api/DBus-1.0.gir |
%{_datadir}/gir-%{api}/DBus-1.0.gir |
160 |
%_datadir/gir-%api/DBusGLib-1.0.gir |
%{_datadir}/gir-%{api}/DBusGLib-1.0.gir |
161 |
%_datadir/gir-%api/GIRepository-2.0.gir |
%{_datadir}/gir-%{api}/GIRepository-2.0.gir |
162 |
%_datadir/gir-%api/GL-1.0.gir |
%{_datadir}/gir-%{api}/GL-1.0.gir |
163 |
%_datadir/gir-%api/GLib-2.0.gir |
%{_datadir}/gir-%{api}/GLib-2.0.gir |
164 |
%_datadir/gir-%api/GModule-2.0.gir |
%{_datadir}/gir-%{api}/GModule-2.0.gir |
165 |
%_datadir/gir-%api/GObject-2.0.gir |
%{_datadir}/gir-%{api}/GObject-2.0.gir |
166 |
%_datadir/gir-%api/Gio-2.0.gir |
%{_datadir}/gir-%{api}/Gio-2.0.gir |
167 |
%_datadir/gir-%api/cairo-1.0.gir |
%{_datadir}/gir-%{api}/cairo-1.0.gir |
168 |
%_datadir/gir-%api/fontconfig-2.0.gir |
%{_datadir}/gir-%{api}/fontconfig-2.0.gir |
169 |
%_datadir/gir-%api/freetype2-2.0.gir |
%{_datadir}/gir-%{api}/freetype2-2.0.gir |
170 |
%_datadir/gir-%api/libxml2-2.0.gir |
%{_datadir}/gir-%{api}/libxml2-2.0.gir |
171 |
%_datadir/gir-%api/xfixes-4.0.gir |
%{_datadir}/gir-%{api}/xfixes-4.0.gir |
172 |
%_datadir/gir-%api/xft-2.0.gir |
%{_datadir}/gir-%{api}/xft-2.0.gir |
173 |
%_datadir/gir-%api/xlib-2.0.gir |
%{_datadir}/gir-%{api}/xlib-2.0.gir |
174 |
%_datadir/gir-%api/xrandr-1.3.gir |
%{_datadir}/gir-%{api}/xrandr-1.3.gir |
175 |
%_mandir/man1/* |
%{_mandir}/man1/* |
176 |
%_libdir/*.la |
%{_libdir}/*.la |