Package init
This commit is contained in:
commit
4349ee9f11
BIN
cairo-1.15.14.tar.xz
Normal file
BIN
cairo-1.15.14.tar.xz
Normal file
Binary file not shown.
34
cairo-multilib.patch
Normal file
34
cairo-multilib.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
diff -up cairo-1.12.14/util/cairo-trace/cairo-trace.in.multilib cairo-1.12.14/util/cairo-trace/cairo-trace.in
|
||||||
|
--- cairo-1.12.14/util/cairo-trace/cairo-trace.in.multilib 2013-07-18 16:03:38.044832193 -0400
|
||||||
|
+++ cairo-1.12.14/util/cairo-trace/cairo-trace.in 2013-07-18 16:03:43.981882777 -0400
|
||||||
|
@@ -2,6 +2,12 @@
|
||||||
|
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
+case `uname -m` in
|
||||||
|
+ x86_64|s390x|ppc64) libdir=@prefix@/lib64
|
||||||
|
+ ;;
|
||||||
|
+ *) libdir=@prefix@/lib
|
||||||
|
+ ;;
|
||||||
|
+esac
|
||||||
|
|
||||||
|
nofile=
|
||||||
|
flush=
|
||||||
|
@@ -90,7 +96,7 @@ export CAIRO_TRACE_PROG_NAME
|
||||||
|
|
||||||
|
if test "x$CAIRO_TRACE_SO" = "x"; then
|
||||||
|
CAIRO_TRACE_SO=""
|
||||||
|
- for lib in @libdir@/cairo/libcairo-trace.@SHLIB_EXT@ @libdir@/cairo/libcairo-trace.@SHLIB_EXT@* @libdir@/cairo/libcairo-trace.*.@SHLIB_EXT@ ; do
|
||||||
|
+ for lib in $libdir/cairo/libcairo-trace.@SHLIB_EXT@ $libdir/cairo/libcairo-trace.@SHLIB_EXT@* $libdir/cairo/libcairo-trace.*.@SHLIB_EXT@ ; do
|
||||||
|
if test -h "$lib" -o -f "$lib"; then
|
||||||
|
CAIRO_TRACE_SO="$lib"
|
||||||
|
break
|
||||||
|
@@ -98,7 +104,7 @@ if test "x$CAIRO_TRACE_SO" = "x"; then
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
if test "x$CAIRO_TRACE_SO" = "x"; then
|
||||||
|
- echo "Could not find the cairo-trace shared library in @libdir@/cairo/." >&2
|
||||||
|
+ echo "Could not find the cairo-trace shared library in $libdir/cairo/." >&2
|
||||||
|
echo "Set the CAIRO_TRACE_SO environment variable to the full path of the library." >&2
|
||||||
|
exit 15
|
||||||
|
fi
|
||||||
82
cairo.spec
Normal file
82
cairo.spec
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
%global cairogl --disable-gl
|
||||||
|
|
||||||
|
Name: cairo
|
||||||
|
Version: 1.15.14
|
||||||
|
Release: 2
|
||||||
|
Summary: A 2D graphics library
|
||||||
|
License: LGPLv2 or MPLv1.1
|
||||||
|
URL: http://cairographics.org
|
||||||
|
Source0: http://cairographics.org/snapshots/%{name}-%{version}.tar.xz
|
||||||
|
# This patch comes from fedoraproject
|
||||||
|
Patch0001: cairo-multilib.patch
|
||||||
|
|
||||||
|
BuildRequires: pkgconfig glib2-devel librsvg2-devel
|
||||||
|
BuildRequires: libXrender-devel libX11-devel libpng-devel libxml2-devel
|
||||||
|
BuildRequires: pixman-devel >= 0.30.0
|
||||||
|
BuildRequires: freetype-devel >= 2.1.9
|
||||||
|
BuildRequires: fontconfig-devel >= 2.2.95
|
||||||
|
Provides: cairo-gobject
|
||||||
|
Obsoletes: cairo-gobject
|
||||||
|
|
||||||
|
%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}
|
||||||
|
Provides: cairo-gobject-devel cairo-tools
|
||||||
|
Obsoletes: cairo-gobject-devel cairo-tools
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-static --enable-xlib --enable-ft --enable-ps \
|
||||||
|
--enable-pdf --enable-svg --enable-tee --enable-gobject \
|
||||||
|
%{cairogl} --disable-gtk-doc
|
||||||
|
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
|
||||||
|
%{_libdir}/libcairo.so.*
|
||||||
|
%{_libdir}/libcairo-script-interpreter.so.*
|
||||||
|
%{_bindir}/cairo-sphinx
|
||||||
|
# This is GObject relative lib file
|
||||||
|
%{_libdir}/libcairo-gobject.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%doc ChangeLog PORTING_GUIDE
|
||||||
|
%dir %{_includedir}/cairo/
|
||||||
|
%exclude %{_includedir}/cairo/cairo-gl.h
|
||||||
|
%{_includedir}/cairo/*.h
|
||||||
|
%{_libdir}/*.so
|
||||||
|
%exclude %{_libdir}/pkgconfig/cairo-glx.pc
|
||||||
|
%exclude %{_libdir}/pkgconfig/cairo-gl.pc
|
||||||
|
%exclude %{_libdir}/pkgconfig/cairo-egl.pc
|
||||||
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
# These two files are development tools related
|
||||||
|
%{_libdir}/cairo/
|
||||||
|
%{_datadir}/gtk-doc/html/cairo
|
||||||
|
# This file is development tools related
|
||||||
|
# cairo-trace: Record cairo library calls for later playback
|
||||||
|
%{_bindir}/cairo-trace
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Sep 19 2019 Alex Chao <zhaolei746@huawei.com> - 1.15.14-2
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user