1 |
%define major 11 |
%define major 12 |
2 |
%define pangomajor 0 |
%define pangomajor 1 |
3 |
%define gi_major 1.0 |
%define gi_major 1.0 |
4 |
|
|
5 |
%define libname %mklibname %{name} %{major} |
%define libname %mklibname %{name} %{major} |
11 |
%define url_ver %(echo %{version}|cut -d. -f1,2) |
%define url_ver %(echo %{version}|cut -d. -f1,2) |
12 |
|
|
13 |
Name: cogl |
Name: cogl |
14 |
Version: 1.12.0 |
Version: 1.14.0 |
15 |
Release: %mkrel 3 |
Release: %mkrel 1 |
16 |
Summary: A library for using 3D graphics hardware to draw pretty pictures |
Summary: A library for using 3D graphics hardware to draw pretty pictures |
17 |
Group: System/Libraries |
Group: System/Libraries |
18 |
License: LGPLv2+ |
License: LGPLv2+ |
19 |
URL: http://www.clutter-project.org/ |
URL: http://www.clutter-project.org/ |
20 |
Source0: http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
Source0: http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
|
Patch0: cogl-1.12.0-fix-experimental-doc-build.patch |
|
21 |
BuildRequires: pkgconfig(gl) |
BuildRequires: pkgconfig(gl) |
22 |
BuildRequires: pkgconfig(x11) |
BuildRequires: pkgconfig(x11) |
23 |
BuildRequires: pkgconfig(xext) |
BuildRequires: pkgconfig(xext) |
24 |
BuildRequires: pkgconfig(xfixes) >= 3 |
BuildRequires: pkgconfig(xfixes) >= 3 |
25 |
BuildRequires: pkgconfig(xdamage) |
BuildRequires: pkgconfig(xdamage) |
26 |
|
BuildRequires: pkgconfig(xrandr) |
27 |
BuildRequires: pkgconfig(xcomposite) >= 0.4 |
BuildRequires: pkgconfig(xcomposite) >= 0.4 |
28 |
BuildRequires: pkgconfig(gobject-2.0) >= 2.28.0 |
BuildRequires: pkgconfig(gobject-2.0) >= 2.28.0 |
29 |
BuildRequires: pkgconfig(gmodule-no-export-2.0) |
BuildRequires: pkgconfig(gmodule-no-export-2.0) |
62 |
This contains the translation data for %{name}. |
This contains the translation data for %{name}. |
63 |
|
|
64 |
%files i18n -f %{name}.lang |
%files i18n -f %{name}.lang |
|
%defattr(-,root,root,-) |
|
65 |
|
|
66 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
67 |
|
|
88 |
options we are interested in for the future. |
options we are interested in for the future. |
89 |
|
|
90 |
%files -n %{libname} |
%files -n %{libname} |
|
%defattr(-, root, root) |
|
91 |
%{_libdir}/libcogl.so.%{major}* |
%{_libdir}/libcogl.so.%{major}* |
92 |
|
|
93 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
115 |
options we are interested in for the future. |
options we are interested in for the future. |
116 |
|
|
117 |
%files -n %{libname_pango} |
%files -n %{libname_pango} |
|
%defattr(-, root, root) |
|
118 |
%{_libdir}/libcogl-pango.so.%{pangomajor}* |
%{_libdir}/libcogl-pango.so.%{pangomajor}* |
119 |
|
|
120 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
130 |
GObject Introspection interface description for %{name}. |
GObject Introspection interface description for %{name}. |
131 |
|
|
132 |
%files -n %{girname} |
%files -n %{girname} |
|
%defattr(-, root, root) |
|
133 |
%{_libdir}/girepository-1.0/Cogl-%{gi_major}.typelib |
%{_libdir}/girepository-1.0/Cogl-%{gi_major}.typelib |
134 |
|
|
135 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
144 |
GObject Introspection interface description for %{name}-pango. |
GObject Introspection interface description for %{name}-pango. |
145 |
|
|
146 |
%files -n %{girname_pango} |
%files -n %{girname_pango} |
|
%defattr(-, root, root) |
|
147 |
%{_libdir}/girepository-1.0/CoglPango-%{gi_major}.typelib |
%{_libdir}/girepository-1.0/CoglPango-%{gi_major}.typelib |
148 |
|
|
149 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
162 |
Header files and libraries for building and developing apps with %{name}. |
Header files and libraries for building and developing apps with %{name}. |
163 |
|
|
164 |
%files -n %{develname} |
%files -n %{develname} |
|
%defattr(-, root, root) |
|
165 |
%doc NEWS README ChangeLog |
%doc NEWS README ChangeLog |
166 |
%{_includedir}/cogl |
%{_includedir}/cogl |
167 |
%{_libdir}/libcogl*.so |
%{_libdir}/libcogl*.so |
180 |
This package contains documentation for %{name}. |
This package contains documentation for %{name}. |
181 |
|
|
182 |
%files doc |
%files doc |
|
%defattr(-, root, root) |
|
183 |
%{_datadir}/gtk-doc/html/cogl |
%{_datadir}/gtk-doc/html/cogl |
184 |
%{_datadir}/gtk-doc/html/cogl-2.0-experimental |
%{_datadir}/gtk-doc/html/cogl-2.0-experimental |
185 |
|
|
187 |
|
|
188 |
%prep |
%prep |
189 |
%setup -q |
%setup -q |
|
%apply_patches |
|
190 |
|
|
191 |
%build |
%build |
192 |
CFLAGS="%{optflags} -fPIC" |
CFLAGS="%{optflags} -fPIC" |
199 |
--enable-gtk-doc \ |
--enable-gtk-doc \ |
200 |
--enable-introspection=yes \ |
--enable-introspection=yes \ |
201 |
--enable-examples-install=no |
--enable-examples-install=no |
|
|
|
202 |
%make |
%make |
203 |
|
|
204 |
%install |
%install |