bae666
%global with_wayland 1
5bb315
%global with_tests 1
bae666
246262
Name:          cogl
5bb315
Version:       1.22.2
0a51a0
Release:       2%{?dist}
246262
Summary:       A library for using 3D graphics hardware to draw pretty pictures
246262
246262
License:       LGPLv2+
246262
URL:           http://www.clutter-project.org/
5bb315
Source0:       http://download.gnome.org/sources/cogl/1.22/cogl-%{version}.tar.xz
753af6
5bb315
# Vaguely related to https://bugzilla.gnome.org/show_bug.cgi?id=772419
5bb315
# but on the 1.22 branch, and the static inline in the header is gross
5bb315
# ajax promises he'll clean this up.
5bb315
Patch0: 0001-egl-Use-eglGetPlatformDisplay-not-eglGetDisplay.patch
5bb315
# Backported from upstream to fix the build
5bb315
Patch1: cogl-1.22.2-fix-ifdef.patch
246262
246262
BuildRequires: cairo-devel
bae666
BuildRequires: chrpath
246262
BuildRequires: gdk-pixbuf2-devel
246262
BuildRequires: glib2-devel
246262
BuildRequires: gobject-introspection-devel
246262
BuildRequires: gtk-doc
246262
BuildRequires: libXrandr-devel
246262
BuildRequires: libXcomposite-devel
246262
BuildRequires: libXdamage-devel
246262
BuildRequires: libXext-devel
246262
BuildRequires: libXfixes-devel
246262
BuildRequires: mesa-libGL-devel
bae666
BuildRequires: mesa-libgbm-devel
246262
BuildRequires: pango-devel
246262
BuildRequires: pkgconfig
246262
bae666
%if 0%{?with_wayland}
bae666
BuildRequires: libwayland-server-devel
bae666
BuildRequires: libwayland-client-devel
bae666
BuildRequires: libwayland-cursor-devel
bae666
BuildRequires: libwayland-egl-devel
bae666
BuildRequires: libxkbcommon-devel
bae666
%endif
bae666
bae666
%if 0%{?fedora}
bae666
# From rhughes-f20-gnome-3-12 copr
bae666
Obsoletes:     compat-cogl116 < 1.18
bae666
%endif
753af6
246262
%description
246262
Cogl is a small open source library for using 3D graphics hardware to draw
246262
pretty pictures. The API departs from the flat state machine style of
246262
OpenGL and is designed to make it easy to write orthogonal components that
246262
can render without stepping on each others toes.
246262
246262
As well aiming for a nice API, we think having a single library as opposed
246262
to an API specification like OpenGL has a few advantages too; like being
246262
able to paper over the inconsistencies/bugs of different OpenGL
246262
implementations in a centralized place, not to mention the myriad of OpenGL
246262
extensions. It also means we are in a better position to provide utility
246262
APIs that help software developers since they only need to be implemented
246262
once and there is no risk of inconsistency between implementations.
246262
246262
Having other backends, besides OpenGL, such as drm, Gallium or D3D are
246262
options we are interested in for the future.
246262
246262
%package devel
246262
Summary:       %{name} development environment
bae666
Requires:      %{name}%{?_isa} = %{version}-%{release}
246262
246262
%description devel
246262
Header files and libraries for building and developing apps with %{name}.
246262
246262
%package       doc
246262
Summary:       Documentation for %{name}
246262
Requires:      %{name} = %{version}-%{release}
246262
BuildArch:     noarch
246262
246262
%description   doc
246262
This package contains documentation for %{name}.
246262
bae666
%if 0%{?with_tests}
bae666
%package       tests
bae666
Summary:       Tests for %{name}
bae666
bae666
%description   tests
bae666
This package contains the installable tests for %{cogl}.
bae666
%endif
bae666
246262
%prep
246262
%setup -q
5bb315
%patch0 -p1
5bb315
%patch1 -p1
07f135
246262
%build
246262
CFLAGS="$RPM_OPT_FLAGS -fPIC"
bae666
%configure \
bae666
  --enable-cairo=yes \
bae666
  --enable-cogl-pango=yes \
bae666
  --enable-gdk-pixbuf=yes \
bae666
  --enable-glx=yes \
