|
@@ -1,26 +1,30 @@
|
|
|
|
+%bcond_with check
|
|
|
|
+
|
|
Summary: Cairo - multi-platform 2D graphics library.
|
|
Summary: Cairo - multi-platform 2D graphics library.
|
|
Summary(ja): Cairo - マルチプラットフォーム 2D グラフィックスライブラリ
|
|
Summary(ja): Cairo - マルチプラットフォーム 2D グラフィックスライブラリ
|
|
Name: cairo
|
|
Name: cairo
|
|
Version: 1.16.0
|
|
Version: 1.16.0
|
|
-Release: 1%{?_dist_release}
|
|
|
|
|
|
+Release: 2%{?_dist_release}
|
|
|
|
+Group: system
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+
|
|
License: LGPL/MPL
|
|
License: LGPL/MPL
|
|
-Group: System Environment/Libraries
|
|
|
|
URL: https://cairographics.org/
|
|
URL: https://cairographics.org/
|
|
Source0: https://cairographics.org/releases/%{name}-%{version}.tar.xz
|
|
Source0: https://cairographics.org/releases/%{name}-%{version}.tar.xz
|
|
-
|
|
|
|
# don't use serverside gradients, most drivers don't handle those and are
|
|
# don't use serverside gradients, most drivers don't handle those and are
|
|
# really slow, should workaround performances issues for ati, nouveau and nvidia
|
|
# really slow, should workaround performances issues for ati, nouveau and nvidia
|
|
# https://launchpad.net/ubuntu/maverick/+source/cairo/1.10.0-1ubuntu1
|
|
# https://launchpad.net/ubuntu/maverick/+source/cairo/1.10.0-1ubuntu1
|
|
Patch1: cairo-1.10.0-dont_use_server_side_gradients.patch
|
|
Patch1: cairo-1.10.0-dont_use_server_side_gradients.patch
|
|
-
|
|
|
|
# https://gitlab.freedesktop.org/cairo/cairo/merge_requests/1
|
|
# https://gitlab.freedesktop.org/cairo/cairo/merge_requests/1
|
|
-Patch4: 0001-Set-default-LCD-filter-to-FreeType-s-default.patch
|
|
|
|
-
|
|
|
|
|
|
+Patch4: 0001-Set-default-LCD-filter-to-FreeType-s-default.patch
|
|
# https://gitlab.freedesktop.org/cairo/cairo/merge_requests/5
|
|
# https://gitlab.freedesktop.org/cairo/cairo/merge_requests/5
|
|
-Patch5: 0001-ft-Use-FT_Done_MM_Var-instead-of-free-when-available.patch
|
|
|
|
-
|
|
|
|
|
|
+Patch5: 0001-ft-Use-FT_Done_MM_Var-instead-of-free-when-available.patch
|
|
# https://github.com/matthiasclasen/cairo/commit/79ad01724161502e8d9d2bd384ff1f0174e5df6e
|
|
# https://github.com/matthiasclasen/cairo/commit/79ad01724161502e8d9d2bd384ff1f0174e5df6e
|
|
-Patch6: cairo-composite_color_glyphs.patch
|
|
|
|
|
|
+Patch6: cairo-composite_color_glyphs.patch
|
|
|
|
+
|
|
|
|
+# security fixes
|
|
|
|
+Patch1000: CVE-2020-35492.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
@@ -36,14 +40,12 @@ BuildRequires: gtk-doc
|
|
BuildRequires: librsvg2-devel
|
|
BuildRequires: librsvg2-devel
|
|
BuildRequires: mesa-libGL-devel
|
|
BuildRequires: mesa-libGL-devel
|
|
BuildRequires: mesa-libEGL-devel
|
|
BuildRequires: mesa-libEGL-devel
|
|
|
|
+BuildRequires: git
|
|
|
|
|
|
BuildConflicts: XOrg-compat70-devel
|
|
BuildConflicts: XOrg-compat70-devel
|
|
|
|
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
|
-Distribution: Vine Linux
|
|
|
|
-
|
|
|
|
%description
|
|
%description
|
|
Cairo provides anti-aliased vector-based rendering for X. Paths
|
|
Cairo provides anti-aliased vector-based rendering for X. Paths
|
|
consist of line segments and cubic splines and can be rendered at any
|
|
consist of line segments and cubic splines and can be rendered at any
|
|
@@ -67,8 +69,8 @@ OpenGL are currently being planned.
|
|
%package -n compat32-%{name}
|
|
%package -n compat32-%{name}
|
|
Summary: Cairo - multi-platform 2D graphics library.
|
|
Summary: Cairo - multi-platform 2D graphics library.
|
|
Summary(ja): Cairo - マルチプラットフォーム 2D グラフィックスライブラリ
|
|
Summary(ja): Cairo - マルチプラットフォーム 2D グラフィックスライブラリ
|
|
-Group: System Environment/Libraries
|
|
|
|
-Requires: %{name} = %{version}
|
|
|
|
|
|
+Group: system,legacy
|
|
|
|
+Requires: %{name} = %{version}
|
|
|
|
|
|
%description -n compat32-%{name}
|
|
%description -n compat32-%{name}
|
|
Cairo provides anti-aliased vector-based rendering for X. Paths
|
|
Cairo provides anti-aliased vector-based rendering for X. Paths
|
|
@@ -90,27 +92,29 @@ writing, Xc allows Cairo to target X drawables as well as generic
|
|
image buffers. Future backends such as PostScript, PDF, and perhaps
|
|
image buffers. Future backends such as PostScript, PDF, and perhaps
|
|
OpenGL are currently being planned.
|
|
OpenGL are currently being planned.
|
|
|
|
|
|
|
|
+
|
|
%package devel
|
|
%package devel
|
|
Summary: Development files for Cairo library.
|
|
Summary: Development files for Cairo library.
|
|
Summary(ja): Cairo ライブラリの開発用ファイル
|
|
Summary(ja): Cairo ライブラリの開発用ファイル
|
|
-Group: Development/Libraries
|
|
|
|
|
|
+Group: programming
|
|
Provides: lib%{name}-devel = %{version}-%{release}
|
|
Provides: lib%{name}-devel = %{version}-%{release}
|
|
-Requires: %{name} = %{version}
|
|
|
|
-Requires: libpng-devel
|
|
|
|
-Requires: freetype2-devel
|
|
|
|
|
|
+Requires: %{name} = %{version}
|
|
|
|
+Requires: libpng-devel
|
|
|
|
+Requires: freetype2-devel
|
|
Requires: fontconfig-devel
|
|
Requires: fontconfig-devel
|
|
-Requires: libX11-devel
|
|
|
|
-Requires: libXrender-devel
|
|
|
|
-Requires: pixman-devel
|
|
|
|
-Requires: glib2-devel
|
|
|
|
-Requires: mesa-libEGL-devel
|
|
|
|
|
|
+Requires: libX11-devel
|
|
|
|
+Requires: libXrender-devel
|
|
|
|
+Requires: pixman-devel
|
|
|
|
+Requires: glib2-devel
|
|
|
|
+Requires: mesa-libEGL-devel
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
Development files for Cairo library.
|
|
Development files for Cairo library.
|
|
|
|
|
|
|
|
+
|
|
%package tools
|
|
%package tools
|
|
Summary: Development tools for cairo
|
|
Summary: Development tools for cairo
|
|
-Group: Development/Tools
|
|
|
|
|
|
+Group: programming
|
|
|
|
|
|
%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
|
|
@@ -120,8 +124,13 @@ 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
|
|
|
|
|
|
|
|
|
|
|
|
+%debug_package
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
-%autosetup -p1
|
|
|
|
|
|
+%autosetup -S git -p1
|
|
|
|
+./autogen.sh
|
|
|
|
+
|
|
|
|
|
|
%build
|
|
%build
|
|
%configure --disable-static \
|
|
%configure --disable-static \
|
|
@@ -140,20 +149,16 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
-%install
|
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
+%install
|
|
%makeinstall
|
|
%makeinstall
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
|
|
|
|
|
|
-%clean
|
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
|
-
|
|
|
|
-%post -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
-%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
|
|
+%if %{with check}
|
|
|
|
+%check
|
|
|
|
+make check
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
@@ -182,7 +187,12 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_libdir}/lib*.so.*
|
|
%{_libdir}/lib*.so.*
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Mar 26 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16.0-1
|
|
|
|
+- imported Patch1000 from upstream to fix CVE-2020-35492.
|
|
|
|
+- dropped ldconfig scriptlets.
|
|
|
|
+
|
|
* Fri Oct 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16.0-1
|
|
* Fri Oct 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16.0-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
- imported Patch4-6 from rawhide.
|
|
- imported Patch4-6 from rawhide.
|