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