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