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