525926
%if 0%{?fedora} || 0%{?rhel} > 7
525926
%global with_wayland 1
525926
%endif
525926
525926
%global with_tests 1
525926
525926
Name:          cogl
525926
Version:       1.22.2
525926
Release:       10%{?dist}
525926
Summary:       A library for using 3D graphics hardware to draw pretty pictures
525926
525926
License:       LGPLv2+
525926
URL:           http://www.clutter-project.org/
525926
Source0:       http://download.gnome.org/sources/cogl/1.22/cogl-%{version}.tar.xz
525926
525926
# Vaguely related to https://bugzilla.gnome.org/show_bug.cgi?id=772419
525926
# but on the 1.22 branch, and the static inline in the header is gross
525926
# ajax promises he'll clean this up.
525926
Patch0: 0001-egl-Use-eglGetPlatformDisplay-not-eglGetDisplay.patch
525926
525926
# "GL_ARB_shader_texture_lod" is used to do lod biased texturing. It
525926
# make achieve faster blurring of images instead of using large blur radius.
525926
Patch1: 0002-add-GL_ARB_shader_texture_lod-support.patch
525926
525926
# "copy_sub_image" is used to implement feature similar with kwin blur
525926
# effect by being abel to copy partial of framebuffer contents as texture
525926
# and do post blurring.
525926
Patch2: 0003-texture-support-copy_sub_image.patch
525926
525926
BuildRequires: chrpath
525926
BuildRequires: pkgconfig(cairo)
525926
BuildRequires: pkgconfig(egl)
525926
BuildRequires: pkgconfig(gbm)
525926
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
525926
BuildRequires: pkgconfig(gl)
525926
BuildRequires: pkgconfig(glib-2.0)
525926
BuildRequires: pkgconfig(gobject-introspection-1.0)
525926
BuildRequires: pkgconfig(gtk-doc)
525926
BuildRequires: pkgconfig(pango)
525926
BuildRequires: pkgconfig(xcomposite)
525926
BuildRequires: pkgconfig(xdamage)
525926
BuildRequires: pkgconfig(xext)
525926
BuildRequires: pkgconfig(xfixes)
525926
BuildRequires: pkgconfig(xrandr)
525926
525926
%if 0%{?with_wayland}
525926
BuildRequires: pkgconfig(wayland-server)
525926
BuildRequires: pkgconfig(wayland-client)
525926
BuildRequires: pkgconfig(wayland-cursor)
525926
BuildRequires: pkgconfig(wayland-egl)
525926
BuildRequires: pkgconfig(xkbcommon)
525926
%endif
525926
525926
%if 0%{?fedora}
525926
# From rhughes-f20-gnome-3-12 copr
525926
Obsoletes:     compat-cogl116 < 1.18
525926
%endif
525926
525926
%description
525926
Cogl is a small open source library for using 3D graphics hardware to draw
525926
pretty pictures. The API departs from the flat state machine style of
525926
OpenGL and is designed to make it easy to write orthogonal components that
525926
can render without stepping on each others toes.
525926
525926
As well aiming for a nice API, we think having a single library as opposed
525926
to an API specification like OpenGL has a few advantages too; like being
525926
able to paper over the inconsistencies/bugs of different OpenGL
525926
implementations in a centralized place, not to mention the myriad of OpenGL
525926
extensions. It also means we are in a better position to provide utility
525926
APIs that help software developers since they only need to be implemented
525926
once and there is no risk of inconsistency between implementations.
525926
525926
Having other backends, besides OpenGL, such as drm, Gallium or D3D are
525926
options we are interested in for the future.
525926
525926
%package devel
525926
Summary:       %{name} development environment
525926
Requires:      %{name}%{?_isa} = %{version}-%{release}
525926
525926
%description devel
525926
Header files and libraries for building and developing apps with %{name}.
525926
525926
%package       doc
525926
Summary:       Documentation for %{name}
525926
Requires:      %{name} = %{version}-%{release}
525926
BuildArch:     noarch
525926
525926
%description   doc
525926
This package contains documentation for %{name}.
525926
525926
%if 0%{?with_tests}
525926
%package       tests
525926
Requires:      %{name} = %{version}-%{release}
525926
Summary:       Tests for %{name}
525926
525926
%description   tests
525926
This package contains the installable tests for %{cogl}.
525926
%endif
525926
525926
%prep
525926
%setup -q
525926
%patch0 -p1
525926
%patch1 -p1
525926
%patch2 -p1
525926
525926
%build
525926
CFLAGS="$RPM_OPT_FLAGS -fPIC"
525926
%configure \
525926
  --enable-cairo=yes \
