# skip tests known to be problematic in a specific version %global skip_checks_version 0.1.10 # concurrency-stress-test: https://bugzilla.gnome.org/show_bug.cgi?id=673419 %global skip_checks concurrency-stress-test %define major 0 %define api 0.1 %define libname %mklibname %name %{api}_%{major} %define develname %mklibname -d %{name} %{api} Name: babl Version: 0.1.10 Release: %mkrel 3 Epoch: 1 Summary: Babl - dynamic, any to any, pixel format conversion library Group: System/Libraries License: LGPLv3+ URL: http://www.gegl.org/babl Source0: ftp://ftp.gimp.org/pub/babl/0.1/%{name}-%{version}.tar.bz2 BuildRequires: librsvg %description Babl is a dynamic, any to any, pixel format conversion library. It provides conversions between the myriad of buffer types images can be stored in. Babl doesn't only help with existing pixel formats, but also facilitates creation of new and uncommon ones. GEGL uses babl both for enumeration of pixel formats as well as conversions between them. %package -n %{libname} Summary: A library for %name Group: System/Libraries Provides: %libname = %{version}-%{release} Obsoletes: %{_lib}babel14 %description -n %{libname} Babl is a dynamic, any to any, pixel format conversion library. It provides conversions between the myriad of buffer types images can be stored in. Babl doesn't only help with existing pixel formats, but also facilitates creation of new and uncommon ones. GEGL uses babl both for enumeration of pixel formats as well as conversions between them. %package -n %{develname} Summary: Header files for %name Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{_lib}babel14-devel Obsoletes: %{libname}-devel Obsoletes: %{_lib}%{name}-devel %description -n %{develname} Babl is a dynamic, any to any, pixel format conversion library. It provides conversions between the myriad of buffer types images can be stored in. Babl doesn't only help with existing pixel formats, but also facilitates creation of new and uncommon ones. GEGL uses babl both for enumeration of pixel formats as well as conversions between them. %prep %setup -q %build %configure2_5x --disable-static %make %install rm -fr %{buildroot} installed-docs %makeinstall_std cp -r docs installed-docs cd installed-docs rm -rf tools Makefile* *.in graphics/Makefile* find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' %check # skip tests known to be problematic in a specific version %if "%version" == "%skip_checks_version" pushd tests for problematic in %skip_checks; do rm -f "$problematic" cat << EOF > "$problematic" #!/bin/sh : EOF chmod +x "$problematic" done popd %endif make check %files -n %{libname} %doc README NEWS TODO AUTHORS %{_libdir}/libbabl-%{api}.so.%{major}* %dir %{_libdir}/babl-%{api}/ %{_libdir}/babl-%{api}/cairo.so %{_libdir}/babl-%{api}/fast-float.so %{_libdir}/babl-%{api}/float.so %{_libdir}/babl-%{api}/gggl.so %{_libdir}/babl-%{api}/naive-CMYK.so %{_libdir}/babl-%{api}/gimp-8bit.so %{_libdir}/babl-%{api}/CIE.so %{_libdir}/babl-%{api}/gegl-fixups.so %{_libdir}/babl-%{api}/gggl-lies.so %{_libdir}/babl-%{api}/sse-fixups.so %files -n %{develname} %doc ChangeLog installed-docs/* %{_libdir}/libbabl-%{api}.so %{_libdir}/pkgconfig/babl.pc %dir %{_includedir}/babl-%{api}/babl %{_includedir}/babl-%{api}/babl/* %changelog * Fri Jan 11 2013 umeabot <umeabot> 1:0.1.10-3.mga3 + Revision: 346824 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Jul 28 2012 sander85 <sander85> 1:0.1.10-2.mga3 + Revision: 275309 - Skip tests known to be problematic (from Fedora) * Thu May 03 2012 fwang <fwang> 1:0.1.10-1.mga2 + Revision: 234572 - new version 0.1.10 * Tue Nov 29 2011 fwang <fwang> 1:0.1.6-1.mga2 + Revision: 174037 - new version 0.1.6 * Thu Jun 30 2011 ahmad <ahmad> 1:0.1.4-1.mga2 + Revision: 116363 - Update to 0.1.4 * Wed Jan 19 2011 ahmad <ahmad> 1:0.1.2-3.mga1 + Revision: 24709 - imported package babl