SHA256
1
0
forked from pool/cairo
cairo/cairo.spec

350 lines
12 KiB
RPMSpec
Raw Normal View History

#
# spec file for package cairo (Version 1.6.4)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: cairo
# Use rpmbuild -D 'DIRECTFB_SUPPORT 1' to build wíth DirectFB support.
BuildRequires: freetype2-devel glitz-devel libpng-devel pkg-config xorg-x11-devel
%if %suse_version > 1020
BuildRequires: xorg-x11-libxcb-devel
%endif
%if 0%{?DIRECTFB_SUPPORT}
BuildRequires: DirectFB-devel
%endif
# These libraries are needed only for tests.
# Do not enable tests in build systems, it causes build loop!
#BuildRequires: librsvg-devel poppler-devel
License: LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
Group: Development/Libraries/X11
Summary: Vector Graphics Library with Cross-Device Output Support
Url: http://cairographics.org/
Version: 1.6.4
Release: 1
Source: %{name}-%{version}.tar.bz2
Patch1: cairo-ac.patch
# This fixes a problem with libpixman getting the depth wrong for some
# 16bpp image formats but still render things correctly. Using
# surface->depth instead of image->depth for the ximage was a quick way to
# avoid this problem.
# It's not the appropriate fix and should probably not go upstream.
# libpixmap should be fixed if it hasn't already.
# PATCH-NEEDS-REBASE cairo-1.0.2-depth-fix-1.patch -- Well, it probably doesn't actually need a rebasing, but the comment above says it wrong, but it appears to have been landed upstream anyway.
Patch4: cairo-1.0.2-depth-fix-1.patch
# PATCH-NEEDS-REBASE bugzilla-104365.patch bnc104365 -- it needs a rename too!
Patch6: bugzilla-104365.patch
# PATCH-NEEDS-REBASE cairo-1.4.10-lcd-filter-1.patch
Patch7: cairo-1.4.10-lcd-filter-1.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Last present in SuSE Linux 10.0 (and NLD9):
Obsoletes: libpixman <= 0.1.1
Provides: libpixman <= 0.1.1
%description
Cairo is a vector graphics library with cross-device output support.
Currently supported output targets include the X Window System,
in-memory image buffers, and PostScript. Cairo is designed to produce
identical output on all output media while taking advantage of display
hardware acceleration when available.
Authors:
--------
Carl D. Worth <cworth@isi.edu>
%package devel
License: LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
Summary: Development environment for cairo
Group: Development/Libraries/X11
Requires: %{name} = %{version} freetype2-devel fontconfig-devel xorg-x11-devel
Requires: libpng-devel glitz-devel
%if 0%{?DIRECTFB_SUPPORT}
Requires: DirectFB-devel
%endif
### %if %(rpm -q --queryformat=%%{version} xorg-x11-devel | sed 's/\..*$//') >= 7
Requires: xorg-x11-libXrender-devel xorg-x11-libX11-devel
%if %suse_version > 1020
Requires: xorg-x11-libxcb-devel
%endif
### %endif
# Last present in SuSE Linux 10.0 (and NLD9):
Obsoletes: libpixman-devel <= 0.1.1
Provides: libpixman-devel <= 0.1.1
%description devel
This package contains all files necessary to build binaries using
cairo.
Authors:
--------
Carl D. Worth <cworth@isi.edu>
%package doc
License: LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
Summary: Documentation for cairo
Group: Development/Libraries/X11
Requires: %{name} = %{version}
%description doc
This package contains the documentation for cairo.
Authors:
--------
Carl D. Worth <cworth@isi.edu>
%prep
%setup -q
%patch1
# %patch4
# %patch6 -p1
# %patch7 -p1
%build
autoreconf -f -i
%if %suse_version > 1000
export CFLAGS="$RPM_OPT_FLAGS -fstack-protector"
%endif
# xcb-renderutil is not yet available in openSUSE 10.2
# Only for tests: --enable-pdf --enable-svg
%configure\
--enable-glitz\
%if 0%{?DIRECTFB_SUPPORT}
--enable-directfb\
%endif
--enable-ps\
%if %suse_version > 1020
--enable-xcb\
%endif
--disable-gtk-doc
make %{?jobs:-j %jobs}
%install
%makeinstall
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-, root, root)
# %doc AUTHORS COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 ChangeLog NEWS README ROADMAP TODO
%doc AUTHORS COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 ChangeLog NEWS README
%{_libdir}/libcairo.so.*
%files devel
%defattr(-, root, root)
%doc PORTING_GUIDE
%{_includedir}/cairo
%{_libdir}/libcairo.so
%{_libdir}/libcairo.*a
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr(-, root, root)
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/*
%changelog
* Tue Jun 10 2008 maw@suse.de
- Update to version 1.6.4:
+ Improved PDF and PostScript output
+ Support for arbitrary X server visuals
+ A new Quartz backend and a new "win32 printing" backend
+ Many bug fixes
+ For a fuller account of what's new, see the NEWS file
included in the distribution
- Tag patches; temporarily disable several pending rebasing.
* Mon Apr 14 2008 aj@suse.de
- Remove dependency on gtk-doc and own the directories instead.
- Properly provide libpixman.
- Change ldconfig usage in post scripts.
* Mon Apr 14 2008 schwab@suse.de
- Fix configure script with patch cairo-ac.patch.
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
* Mon Jan 28 2008 maw@suse.de
- Update to version 1.4.14:
+ Fixes backported from the 1.5 development branch:
* Fix a regression (which first appeared in 1.4.12) where
stroking under a large scale would sometimes incorrectly
replace a miter join with a bevel join
+ Fix handling of fonts that contain a mixture of outline and
bitmapped glyphs; there was a change in this handling in
1.4.12 that improved some cases and also regressed other
cases; now, all cases should be handled quite well
+ Fix xlib backend to not consider recent X server release as
having a buggy repeat implementation in the Render extension
+ Fix several bugs in cairo's PostScript output; these include
making the PostScript output more compatible with recent
versions of ghostscript that are more strict about Type 3
fonts, for example.
* Fri Dec 21 2007 maw@suse.de
- Update to version 1.4.12:
+ Avoid overflow when allocating large buffers
+ Fix crash with cairo_pattern_set_user_data
+ Fix broken locking in cairo-ft error path
+ Avoid crash when cleaning up after Render extension
+ Avoid crash for zero-sized bitmap glyph
+ Avoid crash with type-1 fonts and ft and atsui enabled
+ Fix many error-handling cases in the Quartz/ATSUI code
+ Eliminate cairo_stroke crash with scaling near zero
+ Fix PDF linear gradients without stops at 0.0 and 1.0
+ Fix PDF CFF subsetting to work with Apple Preview
+ Report proper errors on out-of-memory on win32
+ Fix EXTEND_NONE gradients for cairo-quartz
+ Fix odd-number-of-dashes dashing for cairo-quartz
+ Fix erroneous results from cairo_stroke_extents
+ Force non-AA text when bitmap strikes are available
+ Fix cairo-atsui font metrics
+ Avoid drawing shutdown for glyph-not-found in font
+ Don't raise an error for creating an empty path
+ Free glyph surfaces after uploading to X server cache.
* Wed Jul 04 2007 sbrabec@suse.cz
- Updated to version 1.4.10:
* Eliminate X errors that were killing OO.o
* Use IncludeInferiors when using xlib surface as a source
* Optimize drawing of many rectangles
* Thread-safe surface-cache for solid patterns
* Surface cache for solid patterns
* Internal cleanup of error handling
* Repaired mutex initialization
* PDF Improvements
* Performance optimizations
* More malloc reduction
* Fix a crash due to a LOCK vs. UNLOCK typo
* Backend-specific fixes
* Miscellaneous fixes
* Mon Jun 18 2007 maw@suse.de
- Add %%run_ldconfig to %%post and %%postun sections.
* Mon Mar 26 2007 sbrabec@suse.cz
- Disabled DirectFB by default (#256775).
- Ported bugzilla-104365.patch.
* Tue Mar 13 2007 sbrabec@suse.cz
- Updated to version 1.4.0:
* Performance improvements.
* API additions.
* Many bug fixes.
* Documentation improvements.
- Enabled XCB and DirectFB backends.
* Fri Feb 02 2007 sbrabec@suse.cz
- Removed references to /opt/gnome.
- Fixed devel dependencies.
* Fri Jan 26 2007 jhargadon@suse.de
- removed patch cairo-remove-requires-private.patch (#237155)
* Tue Jan 23 2007 ro@suse.de
- drop requires for gnome-filesystem
* Wed Oct 25 2006 jhargadon@suse.de
- update to version 1.2.4
- fixed several rendering bugs
- add cairo-1.2.4-lcd-filter-1.patch to resolve bug #213989
* Thu Sep 14 2006 sbrabec@suse.cz
- Create correct dependencies in older products.
* Fri Aug 18 2006 jhargadon@suse.de
- update to version 1.2.2
- Fix crashes with BGR X servers
- Fix the "disappearing text" bug
- Fix broken image fallback scaling
- Fix inadvertent semantic change of font matrix translation
- Fix create_similar to preserve fallback resolution and font options
* Wed Aug 16 2006 gekker@suse.de
- Disable gtk-doc, it comes prebuilt and this decreases build deps
* Fri Jul 28 2006 gekker@suse.de
- Update to version 1.2.0
- Remove upstreamed patches
- API addition: cairo_xlib_surface_get_width,cairo_xlib_surface_get_height
- new features:
Dots can now be drawn by using CAIRO_LINE_CAP_ROUND with
degenerate sub-paths, (cairo_move_to() followed by either
cairo_close_path() or a cairo_line_to() to the same location).
- many bugfixes
* Sat May 13 2006 joeshaw@suse.de
- Add a patch to fix a crash in Nautilus, backported from 1.0.4.
bnc #174152
* Fri Apr 28 2006 mfabian@suse.de
- Bugzilla #104365: delete fontconfig pattern elements before
trying to add them if the intention is to override default
settings.
* Fri Mar 24 2006 gekker@suse.de
- Fixes cairo crash in evolution with specific mails (#159675)
- CVE-2006-0528
* Fri Jan 27 2006 ro@suse.de
- use -fstack-protector (merged from meissner)
* Fri Jan 27 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 25 2006 sbrabec@suse.cz
- Removed Xlib version fb repeating picture bug check (#100469).
* Mon Jan 23 2006 dreveman@suse.de
- Fix 16bpp issue.
* Wed Jan 11 2006 sbrabec@suse.cz
- Do not require libpixman, it's included now.
- Obsolete no longer needed libpixman.
* Wed Nov 23 2005 gekker@suse.de
- Fix broken build (Thanks to Richard Guenther for the patch).
* Tue Nov 01 2005 sbrabec@suse.cz
- Updated to version 1.0.2.
* Tue Oct 04 2005 sbrabec@suse.cz
- Enabled ps and pdf backends (#120049).
* Fri Sep 09 2005 sbrabec@suse.cz
- Re-enabled glitz backend (#116075).
* Sat Sep 03 2005 matz@suse.de
- Fix last change.
* Sat Sep 03 2005 gekker@suse.de
- Remove Requires.private from the cairo.pc file as it causes
build failures in gcc.
* Thu Sep 01 2005 gekker@suse.de
- Update to released version 1.0.0
- Remove upsteamed patch
* Tue Aug 30 2005 mfabian@suse.de
- Bugzilla #113602: add patch from bugzilla.gnome.org to
fix crashes in pangocairo. See also:
http://bugzilla.gnome.org/show_bug.cgi?id=313685
http://bugzilla.gnome.org/attachment.cgi?id=50878&action=view
* Mon Aug 29 2005 mfabian@suse.de
- Bugzilla #113545: add patch by Zhe Su to support embedded
bitmaps.
* Thu Aug 18 2005 kukuk@suse.de
- RPM can calculate dependencies much better than using a
hardcoded list
* Wed Aug 17 2005 gekker@suse.de
- Update to version 0.9.2
* Wed Aug 03 2005 sbrabec@suse.cz
- Xlib version fb repeating picture bug check update (#100469).
* Tue Aug 02 2005 gekker@suse.de
- Fix requirements
* Mon Aug 01 2005 gekker@suse.de
- Updated to version 0.6.0.
* Wed Jun 01 2005 sbrabec@suse.cz
- Updated to version 0.5.0.
* Wed Jun 01 2005 sbrabec@suse.cz
- Fixed devel requirements.
* Mon May 09 2005 sbrabec@suse.cz
- Packaged license files.
* Mon May 09 2005 sbrabec@suse.cz
- Updated to version 0.4.0.
* Wed Jan 26 2005 sbrabec@suse.cz
- Updated to version 0.3.0.
* Wed Jan 26 2005 meissner@suse.de
- Added libpng-devel-packages to nfb #49052
* Wed May 19 2004 clahey@suse.de
- Updated to 0.1.23.
* Tue Apr 20 2004 uli@suse.de
- initial package