|
|
@ -1,54 +1,32 @@
|
|
|
|
%define pixman_version 0.30.0
|
|
|
|
%define pixman_version 0.36.0
|
|
|
|
%define freetype_version 2.1.9
|
|
|
|
%define freetype_version 9.7.3
|
|
|
|
%define fontconfig_version 2.2.95
|
|
|
|
%define fontconfig_version 2.2.95
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 26 || 0%{?rhel} > 7
|
|
|
|
Name: cairo
|
|
|
|
%global cairogl --disable-gl
|
|
|
|
Version: 1.18.2
|
|
|
|
%else
|
|
|
|
Release: 2%{?dist}
|
|
|
|
%global cairogl --enable-gl
|
|
|
|
Summary: A 2D graphics library
|
|
|
|
%global with_gl 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: cairo
|
|
|
|
License: LGPL-2.1-only OR MPL-1.1
|
|
|
|
Version: 1.17.4
|
|
|
|
URL: https://cairographics.org
|
|
|
|
Release: 7%{?dist}
|
|
|
|
Source: https://cairographics.org/releases/%{name}-%{version}.tar.xz
|
|
|
|
Summary: A 2D graphics library
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
License: LGPLv2 or MPLv1.1
|
|
|
|
Patch: cairo-multilib.patch
|
|
|
|
URL: http://cairographics.org
|
|
|
|
|
|
|
|
Source0: http://cairographics.org/snapshots/%{name}-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Patch3: cairo-multilib.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# https://gitlab.freedesktop.org/cairo/cairo/merge_requests/1
|
|
|
|
|
|
|
|
Patch4: 0001-Set-default-LCD-filter-to-FreeType-s-default.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Fix generating PDF font names
|
|
|
|
|
|
|
|
# https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/125
|
|
|
|
|
|
|
|
Patch5: 125.patch
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1911486
|
|
|
|
|
|
|
|
Patch6: cairo-1.15.12-CVE-2020-35492.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# For Patch6.
|
|
|
|
|
|
|
|
BuildRequires: autoconf automake gettext-devel libtool
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libXrender-devel
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: libX11-devel
|
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: pkgconfig(expat)
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: pkgconfig(pixman-1) >= %{pixman_version}
|
|
|
|
BuildRequires: pixman-devel >= %{pixman_version}
|
|
|
|
BuildRequires: pkgconfig(freetype2) >= %{freetype_version}
|
|
|
|
BuildRequires: freetype-devel >= %{freetype_version}
|
|
|
|
BuildRequires: pkgconfig(fontconfig) >= %{fontconfig_version}
|
|
|
|
BuildRequires: fontconfig-devel >= %{fontconfig_version}
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
BuildRequires: librsvg2-devel
|
|
|
|
BuildRequires: pkgconfig(librsvg-2.0)
|
|
|
|
%if 0%{?with_gl}
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: mesa-libGL-devel
|
|
|
|
BuildRequires: pkgconfig(xcb-render)
|
|
|
|
BuildRequires: mesa-libEGL-devel
|
|
|
|
BuildRequires: pkgconfig(xrender)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Cairo is a 2D graphics library designed to provide high-quality display
|
|
|
|
Cairo is a 2D graphics library designed to provide high-quality display
|
|
|
@ -94,6 +72,7 @@ needed for developing software which uses the cairo Gobject library.
|
|
|
|
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
%package tools
|
|
|
|
Summary: Development tools for cairo
|
|
|
|
Summary: Development tools for cairo
|
|
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
%description tools
|
|
|
|
Cairo is a 2D graphics library designed to provide high-quality display
|
|
|
|
Cairo is a 2D graphics library designed to provide high-quality display
|
|
|
@ -103,36 +82,33 @@ This package contains tools for working with the cairo graphics library.
|
|
|
|
* cairo-trace: Record cairo library calls for later playback
|
|
|
|
* cairo-trace: Record cairo library calls for later playback
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -S git
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
autoreconf --force --install
|
|
|
|
%meson \
|
|
|
|
%configure --disable-static \
|
|
|
|
-Dfreetype=enabled \
|
|
|
|
--enable-xlib \
|
|
|
|
-Dfontconfig=enabled \
|
|
|
|
--enable-ft \
|
|
|
|
-Dglib=enabled \
|
|
|
|
--enable-ps \
|
|
|
|
-Dgtk_doc=true \
|
|
|
|
--enable-pdf \
|
|
|
|
-Dspectre=disabled \
|
|
|
|
--enable-svg \
|
|
|
|
-Dsymbol-lookup=disabled \
|
|
|
|
--enable-tee \
|
|
|
|
-Dtee=enabled \
|
|
|
|
--enable-gobject \
|
|
|
|
-Dtests=disabled \
|
|
|
|
%{cairogl} \
|
|
|
|
-Dxcb=enabled \
|
|
|
|
--disable-gtk-doc
|
|
|
|
-Dxlib=enabled \
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
%{nil}
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
%meson_build
|
|
|
|
make V=1 %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
%meson_install
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -delete
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
|
|
|
|
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
|
|
|
|
%doc AUTHORS BIBLIOGRAPHY BUGS NEWS README
|
|
|
|
%doc AUTHORS BUGS NEWS README.md
|
|
|
|
%{_libdir}/libcairo.so.2*
|
|
|
|
%{_libdir}/libcairo.so.2*
|
|
|
|
%{_libdir}/libcairo-script-interpreter.so.2*
|
|
|
|
%{_libdir}/libcairo-script-interpreter.so.2*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%doc ChangeLog PORTING_GUIDE
|
|
|
|
|
|
|
|
%dir %{_includedir}/cairo/
|
|
|
|
%dir %{_includedir}/cairo/
|
|
|
|
%{_includedir}/cairo/cairo-deprecated.h
|
|
|
|
%{_includedir}/cairo/cairo-deprecated.h
|
|
|
|
%{_includedir}/cairo/cairo-features.h
|
|
|
|
%{_includedir}/cairo/cairo-features.h
|
|
|
@ -156,6 +132,7 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
|
|
|
|
%{_libdir}/pkgconfig/cairo-pdf.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-pdf.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-png.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-png.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-ps.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-ps.pc
|
|
|
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-script-interpreter.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-svg.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-svg.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-tee.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-tee.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-xlib.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-xlib.pc
|
|
|
@ -164,12 +141,6 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
|
|
|
|
%{_libdir}/pkgconfig/cairo-xcb-shm.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-xcb-shm.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-xcb.pc
|
|
|
|
%{_libdir}/pkgconfig/cairo-xcb.pc
|
|
|
|
%{_datadir}/gtk-doc/html/cairo
|
|
|
|
%{_datadir}/gtk-doc/html/cairo
|
|
|
|
%if 0%{?with_gl}
|
|
|
|
|
|
|
|
%{_includedir}/cairo/cairo-gl.h
|
|
|
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-egl.pc
|
|
|
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-gl.pc
|
|
|
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-glx.pc
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files gobject
|
|
|
|
%files gobject
|
|
|
|
%{_libdir}/libcairo-gobject.so.2*
|
|
|
|
%{_libdir}/libcairo-gobject.so.2*
|
|
|
@ -184,18 +155,66 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
|
|
|
|
%{_libdir}/cairo/
|
|
|
|
%{_libdir}/cairo/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Feb 21 2022 Tomas Popela <tpopela@redhat.com> - 1.17.4-7
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.18.2-2
|
|
|
|
- Add git as BR (#1911486)
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.18.2-1
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Sep 10 2024 Matthias Clasen <mclasen@redhat.com> - 1.18.2-1
|
|
|
|
|
|
|
|
- Update to 1.18.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.18.0-4
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.0-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 27 2023 Kalev Lember <klember@redhat.com> - 1.18.0-1
|
|
|
|
|
|
|
|
- Update to 1.18.0
|
|
|
|
|
|
|
|
- Drop the xml surface and cairo-sphinx tool as they've been removed upstream
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.8-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 15 2023 Scott Talbert <swt@techie.net> - 1.17.8-4
|
|
|
|
|
|
|
|
- Fix crash due to scaled_glyph->dev_private reuse (#2189228)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 15 2023 David King <amigadave@amigadave.com> - 1.17.8-3
|
|
|
|
|
|
|
|
- Fix missing glyphs in ft-font
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 25 2023 Marek Kasik <mkasik@redhat.com> - 1.17.8-2
|
|
|
|
|
|
|
|
- Rebuild for new freetype-2.13.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 20 2023 David King <amigadave@amigadave.com> - 1.17.8-1
|
|
|
|
|
|
|
|
- Update to 1.17.8 (#2166624)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.6-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.6-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Mar 18 2022 David King <amigadave@amigadave.com> - 1.17.6-1
|
|
|
|
|
|
|
|
- Update to 1.17.6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 25 2022 David King <amigadave@amigadave.com> - 1.17.4-7
|
|
|
|
|
|
|
|
- Fix permissions on cairo-trace
|
|
|
|
|
|
|
|
- Add explicit Requires to tools subpackage
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 21 2022 David King <amigadave@amigadave.com> - 1.17.4-6
|
|
|
|
* Tue Feb 15 2022 David King <amigadave@amigadave.com> - 1.17.4-6
|
|
|
|
- Fix CVE-2020-35492 (#1911486)
|
|
|
|
- Switch to meson
|
|
|
|
|
|
|
|
- Use pkgconfig for BuildRequires
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.17.4-5
|
|
|
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.4-5
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.17.4-4
|
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.4-4
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Mar 16 2021 Kalev Lember <klember@redhat.com> - 1.17.4-3
|
|
|
|
* Tue Mar 16 2021 Kalev Lember <klember@redhat.com> - 1.17.4-3
|
|
|
|
- Backport an upstream patch to fix generating PDF font names (#1939399)
|
|
|
|
- Backport an upstream patch to fix generating PDF font names (#1939399)
|
|
|
|