]>
Commit | Line | Data |
---|---|---|
3b3536d4 JB |
1 | # |
2 | # Conditional build | |
3 | %bcond_without static_libs # static libraries | |
4 | # | |
a8e45d23 | 5 | Summary: A library for using 3D graphics hardware to draw pretty pictures |
3b3536d4 | 6 | Summary(pl.UTF-8): Biblioteka do rysowania ładnych obrazków przy użyciu sprzętowej grafiki 3D |
a8e45d23 | 7 | Name: cogl |
4ca9e370 | 8 | Version: 1.11.2 |
1ae58ca6 | 9 | Release: 1 |
a8e45d23 | 10 | License: LGPL v2+ |
3b3536d4 | 11 | Group: Libraries |
4ca9e370 ŁK |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/cogl/1.11/%{name}-%{version}.tar.xz |
13 | # Source0-md5: dc325e01a47297a7087436b0af770414 | |
a8e45d23 | 14 | URL: http://www.clutter-project.org/ |
1ae58ca6 | 15 | BuildRequires: OpenGL-GLX-devel |
aedf1bd3 JB |
16 | BuildRequires: autoconf >= 2.59 |
17 | BuildRequires: automake >= 1:1.11 | |
3b3536d4 | 18 | BuildRequires: cairo-devel >= 1.10 |
159d2c43 | 19 | BuildRequires: gdk-pixbuf2-devel |
19a3a169 | 20 | BuildRequires: gettext-devel >= 0.18.1 |
159d2c43 | 21 | BuildRequires: glib2-devel >= 1:2.28.0 |
3b3536d4 JB |
22 | BuildRequires: gobject-introspection-devel >= 0.9.5 |
23 | BuildRequires: gtk-doc >= 1.13 | |
24 | BuildRequires: libdrm-devel | |
aedf1bd3 | 25 | BuildRequires: libtool >= 2:2.2.6 |
3b3536d4 | 26 | BuildRequires: pango-devel >= 1:1.20 |
a8e45d23 | 27 | BuildRequires: pkgconfig |
aedf1bd3 | 28 | BuildRequires: tar >= 1:1.22 |
1ae58ca6 | 29 | BuildRequires: xorg-lib-libX11-devel |
3b3536d4 | 30 | BuildRequires: xorg-lib-libXcomposite-devel >= 0.4 |
a8e45d23 PZ |
31 | BuildRequires: xorg-lib-libXdamage-devel |
32 | BuildRequires: xorg-lib-libXext-devel | |
3b3536d4 | 33 | BuildRequires: xorg-lib-libXfixes-devel >= 3 |
aedf1bd3 | 34 | BuildRequires: xz |
3b3536d4 | 35 | Requires: cairo >= 1.10 |
159d2c43 | 36 | Requires: glib2 >= 1:2.28.0 |
3b3536d4 JB |
37 | Requires: pango >= 1:1.20 |
38 | Requires: xorg-lib-libXcomposite >= 0.4 | |
39 | Requires: xorg-lib-libXfixes >= 3 | |
1ae58ca6 | 40 | Suggests: OpenGL |
9fabc6b2 | 41 | Conflicts: clutter < 1.8.0 |
3b3536d4 | 42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a8e45d23 PZ |
43 | |
44 | %description | |
45 | Cogl is a small open source library for using 3D graphics hardware to | |
46 | draw pretty pictures. The API departs from the flat state machine | |
47 | style of OpenGL and is designed to make it easy to write orthogonal | |
48 | components that can render without stepping on each others toes. | |
49 | ||
3b3536d4 JB |
50 | %description -l pl.UTF-8 |
51 | Cogl to mała biblioteka o otwartych źródłach, pozwalająca na rysowanie | |
52 | ładnych rysunków przy użyciu sprzętu graficznego 3D. API wywodzi się z | |
53 | automatu skończonego w stylu OpenGL i zostało tak zaprojektowane, aby | |
54 | ułatwić pisanie ortogonalnych komponentów, potrafiących renderować bez | |
55 | przeszkadzania sobie nawzajem. | |
a8e45d23 PZ |
56 | |
57 | %package devel | |
3b3536d4 JB |
58 | Summary: Header files for cogl library |
59 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cogl | |
a8e45d23 PZ |
60 | Group: Development/Libraries |
61 | Requires: %{name} = %{version}-%{release} | |
3b3536d4 | 62 | Requires: cairo-devel >= 1.10 |
159d2c43 | 63 | Requires: glib2-devel >= 1:2.28.0 |
3b3536d4 JB |
64 | Requires: gobject-introspection-devel >= 0.9.5 |
65 | Requires: libdrm-devel | |
66 | Requires: pango-devel >= 1:1.20 | |
67 | Requires: xorg-lib-libXcomposite-devel >= 0.4 | |
68 | Requires: xorg-lib-libXdamage-devel | |
69 | Requires: xorg-lib-libXext-devel | |
70 | Requires: xorg-lib-libXfixes-devel >= 3 | |
9fabc6b2 | 71 | Conflicts: clutter-devel < 1.8.0 |
a8e45d23 PZ |
72 | |
73 | %description devel | |
3b3536d4 JB |
74 | Header files for building and developing applications with cogl. |
75 | ||
76 | %description devel -l pl.UTF-8 | |
77 | Pliki nagłówkowe do tworzenia aplikacji z użyciem biblioteki cogl. | |
78 | ||
79 | %package static | |
80 | Summary: Static cogl libraries | |
81 | Summary(pl.UTF-8): Statyczne biblioteki cogl | |
82 | Group: Development/Libraries | |
83 | Requires: %{name}-devel = %{version}-%{release} | |
9fabc6b2 | 84 | Conflicts: clutter-static < 1.8.0 |
3b3536d4 JB |
85 | |
86 | %description static | |
87 | Static cogl libraries. | |
88 | ||
89 | %description static -l pl.UTF-8 | |
90 | Statyczne biblioteki cogl. | |
a8e45d23 | 91 | |
3b3536d4 JB |
92 | %package doc |
93 | Summary: API documentation for cogl | |
94 | Summary(pl.UTF-8): Dokumentacja API cogl | |
a8e45d23 | 95 | Group: Documentation |
a8e45d23 | 96 | |
3b3536d4 JB |
97 | %description doc |
98 | This package contains API documentation for cogl. | |
99 | ||
100 | %description doc -l pl.UTF-8 | |
101 | Ten pakiet zawiera dokumentację API cogl. | |
a8e45d23 PZ |
102 | |
103 | %prep | |
104 | %setup -q | |
105 | ||
106 | %build | |
aedf1bd3 JB |
107 | %{__gettextize} |
108 | %{__libtoolize} | |
109 | %{__aclocal} -I build/autotools | |
110 | %{__autoconf} | |
111 | %{__autoheader} | |
112 | %{__automake} | |
a8e45d23 | 113 | %configure \ |
3b3536d4 JB |
114 | --disable-gdk-pixbuf \ |
115 | --disable-silent-rules \ | |
116 | --enable-cairo \ | |
117 | --enable-cogl-pango \ | |
118 | --enable-glx \ | |
a8e45d23 | 119 | --enable-gtk-doc \ |
3b3536d4 JB |
120 | --enable-introspection \ |
121 | %{?with_static_libs:--enable-static} \ | |
a8e45d23 PZ |
122 | --with-html-dir=%{_gtkdocdir} |
123 | %{__make} | |
124 | ||
125 | %install | |
126 | rm -rf $RPM_BUILD_ROOT | |
3b3536d4 | 127 | |
a8e45d23 PZ |
128 | %{__make} install \ |
129 | DESTDIR=$RPM_BUILD_ROOT | |
130 | ||
3b3536d4 | 131 | # obsoleted by pkg-config |
a8e45d23 PZ |
132 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcogl.la |
133 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcogl-pango.la | |
134 | ||
135 | %find_lang %{name} | |
136 | ||
3b3536d4 JB |
137 | %clean |
138 | rm -rf $RPM_BUILD_ROOT | |
a8e45d23 | 139 | |
3b3536d4 JB |
140 | %post -p /sbin/ldconfig |
141 | %postun -p /sbin/ldconfig | |
a8e45d23 PZ |
142 | |
143 | %files -f %{name}.lang | |
144 | %defattr(644,root,root,755) | |
3b3536d4 | 145 | %doc ChangeLog NEWS README |
a8e45d23 | 146 | %attr(755,root,root) %{_libdir}/libcogl.so.*.*.* |
4ca9e370 | 147 | %attr(755,root,root) %ghost %{_libdir}/libcogl.so.11 |
a8e45d23 PZ |
148 | %attr(755,root,root) %{_libdir}/libcogl-pango.so.*.*.* |
149 | %attr(755,root,root) %ghost %{_libdir}/libcogl-pango.so.0 | |
150 | %{_libdir}/girepository-1.0/Cogl-1.0.typelib | |
151 | %{_libdir}/girepository-1.0/CoglPango-1.0.typelib | |
152 | ||
153 | %files devel | |
154 | %defattr(644,root,root,755) | |
3b3536d4 JB |
155 | %attr(755,root,root) %{_libdir}/libcogl.so |
156 | %attr(755,root,root) %{_libdir}/libcogl-pango.so | |
a8e45d23 | 157 | %{_includedir}/cogl |
4ca9e370 | 158 | %{_includedir}/cogl2 |
a8e45d23 PZ |
159 | %{_pkgconfigdir}/cogl-1.0.pc |
160 | %{_pkgconfigdir}/cogl-2.0-experimental.pc | |
161 | %{_pkgconfigdir}/cogl-gl-1.0.pc | |
162 | %{_pkgconfigdir}/cogl-pango-1.0.pc | |
163 | %{_pkgconfigdir}/cogl-pango-2.0-experimental.pc | |
164 | %{_datadir}/gir-1.0/Cogl-1.0.gir | |
165 | %{_datadir}/gir-1.0/CoglPango-1.0.gir | |
166 | ||
3b3536d4 JB |
167 | %if %{with static_libs} |
168 | %files static | |
169 | %defattr(644,root,root,755) | |
170 | %{_libdir}/libcogl.a | |
171 | %{_libdir}/libcogl-pango.a | |
172 | %endif | |
173 | ||
a8e45d23 PZ |
174 | %files doc |
175 | %defattr(644,root,root,755) | |
176 | %{_gtkdocdir}/cogl | |
177 | %{_gtkdocdir}/cogl-2.0-experimental |