525926
  --enable-cogl-pango=yes \
525926
  --enable-gdk-pixbuf=yes \
525926
  --enable-glx=yes \
525926
  --enable-gtk-doc \
525926
  --enable-introspection=yes \
525926
  --enable-kms-egl-platform \
525926
%if 0%{?with_wayland}
525926
  --enable-wayland-egl-platform \
525926
  --enable-wayland-egl-server \
525926
%endif
525926
  --enable-xlib-egl-platform \
525926
  %{?with_tests:--enable-installed-tests}
525926
525926
make %{?_smp_mflags} V=1
525926
525926
%install
525926
%make_install
525926
525926
#Remove libtool archives.
525926
find %{buildroot} -name '*.la' -delete
525926
525926
# This gets installed by mistake
525926
rm %{buildroot}%{_datadir}/cogl/examples-data/crate.jpg
525926
525926
# Remove lib64 rpaths
525926
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libcogl-path.so
525926
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libcogl-pango.so
525926
525926
%find_lang %{name}
525926
525926
%check
525926
# make check
525926
525926
%ldconfig_scriptlets
525926
525926
%files -f %{name}.lang
525926
%license COPYING
525926
%doc NEWS README
525926
%{_libdir}/libcogl*.so.20*
525926
%{_libdir}/girepository-1.0/Cogl*.typelib
525926
525926
%files devel
525926
%{_includedir}/cogl
525926
%{_libdir}/libcogl*.so
525926
%{_libdir}/pkgconfig/*.pc
525926
%{_datadir}/gir-1.0/Cogl*.gir
525926
525926
%files doc
525926
%{_datadir}/gtk-doc/html/cogl
525926
%{_datadir}/gtk-doc/html/cogl-2.0-experimental
525926
525926
%if 0%{?with_tests}
525926
%files tests
525926
%{_datadir}/installed-tests/%{name}
525926
%{_libexecdir}/installed-tests/%{name}
525926
%endif
525926
525926
%changelog
525926
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.22.2-10
525926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
525926
525926
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.22.2-9
525926
- Switch to %%ldconfig_scriptlets
525926
525926
* Wed Nov 22 2017 Troy Dawson <tdawson@redhat.com> - 1.22.2-8
525926
- Fix spec file conditionals
525926
525926
* Thu Sep 28 2017 mosquito <sensor.wen@gmail.com> - 1.22.2-7
525926
- Add GL_ARB_shader_texture_lod and copy_sub_image support (#1421055)
525926
- Add pkgconfig(egl) BReq for rawhide
525926
- Move BReqs to pkgconfig
525926
525926
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.22.2-6
525926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
525926
525926
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.22.2-5
525926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
525926
525926
* Wed May 17 2017 Owen Taylor <otaylor@redhat.com> - 1.22.2-4
525926
- Add Requires: %%{name} = %%{version}-%%{release} to the tests subpackage
525926
525926
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.22.2-3
525926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
525926
525926
* Tue Oct 11 2016 Adam Jackson <ajax@redhat.com> - 1.22.2-2
525926
- Prefer eglGetPlatformDisplay to eglGetDisplay
525926
525926
* Fri Aug 26 2016 Kalev Lember <klember@redhat.com> - 1.22.2-1
525926
- Update to 1.22.2
525926
- Don't set group tags
525926
525926
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.22.0-3
525926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
525926
525926
* Wed Oct 21 2015 Ray Strode <rstrode@redhat.com> 1.22.0-2
525926
- Fix black login screen
525926
  Resolves: #1272737
525926
525926
* Wed Sep 16 2015 Kalev Lember <klember@redhat.com> - 1.22.0-1
525926
- Update to 1.22.0
525926
525926
* Fri Aug 21 2015 Kalev Lember <klember@redhat.com> - 1.21.2-2
525926
- Re-enable parallel make
525926
525926
* Fri Aug 21 2015 Kalev Lember <klember@redhat.com> - 1.21.2-1
525926
- Update to 1.21.2
525926
- Use make_install macro
525926
- Mark COPYING as %%license
525926
- Drop large ChangeLog file
525926
525926
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20.0-4
525926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
525926
525926
* Mon Mar 23 2015 Ray Strode <rstrode@redhat.com> 1.20.0-3
525926
- Update to upstreamed version of mgag200 fix
525926
525926
* Wed Mar 11 2015 Ray Strode <rstrode@redhat.com> 1.20.0-2
525926
- Try to fix wayland on mgag200
525926
525926
* Mon Feb 23 2015 Kalev Lember <kalevlember@gmail.com> - 1.20.0-1
525926
- Update to 1.20.0
525926
525926
* Tue Jan 20 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.18.2-10
525926
- Enable tests subpackage (rhbz 1163429)
525926
525926
* Sun Nov 16 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.2-9
525926
- Obsolete compat-cogl116 from rhughes-f20-gnome-3-12 copr
525926
525926
* Thu Nov 13 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.2-8
525926
- Disable cogl-gst as long as we don't have clutter-gst3 (#1158676)
525926
525926
* Sat Nov 01 2014 Richard Hughes <rhughes@redhat.com> - 1.18.2-7
525926
- Fix compile on RHEL, harder
525926
525926
* Mon Oct 27 2014 Richard Hughes <rhughes@redhat.com> - 1.18.2-6
525926
- Fix compile on RHEL
525926
525926
* Fri Aug 22 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.2-5
525926
- Remove lib64 rpaths (#1132876)
525926
525926
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
525926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
525926
525926
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.2-3
525926
- Rebuilt for gobject-introspection 1.41.4
525926
525926
* Fri Jul 11 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.18.2-2
525926
- Run make check but don't fail build on it
525926
525926
* Fri Jul 04 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.2-1
525926
- Update to 1.18.2
525926
525926
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18.0-4
525926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
525926
525926
* Fri May 23 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.0-3
525926
- Backport an upstream fix for a totem crash
525926
525926
* Thu May 08 2014 Adam Jackson <ajax@redhat.com>
525926
- Add optional installed-tests subpackage
525926
525926
* Mon Apr 28 2014 Richard Hughes <rhughes@redhat.com> - 1.18.0-2
525926
- Build with --enable-cogl-gst
525926
525926
* Fri Mar 21 2014 Kalev Lember <kalevlember@gmail.com> - 1.18.0-1
525926
- Update to 1.18.0
525926
525926
* Fri Mar 21 2014 Kalev Lember <kalevlember@gmail.com> - 1.17.5-1.gitbb10532
525926
- Update to 1.17.5 git snapshot
525926
525926
* Fri Feb 21 2014 Kalev Lember <kalevlember@gmail.com> - 1.17.4-2
525926
- Drop compat-libcogl19
525926
525926
* Thu Feb 20 2014 Kalev Lember <kalevlember@gmail.com> - 1.17.4-1
525926
- Update to 1.17.4, which includes soname bump
525926
- Build a temporary compat-libcogl19 subpackage to ease the rebuilds
525926
525926
* Wed Feb 05 2014 Richard Hughes <rhughes@redhat.com> - 1.17.2-1
525926
- Update to 1.17.2
525926
525926
* Tue Jan 21 2014 Richard Hughes <rhughes@redhat.com> - 1.16.2-1
525926
- Update to 1.16.2
525926
525926
* Wed Sep 25 2013 Dan Horák <dan[at]danny.cz> - 1.16.0-2
525926
- fix build on big endians (#1011893)
525926
525926
* Tue Sep 24 2013 Kalev Lember <kalevlember@gmail.com> - 1.16.0-1
525926
- Update to 1.16.0
525926
525926
* Thu Sep 12 2013 Kalev Lember <kalevlember@gmail.com> - 1.15.10-3
525926
- More configure options for enabling the gnome-shell Wayland compositor
525926
- Enable parallel build
525926
525926
* Tue Sep 10 2013 Matthias Clasen <mclasen@redhat.com> - 1.15.10-2
525926
- Add configure options that are needed to enable the gnome-shell
525926
  Wayland compositor
525926
525926
* Mon Sep 02 2013 Kalev Lember <kalevlember@gmail.com> - 1.15.10-1
525926
- Update to 1.15.10
525926
525926
* Thu Aug 22 2013 Kalev Lember <kalevlember@gmail.com> - 1.15.8-1
525926
- Update to 1.15.8
525926
525926
* Fri Aug 09 2013 Kalev Lember <kalevlember@gmail.com> - 1.15.4-1
525926
- Update to 1.15.4
525926
525926
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.0-4
525926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
525926
525926
* Wed Jun 12 2013 Kalev Lember <kalevlember@gmail.com> 1.14.0-3
525926
- Rebuilt
525926
525926
* Wed May 22 2013 Adam Jackson <ajax@redhat.com> 1.14.0-2
525926
- cogl-1.14.0-21-ge26464f.patch: Sync with 1.14 branch for a crash fix.
525926
525926
* Mon Mar 25 2013 Kalev Lember <kalevlember@gmail.com> 1.14.0-1
525926
- Update to 1.14.0
525926
525926
* Wed Mar 13 2013 Matthias Clasen <mclasen@redhat.com> 1.13.4-2
525926
- Enable wayland backend
525926
525926
* Thu Feb 21 2013 Bastien Nocera <bnocera@redhat.com> 1.13.4-1
525926
- Update to 1.13.4
525926
525926
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13.2-2
525926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
525926
525926
* Thu Jan 24 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.13.2-1
525926
- Update to 1.13.2
525926
525926
* Mon Jan  7 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.12.2-1
525926
- Update to 1.12.2
525926
525926
* Tue Sep 25 2012 Kalev Lember <kalevlember@gmail.com> - 1.12.0-1
525926
- Update to 1.12.0
525926
525926
* Tue Sep 18 2012 Kalev Lember <kalevlember@gmail.com> - 1.11.6-1
525926
- Update to 1.11.6
525926
- Drop upstreamed cogl-1.11.4-mesa-strings.patch
525926
525926
* Mon Sep 17 2012 Adam Jackson <ajax@redhat.com> 1.11.4-2
525926
- cogl-1.11.4-mesa-strings.patch: Update match strings for Mesa.
525926
525926
* Mon Sep  3 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.11.4-1
525926
- Update to 1.11.4
525926
525926
* Tue Aug 21 2012 Richard Hughes <hughsient@gmail.com> - 1.11.2-1
525926
- Update to 1.11.2
525926
525926
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.4-2
525926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
525926
525926
* Wed Jul 18 2012 Kalev Lember <kalevlember@gmail.com> - 1.10.4-1
525926
- Update to 1.10.4
525926
- Dropped no-framebuffer-blit patch which is included in the release
525926
525926
* Thu Apr 19 2012 Adel Gadllah <adel.gadllah@gmail.com> - 1.10.2-1
525926
- Update to 1.10.2
525926
525926
* Tue Mar 20 2012 Kalev Lember <kalevlember@gmail.com> - 1.10.0-1
525926
- Update to 1.10.0
525926
525926
* Sat Mar 10 2012 Matthias Clasen <mclasen@redhat.com> - 1.9.8-1
525926
- Update to 1.9.8
525926
525926
* Sat Feb 25 2012 Matthias Clasen <mclasen@redhat.com> - 1.9.6-1
525926
- Update to 1.9.6
525926
525926
* Tue Jan 17 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.9.4-1
525926
- Update to 1.9.4
525926
- http://ftp.gnome.org/pub/GNOME/sources/cogl/1.9/cogl-1.9.4.news
525926
525926
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.2-2
525926
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
525926
525926
* Wed Nov 23 2011 Matthias Clasen <mclasen@redhat.com> 1.9.2-1
525926
- Update to 1.9.2
525926
525926
* Thu Nov 03 2011 Adam Jackson <ajax@redhat.com> 1.8.2-4
525926
- cogl-1.8.2-lp-no-framebuffer-blit.patch: Disable the subbuffer blit code
525926
  when running on llvmpipe until it's unbroken.
525926
525926
* Tue Nov 01 2011 Adam Jackson <ajax@redhat.com> 1.8.2-3
525926
- cogl-1.8.2-no-drm-hax.patch: Don't try insane direct DRM vblank wait.
525926
525926
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.2-2
525926
- Rebuilt for glibc bug#747377
525926
525926
* Mon Oct 17 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.8.2-1
525926
- 1.8.2 stable release
525926
- http://ftp.gnome.org/pub/GNOME/sources/cogl/1.8/cogl-1.8.2.news
525926
- Enable gdk-pixbuf2 support - Fixes RHBZ # 738092
525926
525926
* Mon Sep 19 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.8.0-1
525926
- 1.8.0 stable release
525926
- http://ftp.gnome.org/pub/GNOME/sources/cogl/1.8/cogl-1.8.0.news
525926
525926
* Mon Sep  5 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.7.8-1
525926
- Update to 1.7.8
525926
525926
* Thu Aug 18 2011 Matthias Clasen <mclasen@redhat.com> - 1.7.6-1
525926
- Update to 1.7.6
525926
525926
* Tue Jul 26 2011 Matthias Clasen <mclasen@redhat.com> - 1.7.4-1
525926
- Update to 1.7.4
525926
525926
* Mon Jul  4 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.7.2-1
525926
- Update to 1.7.2
525926
525926
* Thu Jun 16 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.7.0-3
525926
- Update spec for review feedback
525926
525926
* Thu Jun 16 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.7.0-2
525926
- Update spec for review feedback
525926
525926
* Wed Jun 15 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.7.0-1
525926
- Initial Package