bae666
  --enable-gtk-doc \
bae666
  --enable-introspection=yes \
bae666
  --enable-kms-egl-platform \
bae666
%if 0%{?with_wayland}
bae666
  --enable-wayland-egl-platform \
bae666
  --enable-wayland-egl-server \
bae666
%endif
bae666
  --enable-xlib-egl-platform \
bae666
  %{?with_tests:--enable-installed-tests}
bae666
bae666
make %{?_smp_mflags} V=1
246262
246262
%install
5bb315
%make_install
246262
246262
#Remove libtool archives.
bae666
find %{buildroot} -name '*.la' -delete
246262
246262
# This gets installed by mistake
246262
rm %{buildroot}%{_datadir}/cogl/examples-data/crate.jpg
246262
bae666
# Remove lib64 rpaths
bae666
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libcogl-path.so
bae666
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libcogl-pango.so
bae666
246262
%find_lang %{name}
246262
5bb315
%check
5bb315
# make check
5bb315
246262
%post -p /sbin/ldconfig
246262
246262
%postun -p /sbin/ldconfig
246262
246262
%files -f %{name}.lang
5bb315
%license COPYING
5bb315
%doc NEWS README
bae666
%{_libdir}/libcogl*.so.20*
246262
%{_libdir}/girepository-1.0/Cogl*.typelib
246262
246262
%files devel
246262
%{_includedir}/cogl
246262
%{_libdir}/libcogl*.so
246262
%{_libdir}/pkgconfig/*.pc
246262
%{_datadir}/gir-1.0/Cogl*.gir
246262
246262
%files doc
246262
%{_datadir}/gtk-doc/html/cogl
246262
%{_datadir}/gtk-doc/html/cogl-2.0-experimental
246262
bae666
%if 0%{?with_tests}
bae666
%files tests
bae666
%{_datadir}/installed-tests/%{name}
bae666
%{_libexecdir}/installed-tests/%{name}
bae666
%endif
bae666
246262
%changelog
0a51a0
* Fri Oct 27 2017 Kalev Lember <klember@redhat.com> - 1.22.2-2
0a51a0
- Enable wayland support
0a51a0
- Resolves: #1488576
0a51a0
5bb315
* Fri Aug 26 2016 Kalev Lember <klember@redhat.com> - 1.22.2-1
5bb315
- Update to 1.22.2
5bb315
- Resolves: #1386835
5bb315
821e46
* Wed Jun 29 2016 Owen Taylor <otaylor@redhat.com> - 1.18.2-12
821e46
- Add patches to improve display synchronization on NVIDIA
821e46
    
821e46
  When testing quadbuffer stereo patches, GNOME Shell would sometimes
821e46
  hang up on restart. This turned out to be a problem with display
821e46
  synchronization on NVIDIA. The patches added here make display
821e46
  synchronization work much more similarly with the NVIDIA drivers
821e46
  and the open source drivers, which not only fixes this bug, but should
821e46
  reduce future bugs.
821e46
    
821e46
  Resolves: #1305076
821e46
821e46
- Add patches improving frame completion events in Cogl
821e46
821e46
* Wed Jun 15 2016 Rui Matos <rmatos@redhat.com> - 1.18.2-11
821e46
- Add patch to support NV_robustness_video_memory_purge
821e46
  Resolves: rhbz#1330488
821e46
bae666
* Thu Apr  9 2015 Rui Matos <rmatos@redhat.com> - 1.18.2-10
bae666
- Rebase to 1.18.2 - Resolves: rhbz#1174508
bae666
bae666
* Sun Nov 16 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.2-9
bae666
- Obsolete compat-cogl116 from rhughes-f20-gnome-3-12 copr
bae666
bae666
* Thu Nov 13 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.2-8
bae666
- Disable cogl-gst as long as we don't have clutter-gst3 (#1158676)
bae666
bae666
* Sat Nov 01 2014 Richard Hughes <rhughes@redhat.com> - 1.18.2-7
bae666
- Fix compile on RHEL, harder
bae666
bae666
* Mon Oct 27 2014 Richard Hughes <rhughes@redhat.com> - 1.18.2-6
bae666
- Fix compile on RHEL
bae666
bae666
* Fri Aug 22 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.2-5
bae666
- Remove lib64 rpaths (#1132876)
bae666
bae666
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
bae666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
bae666
bae666
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.2-3
bae666
- Rebuilt for gobject-introspection 1.41.4
bae666
bae666
* Fri Jul 11 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.18.2-2
bae666
- Run make check but don't fail build on it
bae666
bae666
* Fri Jul 04 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.2-1
bae666
- Update to 1.18.2
bae666
bae666
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18.0-4
bae666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bae666
bae666
* Fri May 23 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.0-3
bae666
- Backport an upstream fix for a totem crash
bae666
bae666
* Thu May 08 2014 Adam Jackson <ajax@redhat.com>
bae666
- Add optional installed-tests subpackage
bae666
bae666
* Mon Apr 28 2014 Richard Hughes <rhughes@redhat.com> - 1.18.0-2
bae666
- Build with --enable-cogl-gst
bae666
bae666
* Fri Mar 21 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.0-1
bae666
- Update to 1.18.0
bae666
bae666
* Fri Mar 21 2014 Kalev Lember <kalevlember@gmail.com> - 1.17.5-1.gitbb10532
bae666
- Update to 1.17.5 git snapshot
bae666
bae666
* Fri Feb 21 2014 Kalev Lember <kalevlember@gmail.com> - 1.17.4-2
bae666
- Drop compat-libcogl19
bae666
bae666
* Thu Feb 20 2014 Kalev Lember <kalevlember@gmail.com> - 1.17.4-1
bae666
- Update to 1.17.4, which includes soname bump
bae666
- Build a temporary compat-libcogl19 subpackage to ease the rebuilds
bae666
bae666
* Wed Feb 05 2014 Richard Hughes <rhughes@redhat.com> - 1.17.2-1
bae666
- Update to 1.17.2
bae666
bae666
* Tue Jan 21 2014 Richard Hughes <rhughes@redhat.com> - 1.16.2-1
bae666
- Update to 1.16.2
bae666
bae666
* Wed Sep 25 2013 Dan Horák <dan[at]danny.cz> - 1.16.0-2
bae666
- fix build on big endians (#1011893)
bae666
bae666
* Tue Sep 24 2013 Kalev Lember <kalevlember@gmail.com> - 1.16.0-1
bae666
- Update to 1.16.0
bae666
bae666
* Thu Sep 12 2013 Kalev Lember <kalevlember@gmail.com> - 1.15.10-3
bae666
- More configure options for enabling the gnome-shell Wayland compositor
bae666
- Enable parallel build
bae666
bae666
* Tue Sep 10 2013 Matthias Clasen <mclasen@redhat.com> - 1.15.10-2
bae666
- Add configure options that are needed to enable the gnome-shell
bae666
  Wayland compositor
07f135
bae666
* Mon Sep 02 2013 Kalev Lember <kalevlember@gmail.com> - 1.15.10-1
bae666
- Update to 1.15.10
07f135
bae666
* Thu Aug 22 2013 Kalev Lember <kalevlember@gmail.com> - 1.15.8-1
bae666
- Update to 1.15.8
753af6
bae666
* Fri Aug 09 2013 Kalev Lember <kalevlember@gmail.com> - 1.15.4-1
bae666
- Update to 1.15.4
753af6
bae666
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.0-4
bae666
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
753af6
246262
* Wed Jun 12 2013 Kalev Lember <kalevlember@gmail.com> 1.14.0-3
bae666
- Rebuilt
246262
246262
* Wed May 22 2013 Adam Jackson <ajax@redhat.com> 1.14.0-2
246262
- cogl-1.14.0-21-ge26464f.patch: Sync with 1.14 branch for a crash fix.
246262
246262
* Mon Mar 25 2013 Kalev Lember <kalevlember@gmail.com> 1.14.0-1
246262
- Update to 1.14.0
246262
246262
* Thu Feb 21 2013 Bastien Nocera <bnocera@redhat.com> 1.13.4-1
246262
- Update to 1.13.4
246262
246262
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13.2-2
246262
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
246262
246262
* Thu Jan 24 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.13.2-1
246262
- Update to 1.13.2
246262
246262
* Mon Jan  7 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.12.2-1
246262
- Update to 1.12.2
246262
246262
* Tue Sep 25 2012 Kalev Lember <kalevlember@gmail.com> - 1.12.0-1
246262
- Update to 1.12.0
246262
246262
* Tue Sep 18 2012 Kalev Lember <kalevlember@gmail.com> - 1.11.6-1
246262
- Update to 1.11.6
246262
- Drop upstreamed cogl-1.11.4-mesa-strings.patch
246262
246262
* Mon Sep 17 2012 Adam Jackson <ajax@redhat.com> 1.11.4-2
246262
- cogl-1.11.4-mesa-strings.patch: Update match strings for Mesa.
246262
246262
* Mon Sep  3 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.11.4-1
246262
- Update to 1.11.4
246262
246262
* Tue Aug 21 2012 Richard Hughes <hughsient@gmail.com> - 1.11.2-1
246262
- Update to 1.11.2
246262
246262
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.4-2
246262
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
246262
246262
* Wed Jul 18 2012 Kalev Lember <kalevlember@gmail.com> - 1.10.4-1
246262
- Update to 1.10.4
246262
- Dropped no-framebuffer-blit patch which is included in the release
246262
246262
* Thu Apr 19 2012 Adel Gadllah <adel.gadllah@gmail.com> - 1.10.2-1
246262
- Update to 1.10.2
246262
246262
* Tue Mar 20 2012 Kalev Lember <kalevlember@gmail.com> - 1.10.0-1
246262
- Update to 1.10.0
246262
246262
* Sat Mar 10 2012 Matthias Clasen <mclasen@redhat.com> - 1.9.8-1
246262
- Update to 1.9.8
246262
246262
* Sat Feb 25 2012 Matthias Clasen <mclasen@redhat.com> - 1.9.6-1
246262
- Update to 1.9.6
246262
246262
* Tue Jan 17 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.9.4-1
246262
- Update to 1.9.4
246262
- http://ftp.gnome.org/pub/GNOME/sources/cogl/1.9/cogl-1.9.4.news
246262
246262
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.2-2
246262
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
246262
246262
* Wed Nov 23 2011 Matthias Clasen <mclasen@redhat.com> 1.9.2-1
246262
- Update to 1.9.2
246262
246262
* Thu Nov 03 2011 Adam Jackson <ajax@redhat.com> 1.8.2-4
246262
- cogl-1.8.2-lp-no-framebuffer-blit.patch: Disable the subbuffer blit code
246262
  when running on llvmpipe until it's unbroken.
246262
246262
* Tue Nov 01 2011 Adam Jackson <ajax@redhat.com> 1.8.2-3
246262
- cogl-1.8.2-no-drm-hax.patch: Don't try insane direct DRM vblank wait.
246262
246262
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.2-2
246262
- Rebuilt for glibc bug#747377
246262
246262
* Mon Oct 17 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.8.2-1
246262
- 1.8.2 stable release
246262
- http://ftp.gnome.org/pub/GNOME/sources/cogl/1.8/cogl-1.8.2.news
246262
- Enable gdk-pixbuf2 support - Fixes RHBZ # 738092
246262
246262
* Mon Sep 19 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.8.0-1
246262
- 1.8.0 stable release
246262
- http://ftp.gnome.org/pub/GNOME/sources/cogl/1.8/cogl-1.8.0.news
246262
246262
* Mon Sep  5 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.7.8-1
246262
- Update to 1.7.8
246262
246262
* Thu Aug 18 2011 Matthias Clasen <mclasen@redhat.com> - 1.7.6-1
246262
- Update to 1.7.6
246262
246262
* Tue Jul 26 2011 Matthias Clasen <mclasen@redhat.com> - 1.7.4-1
246262
- Update to 1.7.4
246262
246262
* Mon Jul  4 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.7.2-1
246262
- Update to 1.7.2
246262
246262
* Thu Jun 16 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.7.0-3
246262
- Update spec for review feedback
246262
246262
* Thu Jun 16 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.7.0-2
246262
- Update spec for review feedback
246262
246262
* Wed Jun 15 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.7.0-1
246262
- Initial Package