%define name cairomm %define version 1.10.0 %define release %mkrel 2 %define api 1.0 %define major 1 %define libname %mklibname %name %{api}_%{major} %define libnamedev %mklibname -d %name %{api} Summary: C++ API for the cairo multi-platform 2D graphics library Name: %{name} Version: %{version} Release: %{release} Source0: http://cairographics.org/releases/%{name}-%{version}.tar.gz License: LGPLv2+ Group: System/Libraries Url: http://cairographics.org/cairomm BuildRequires: pkgconfig(cairo) >= 1.10.0 BuildRequires: pkgconfig(sigc++-2.0) BuildRequires: doxygen %description This is a C++ API for the Cairo graphics library. Cairo provides anti-aliased vector-based rendering for X. Paths consist of line segments and cubic splines and can be rendered at any width with various join and cap styles. All colors may be specified with optional translucence (opacity/alpha) and combined using the extended Porter/Duff compositing algebra as found in the X Render Extension. %package -n %{libname} Summary: Cairomm - multi-platform 2D graphics library Group: System/Libraries %description -n %{libname} This is a C++ API for the Cairo graphics library. Cairo provides anti-aliased vector-based rendering for X. Paths consist of line segments and cubic splines and can be rendered at any width with various join and cap styles. All colors may be specified with optional translucence (opacity/alpha) and combined using the extended Porter/Duff compositing algebra as found in the X Render Extension. %package -n %{libnamedev} Summary: Development files for Cairomm library Group: Development/C++ Requires: %{libname} = %version Provides: %{name}-devel = %version-%release Provides: lib%{name}-devel = %version-%release Provides: lib%{name}%api-devel = %version-%release Obsoletes: %mklibname -d %name 1.0_1 %description -n %libnamedev This is a C++ API for the Cairo graphics library. Cairo provides anti-aliased vector-based rendering for X. Paths consist of line segments and cubic splines and can be rendered at any width with various join and cap styles. All colors may be specified with optional translucence (opacity/alpha) and combined using the extended Porter/Duff compositing algebra as found in the X Render Extension. %prep %setup -q %build %configure2_5x --disable-static %make %install rm -rf %{buildroot} %makeinstall_std # don't ship .la find %{buildroot} -name *.la | xargs rm -f %clean rm -rf %{buildroot} %files -n %libname %defattr(-,root,root) %doc AUTHORS ChangeLog MAINTAINERS NEWS README %_libdir/libcairomm-%{api}.so.%{major}* %files -n %libnamedev %defattr(644,root,root,755) %doc %_datadir/doc/cairomm-%api %_libdir/lib*.so %_includedir/* %_libdir/pkgconfig/*.pc %dir %_libdir/%name-%api/ %dir %_libdir/%name-%api/include %_libdir/%name-%api/include/*.h %_datadir/devhelp/books/%name-%api %changelog * Fri Jan 11 2013 umeabot <umeabot> 1.10.0-2.mga3 + Revision: 347317 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Aug 24 2011 fwang <fwang> 1.10.0-1.mga2 + Revision: 135087 - new version 1.10.0 - do not ship .la files * Sat May 21 2011 ahmad <ahmad> 1.9.8-2.mga1 + Revision: 100066 - ship the .la file, it's needed to build mysql-workbench * Fri Apr 15 2011 ahmad <ahmad> 1.9.8-1.mga1 + Revision: 85608 - update to 1.9.8 - don't ship .la files * Thu Jan 13 2011 ahmad <ahmad> 1.9.6-2.mga1 + Revision: 8760 - drop old/unneeded scriptlets - imported package cairomm