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