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