# # spec file for package cairomm1_0 # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define _name cairomm Name: cairomm1_0 Version: 1.12.2 Release: 2.3 Summary: C++ Interface for Cairo License: LGPL-2.1-or-later Group: System/GUI/GNOME URL: http://cairographics.org Source: http://cairographics.org/releases/%{_name}-%{version}.tar.gz Source99: baselibs.conf # needs doxygen for the documentation BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: pkgconfig(cairo) >= 1.10.0 BuildRequires: pkgconfig(sigc++-2.0) >= 2.5.1 %description This package provides a C++ interface for Cairo. %package -n libcairomm-1_0-1 Summary: C++ interface for Cairo Group: System/Libraries %description -n libcairomm-1_0-1 This package provides a C++ interface for Cairo. %package devel Summary: C++ interface for Cairo Group: Development/Libraries/GNOME Requires: libcairomm-1_0-1 = %{version} %description devel This package provides a C++ interface for Cairo. %package doc Summary: C++ Interface for Cairo Group: Documentation/HTML %description doc This package provides a C++ interface for Cairo. %prep %setup -q -n %{_name}-%{version} %build %configure --disable-static --with-pic make %{?_smp_mflags} %install %make_install find %{buildroot} -type f -name "*.la" -delete -print %post -n libcairomm-1_0-1 -p /sbin/ldconfig %postun -n libcairomm-1_0-1 -p /sbin/ldconfig %files -n libcairomm-1_0-1 %license COPYING %doc AUTHORS ChangeLog NEWS README %{_libdir}/*.so.* %files devel %{_libdir}/*.so %dir %{_libdir}/cairomm-1.0/ %{_libdir}/cairomm-1.0/include %{_libdir}/pkgconfig/*.pc %{_includedir}/* %files doc %{_datadir}/devhelp/books/cairomm-1.0 %{_datadir}/doc/cairomm-1.0 # Avoid BuildRequires on devhelp %dir %{_datadir}/devhelp %dir %{_datadir}/devhelp/books %changelog * Wed Feb 28 2018 dimstar@opensuse.org - Modernize spec-file by calling spec-cleaner * Fri Dec 2 2016 dimstar@opensuse.org - Rename to cairomm1_0: legacy package with the 1.0 API. The existing package 'cairomm' will remain to be the 'latest' version. * Sun Nov 20 2016 zaitor@opensuse.org - Update to version 1.12.2: + Remove new API that was not meant to be added in 1.12.1. - Changes from version 1.12.1: + C++11: - Use nullptr instead of 0. - Use override keyword on destructors. - Make operator bool() explicit. * Wed Jun 1 2016 jengelh@inai.de - Remove unnecessary INSTALL file (resolves rpmlint warning) * Fri Apr 15 2016 mgorse@suse.com - Update to GNOME 3.20 Fate#318572 * Wed Sep 30 2015 zaitor@opensuse.org - Update to version 1.12.0: + Cairo::RefPtr: Add move constructors and move operator=(). + MSVC build fixes. * Sun Aug 16 2015 zaitor@opensuse.org - Update to version 1.11.4: + Use (and require) C++11. + Add Script and ScriptSurface. + Context: get_surface_wrapper(): Handle CAIRO_SURFACE_TYPE_SCRIPT, returning a ScriptSurface. + Surface: get_device(): Handle CAIRO_SURFACE_TYPE_SCRIPT, returning a Script. + Wrap cairo script device and script surface APIs. + FtFontFace: Add get/set/unset_synthesize(). + Update MSVC.Net 2010 project files. * Fri May 15 2015 dimstar@opensuse.org - Add baselibs.conf to source list. * Mon Mar 3 2014 zaitor@opensuse.org - Update to version 1.11.2: + Pattern: Add set_extend() and get_extend(). + ScaledFont: Add the missing get_extents() method implementation. + Allow use from Objective-C instead of just allowing building. + Avoid dereferencing empty std::vector<>s. + Documentation improvements. + Fix linker problems in examples. * Sat Sep 21 2013 dimstar@opensuse.org - Change RPM Group of shared library package to System/Libraries. * Thu Mar 21 2013 mmeister@suse.com - Added url as source. Please see http://en.opensuse.org/SourceUrls * Fri Mar 1 2013 dimstar@opensuse.org - Spec-cleanup using format_spec_file service. * Sat Sep 17 2011 jengelh@medozas.de - Remove redundant tags/sections from specfile - Use %%_smp_mflags for parallel building - Add cairomm-devel to baselibs * Fri May 27 2011 vuntz@opensuse.org - Update to version 1.10.0: + Documentation: Context::arc(): Correct the documentation, as in the C documentation (fdo#31345). * Fri Jan 7 2011 vuntz@opensuse.org - Update to version 1.9.8: + Surface: - added create() for creating a sub-surface representing a rectangle on a target surface - PDF versioning API: get_versions(), restrict_to_version(), version_to_string() - add get_device() - add new surface type enum values + Device - add acquire() and release() functions - Add Device::Lock convenience class + Region - UNSTABLE API CHANGE: Fix do_union(), subtract(), intersect() to throw exceptions instead of returning error statuses to be consistent with the rest of the cairomm API - add xor() functions - add API for creating a region from a list of rectangles - implement copy() + Documentation: - Context::arc(): Fix fdo#31345 about bad math in arc() documentation. - Add documentation for Device class - Add documentation for Region class - Create a libcairomm-1_0-1 subpackage to follow the shared library packaging policy. Add appropriate Provides/Obsoletes. - Remove explicit cairo-devel and libsigc++2-devel Requires of devel package: they will automatically be added the pkgconfig()-way. * Thu Oct 28 2010 vuntz@opensuse.org - Update to version 1.9.6: + Context: Added in_clip(). + Surface: Added get_mime_data(), set_mime_data(), unset_mime_data(). + Build: Added support for Windows 64-bit and Visual Studio 2010. * Sat Oct 23 2010 vuntz@opensuse.org - Update to version 1.9.4: + Added Device. * Mon Sep 6 2010 dimstar@opensuse.org - Update to version 1.9.2: + Context: - set_dash(): Make the dashes parameter const. - device_to_user(), device_to_user_distance(), user_to_device() user_to_device_distance(): Deprecate the non-const versions, adding const versions. + fdo#28246: Cleanup of most -Weffc++ warnings * Mon Aug 2 2010 dimstar@opensuse.org - Update to version 1.9.1: + Added Region. + Context: Don't allow this to be copied. + Fix the MSVC build + Fix the 64-bit build. + Actually install cairomm-xlib-xrender-1.0.pc * Thu Jun 10 2010 wittemar@googlemail.com - build 32bit-package * Tue Dec 1 2009 vuntz@opensuse.org - Update to version 1.8.4: + move to new mm-common build infrastructure - Use spec-cleaner on the spec file. * Sun Jul 19 2009 dominique-obs@leuenberger.net - Update to version 1.8.2: + Fix accidental ABI breakage from 1.8.0 * Tue Feb 3 2009 hfiguiere@suse.de - Install documentation (bnc#472078) * Mon Feb 2 2009 mboman@suse.de - Update to version 1.8.0: + No notable changes since 1.7.2 * Fri Dec 26 2008 mboman@suse.de - Update to version 1.7.2: + API Changes (all API changes are in unstable API introduced in 1.7.x) + UserFontFace is not implemented with virtual functions rather than by registering callbacks + Cairo::scaled_matrix() -> Cairo::scaling_matrix() to match other matrix convenience functions + Incorrect refcounting on ScaledFont + build fixes for Mac OSX * Sun Dec 14 2008 mboman@suse.de - Update to version 1.7.0: + To many changes and fixes to list. See NEWS for full details. * Tue Sep 23 2008 maw@suse.de - Update to version 1.6.4: + New API: * wrap cairo_format_stride_for_width() + Fixed a bug where an exception message would often report "Success" when it should have reported an error message + Added ability to get the error status code from an exception: Cairo::logic_error::get_status_code() + Added new elements to the surface type enumeration + Bugs fixed: bfo#14559 and bfo#14558. * Tue Jun 17 2008 crrodriguez@suse.de - disable unusable static libraries * Mon Mar 31 2008 vuntz@suse.de - Update to version 1.4.8: + Bug fd.o #14559: build failure in exception.cc on Solaris with Sun Workshop C++ + Bug fd.o #14558: cairomm 1.4.6 context.cc needs math.h on Solaris - Changes from version 1.4.6: + Bug fd.o #11972: Cannot build cairomm with Quartz enabled - Changes from version 1.4.4: + Added the --enable-api-exceptions=yes/no configure option, to allow cairomm to build when exceptions are disabled. For instance, when using CXXFLAGS=-fno-exceptions with g++. - Changes from version 1.4.2: + Bug fd.o #11596: Fixed broken shared library versioning + Bug fd.o #8511: RefPtr: refcounting broken with cast_*() methods - Changes from version 1.4.0: + Wrapped new API added in cairo 1.4 + Added support for Quartz surfaces + ability to use dynamic casting for surfaces and patterns returned from Context::get_target(), Context::get_source(), etc. + Various build and bug fixes - Changes from version 1.2.4: + Fixed an error that prevented Cairo::RefPtr<>::cast_static() and Cairo::RefPtr<>::cast_dynamic() from compiling. - Stop using %%run_ldconfig and run /sbin/ldconfig directly. * Fri Jan 12 2007 sbrabec@suse.cz - Spec file cleanup. * Sun Jan 7 2007 ro@suse.de - GNOME moved to /usr * Mon Sep 18 2006 jhargadon@suse.de - Initial SuSE package version 1.2.2