]> git.pld-linux.org Git - packages/cogl.git/blame - cogl.spec
- added gdkpixbuf bcond (why disabled BTW?)
[packages/cogl.git] / cogl.spec
CommitLineData
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 6Summary: A library for using 3D graphics hardware to draw pretty pictures
3b3536d4 7Summary(pl.UTF-8): Biblioteka do rysowania ładnych obrazków przy użyciu sprzętowej grafiki 3D
a8e45d23 8Name: cogl
774ef314 9Version: 1.14.0
0da8520e 10Release: 1
a8e45d23 11License: LGPL v2+
3b3536d4 12Group: Libraries
774ef314
MB
13Source0: http://ftp.gnome.org/pub/GNOME/sources/cogl/1.14/%{name}-%{version}.tar.xz
14# Source0-md5: 7eabaf4241c0b87cc9e3b0fa23fd0315
a8e45d23 15URL: http://www.clutter-project.org/
1ae58ca6 16BuildRequires: OpenGL-GLX-devel
aedf1bd3
JB
17BuildRequires: autoconf >= 2.59
18BuildRequires: automake >= 1:1.11
3b3536d4 19BuildRequires: cairo-devel >= 1.10
bfeaf83d 20%{?with_gdkpixbuf:BuildRequires: gdk-pixbuf2-devel >= 2.0}
19a3a169 21BuildRequires: gettext-devel >= 0.18.1
774ef314 22BuildRequires: glib2-devel >= 1:2.32.0
3b3536d4
JB
23BuildRequires: gobject-introspection-devel >= 0.9.5
24BuildRequires: gtk-doc >= 1.13
25BuildRequires: libdrm-devel
aedf1bd3 26BuildRequires: libtool >= 2:2.2.6
3b3536d4 27BuildRequires: pango-devel >= 1:1.20
a8e45d23 28BuildRequires: pkgconfig
aedf1bd3 29BuildRequires: tar >= 1:1.22
1ae58ca6 30BuildRequires: xorg-lib-libX11-devel
3b3536d4 31BuildRequires: xorg-lib-libXcomposite-devel >= 0.4
a8e45d23
PZ
32BuildRequires: xorg-lib-libXdamage-devel
33BuildRequires: xorg-lib-libXext-devel
3b3536d4 34BuildRequires: xorg-lib-libXfixes-devel >= 3
774ef314 35BuildRequires: xorg-lib-libXrandr-devel >= 1.2
aedf1bd3 36BuildRequires: xz
3b3536d4 37Requires: cairo >= 1.10
774ef314 38Requires: glib2 >= 1:2.32.0
3b3536d4
JB
39Requires: pango >= 1:1.20
40Requires: xorg-lib-libXcomposite >= 0.4
41Requires: xorg-lib-libXfixes >= 3
774ef314 42Requires: xorg-lib-libXrandr >= 1.2
1ae58ca6 43Suggests: OpenGL
9fabc6b2 44Conflicts: clutter < 1.8.0
3b3536d4 45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a8e45d23
PZ
46
47%description
48Cogl is a small open source library for using 3D graphics hardware to
49draw pretty pictures. The API departs from the flat state machine
50style of OpenGL and is designed to make it easy to write orthogonal
51components that can render without stepping on each others toes.
52
3b3536d4
JB
53%description -l pl.UTF-8
54Cogl 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
56automatu skończonego w stylu OpenGL i zostało tak zaprojektowane, aby
57ułatwić pisanie ortogonalnych komponentów, potrafiących renderować bez
58przeszkadzania sobie nawzajem.
a8e45d23
PZ
59
60%package devel
3b3536d4
JB
61Summary: Header files for cogl library
62Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cogl
a8e45d23
PZ
63Group: Development/Libraries
64Requires: %{name} = %{version}-%{release}
3b3536d4 65Requires: cairo-devel >= 1.10
bfeaf83d 66%{?with_gdkpixbuf:Requires: gdk-pixbuf2-devel >= 2.0}
774ef314 67Requires: glib2-devel >= 1:2.32.0
3b3536d4
JB
68Requires: gobject-introspection-devel >= 0.9.5
69Requires: libdrm-devel
70Requires: pango-devel >= 1:1.20
71Requires: xorg-lib-libXcomposite-devel >= 0.4
72Requires: xorg-lib-libXdamage-devel
73Requires: xorg-lib-libXext-devel
74Requires: xorg-lib-libXfixes-devel >= 3
774ef314 75Requires: xorg-lib-libXrandr-devel >= 1.2
9fabc6b2 76Conflicts: clutter-devel < 1.8.0
a8e45d23
PZ
77
78%description devel
3b3536d4
JB
79Header files for building and developing applications with cogl.
80
81%description devel -l pl.UTF-8
82Pliki nagłówkowe do tworzenia aplikacji z użyciem biblioteki cogl.
83
84%package static
85Summary: Static cogl libraries
86Summary(pl.UTF-8): Statyczne biblioteki cogl
87Group: Development/Libraries
88Requires: %{name}-devel = %{version}-%{release}
9fabc6b2 89Conflicts: clutter-static < 1.8.0
3b3536d4
JB
90
91%description static
92Static cogl libraries.
93
94%description static -l pl.UTF-8
95Statyczne biblioteki cogl.
a8e45d23 96
3b3536d4
JB
97%package doc
98Summary: API documentation for cogl
99Summary(pl.UTF-8): Dokumentacja API cogl
a8e45d23 100Group: Documentation
a8e45d23 101
3b3536d4
JB
102%description doc
103This package contains API documentation for cogl.
104
105%description doc -l pl.UTF-8
106Ten 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
131rm -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
143rm -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
This page took 0.13193 seconds and 4 git commands to generate.