# 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 7 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 * Wed Oct 15 2014 umeabot <umeabot> 1:0.1.10-7.mga5 + Revision: 741000 - Second Mageia 5 Mass Rebuild * Thu Sep 18 2014 umeabot <umeabot> 1:0.1.10-6.mga5 + Revision: 693474 - Rebuild to fix library dependencies * Tue Sep 16 2014 umeabot <umeabot> 1:0.1.10-5.mga5 + Revision: 678093 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot <umeabot> 1:0.1.10-4.mga4 + Revision: 502987 - Mageia 4 Mass Rebuild * 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 * Tue Nov 30 2010 Oden Eriksson <oeriksson@mandriva.com> 1:0.1.2-2mdv2011.0 + Revision: 603754 - rebuild * Sat Feb 13 2010 Emmanuel Andry <eandry@mandriva.org> 1:0.1.2-1mdv2010.1 + Revision: 505542 - New version 0.1.2 - use api major - drop patch (now useless) - remove static - enable check - update files list * Tue Jul 07 2009 Götz Waschk <waschk@mandriva.org> 1:0.1.0-1mdv2010.0 + Revision: 393147 - new version - source URL - update file list - fix installation * Tue Apr 07 2009 Funda Wang <fwang@mandriva.org> 1:0.0.22-1mdv2009.1 + Revision: 364695 - fix str fmt * Tue Jun 24 2008 Götz Waschk <waschk@mandriva.org> 1:0.0.22-1mdv2009.0 + Revision: 228534 - new version - fix spec file mess - move modules to the library package - add documentation + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Wed Apr 16 2008 Emmanuel Andry <eandry@mandriva.org> 1:0.0.20-3mdv2009.0 + Revision: 194643 - Add needed provides * Wed Apr 16 2008 Emmanuel Andry <eandry@mandriva.org> 1:0.0.20-2mdv2009.0 + Revision: 194610 - Fix devel package - obsolete wrong majors * Fri Apr 11 2008 Emmanuel Andry <eandry@mandriva.org> 1:0.0.20-1mdv2009.0 + Revision: 192590 - New version + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request + Nicolas Lécureuil <nlecureuil@mandriva.com> - Fix %%major (tks misc) * Wed Jun 13 2007 Nicolas Lécureuil <nlecureuil@mandriva.com> 0.0.14-1mdv2008.0 + Revision: 38582 - Import babl