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