2019-09-30 10:33:43 -04:00
|
|
|
%global cairogl --disable-gl
|
|
|
|
|
|
|
|
|
|
Name: cairo
|
2021-11-22 18:16:18 +08:00
|
|
|
Version: 1.17.4
|
2022-12-01 21:34:03 +08:00
|
|
|
Release: 3
|
2019-09-30 10:33:43 -04:00
|
|
|
Summary: A 2D graphics library
|
|
|
|
|
License: LGPLv2 or MPLv1.1
|
|
|
|
|
URL: http://cairographics.org
|
2022-12-01 21:34:03 +08:00
|
|
|
Source0: http://cairographics.org/snapshots/%{name}-%{version}.tar.xz
|
2019-09-30 10:33:43 -04:00
|
|
|
|
2020-07-13 18:59:36 +08:00
|
|
|
Patch0001: 0001-Set-default-LCD-filter-to-FreeType-s-default.patch
|
2020-09-18 11:55:01 +08:00
|
|
|
Patch6000: CVE-2019-6461.patch
|
|
|
|
|
Patch6001: CVE-2019-6462.patch
|
2021-04-08 11:49:11 +08:00
|
|
|
Patch6002: backport-CVE-2020-35492.patch
|
2020-07-13 18:59:36 +08:00
|
|
|
|
2021-11-22 18:16:18 +08:00
|
|
|
BuildRequires: gcc make
|
2019-09-30 10:33:43 -04:00
|
|
|
BuildRequires: pkgconfig glib2-devel librsvg2-devel
|
|
|
|
|
BuildRequires: libXrender-devel libX11-devel libpng-devel libxml2-devel
|
2021-11-22 18:16:18 +08:00
|
|
|
BuildRequires: pixman-devel >= 0.36.0
|
2019-09-30 10:33:43 -04:00
|
|
|
BuildRequires: freetype-devel >= 2.1.9
|
|
|
|
|
BuildRequires: fontconfig-devel >= 2.2.95
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Cairo is a 2D graphics libarary with support for multiple output devices.
|
|
|
|
|
It provides high-quality display and print output and this package also
|
|
|
|
|
contains functionality to make cairo graphics library integrate well with
|
|
|
|
|
GObject used by GNOME.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for cairo
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains libraries, header files and developer documentation
|
|
|
|
|
needed for developing software which uses the cairo graphics library and
|
|
|
|
|
cairo GObject library and contains tools for working with the cairo graphics
|
|
|
|
|
library as well.
|
|
|
|
|
|
2021-11-22 18:16:18 +08:00
|
|
|
%package gobject
|
|
|
|
|
Summary: GObject bindings for cairo
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description gobject
|
|
|
|
|
Cairo is a 2D graphics library designed to provide high-quality display
|
|
|
|
|
and print output.
|
|
|
|
|
|
|
|
|
|
This package contains functionality to make cairo graphics library
|
|
|
|
|
integrate well with the GObject object system used by GNOME.
|
|
|
|
|
|
|
|
|
|
%package gobject-devel
|
|
|
|
|
Summary: Development files for cairo-gobject
|
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-gobject%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description gobject-devel
|
|
|
|
|
Cairo is a 2D graphics library designed to provide high-quality display
|
|
|
|
|
and print output.
|
|
|
|
|
|
|
|
|
|
This package contains libraries, header files and developer documentation
|
|
|
|
|
needed for developing software which uses the cairo Gobject library.
|
|
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
|
Summary: Development tools for cairo
|
|
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
|
Cairo is a 2D graphics library designed to provide high-quality display
|
|
|
|
|
and print output.
|
|
|
|
|
|
|
|
|
|
This package contains tools for working with the cairo graphics library.
|
|
|
|
|
* cairo-trace: Record cairo library calls for later playback
|
|
|
|
|
|
2019-09-30 10:33:43 -04:00
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --disable-static --enable-xlib --enable-ft --enable-ps \
|
|
|
|
|
--enable-pdf --enable-svg --enable-tee --enable-gobject \
|
2022-05-09 06:25:30 +00:00
|
|
|
%{cairogl} --disable-gtk-doc --disable-symbol-lookup
|
2019-09-30 10:33:43 -04:00
|
|
|
sed -i -e 's/^hardcode_libdir_flag_spec=.*/hardcode_libdir_flag_spec=""/g' \
|
|
|
|
|
-e 's/^runpath_var=LD_RUN_PATH/runpath_var=DIE_RPATH_DIE/g' libtool
|
|
|
|
|
%make_build V=1
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -delete
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1
|
|
|
|
|
%doc AUTHORS BIBLIOGRAPHY BUGS NEWS README
|
2021-11-22 18:16:18 +08:00
|
|
|
%{_libdir}/libcairo.so.2*
|
|
|
|
|
%{_libdir}/libcairo-script-interpreter.so.2*
|
|
|
|
|
|
|
|
|
|
%files devel
|
2019-09-30 10:33:43 -04:00
|
|
|
%doc ChangeLog PORTING_GUIDE
|
|
|
|
|
%dir %{_includedir}/cairo/
|
2021-11-22 18:16:18 +08:00
|
|
|
%{_includedir}/cairo/cairo-deprecated.h
|
|
|
|
|
%{_includedir}/cairo/cairo-features.h
|
|
|
|
|
%{_includedir}/cairo/cairo-ft.h
|
|
|
|
|
%{_includedir}/cairo/cairo.h
|
|
|
|
|
%{_includedir}/cairo/cairo-pdf.h
|
|
|
|
|
%{_includedir}/cairo/cairo-ps.h
|
|
|
|
|
%{_includedir}/cairo/cairo-script-interpreter.h
|
|
|
|
|
%{_includedir}/cairo/cairo-svg.h
|
|
|
|
|
%{_includedir}/cairo/cairo-tee.h
|
|
|
|
|
%{_includedir}/cairo/cairo-version.h
|
|
|
|
|
%{_includedir}/cairo/cairo-xlib-xrender.h
|
|
|
|
|
%{_includedir}/cairo/cairo-xlib.h
|
|
|
|
|
%{_includedir}/cairo/cairo-script.h
|
|
|
|
|
%{_includedir}/cairo/cairo-xcb.h
|
|
|
|
|
%{_libdir}/libcairo.so
|
|
|
|
|
%{_libdir}/libcairo-script-interpreter.so
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-fc.pc
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-ft.pc
|
|
|
|
|
%{_libdir}/pkgconfig/cairo.pc
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-pdf.pc
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-png.pc
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-ps.pc
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-svg.pc
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-tee.pc
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-xlib.pc
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-xlib-xrender.pc
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-script.pc
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-xcb-shm.pc
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-xcb.pc
|
2019-09-30 10:33:43 -04:00
|
|
|
%{_datadir}/gtk-doc/html/cairo
|
2021-11-22 18:16:18 +08:00
|
|
|
|
|
|
|
|
%files gobject
|
|
|
|
|
%{_libdir}/libcairo-gobject.so.2*
|
|
|
|
|
|
|
|
|
|
%files gobject-devel
|
|
|
|
|
%{_includedir}/cairo/cairo-gobject.h
|
|
|
|
|
%{_libdir}/libcairo-gobject.so
|
|
|
|
|
%{_libdir}/pkgconfig/cairo-gobject.pc
|
|
|
|
|
|
|
|
|
|
%files tools
|
2019-09-30 10:33:43 -04:00
|
|
|
%{_bindir}/cairo-trace
|
2021-11-22 18:16:18 +08:00
|
|
|
%{_libdir}/cairo/
|
2019-09-30 10:33:43 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2022-12-01 21:34:03 +08:00
|
|
|
* Thu Dec 1 2022 pengyi<pengyi37@huawei.com> - 1.17.4-3
|
|
|
|
|
- DESC:correct source URL
|
|
|
|
|
|
2022-05-09 06:25:30 +00:00
|
|
|
* Mon May 09 2022 wangkerong<wangkerong@h-partners.com> - 1.17.4-2
|
|
|
|
|
- DESC:disable symbol-lookup,fix build failure after install binutils-devel
|
|
|
|
|
|
2021-11-22 18:16:18 +08:00
|
|
|
* Mon Nov 22 2021 hanhui<hanhui15@huawei.com> - 1.17.4-1
|
|
|
|
|
- DESC:update to 1.17.4
|
|
|
|
|
|
2021-05-26 10:59:51 +08:00
|
|
|
* Wed May 26 2021 liuyumeng <liuyumeng5@huawei.com> - 1.16.0-5
|
|
|
|
|
- Add a BuildRequires for gcc
|
|
|
|
|
|
2021-04-08 11:49:11 +08:00
|
|
|
* Thu Apr 1 2021 wangkerong <wangkerong@huawei.com> - 1.16.0-4
|
|
|
|
|
- Type:cve
|
|
|
|
|
- ID:CVE-2020-35492
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2020-35492
|
|
|
|
|
|
2020-09-27 17:07:05 +08:00
|
|
|
* Sun Sep 27 2020 wangye <wangye70@huawei.com> - 1.16.0-3
|
|
|
|
|
- fix source URL
|
|
|
|
|
|
2020-09-18 11:55:01 +08:00
|
|
|
* Fri Sep 18 2020 yanglu <yanglu60@huawei.com> - 1.16.0-2
|
|
|
|
|
- Type:cves
|
|
|
|
|
- ID:CVE-2019-6461 CVE-2019-6462
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2019-6461 CVE-2019-6462
|
|
|
|
|
|
2020-07-13 18:59:36 +08:00
|
|
|
* Mon Jul 13 2020 jinzhimin <jinzhimin2@huawei.com> - 1.16.0-1
|
2020-06-24 11:31:06 +08:00
|
|
|
- Version upgrade
|
|
|
|
|
|
2020-01-10 11:01:10 +08:00
|
|
|
* Fri Jan 10 2020 zhangrui <zhangrui182@huawei.com> - 1.15.14-3
|
|
|
|
|
- Remove unnecessary patch
|
|
|
|
|
|
2019-09-30 10:33:43 -04:00
|
|
|
* Thu Sep 19 2019 Alex Chao <zhaolei746@huawei.com> - 1.15.14-2
|
|
|
|
|
- Package init
|