%define majver %(echo %version | cut -d. -f1-2) Name: libbabl Version: 0.1.12 Release: 1mamba Summary: babl is a dynamic, any to any, pixel format translation library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Ercole 'ercolinux' Carpanetto URL: http://gegl.org/babl Source: http://download.gimp.org/pub/babl/%{majver}/babl-%{version}.tar.bz2 License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END Provides: babl Obsoletes: babl %description babl is a dynamic, any to any, pixel format translation library. It allows converting between different methods of storing pixels known as pixel formats that have with different bitdepths and other data representations, color models and component permutations. A vocabulary to formulate new pixel formats from existing primitives is provided as well as the framework to add new color models and data types. %package devel Summary: Devel package for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Provides: babl-devel Obsoletes: babl-devel %description devel babl is a dynamic, any to any, pixel format translation library. It allows converting between different methods of storing pixels known as pixel formats that have with different bitdepths and other data representations, color models and component permutations. A vocabulary to formulate new pixel formats from existing primitives is provided as well as the framework to add new color models and data types. This package contains static libraries and header files need for development. %prep %setup -q -n babl-%{version} %build %configure %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall extdir=%{_libdir}/babl-%{majver} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %dir %{_libdir}/babl-%{majver} %{_libdir}/babl-%{majver}/CIE.so* %{_libdir}/babl-%{majver}/gegl-fixups.so* %{_libdir}/babl-%{majver}/gggl-lies.so* %{_libdir}/babl-%{majver}/gggl.so* %{_libdir}/babl-%{majver}/gimp-8bit.so* %{_libdir}/babl-%{majver}/naive-CMYK.so* %{_libdir}/libbabl-%{majver}.so.* %{_libdir}/babl-%{majver}/*.so %doc AUTHORS COPYING %files devel %defattr(-,root,root) %dir %{_includedir}/babl-%{majver}/babl %{_libdir}/babl-%{majver}/*.la %{_includedir}/babl-%{majver}/babl/*.h %{_libdir}/pkgconfig/*.pc %{_libdir}/libbabl-%{majver}.la %{_libdir}/libbabl-%{majver}.so %doc ChangeLog NEWS README TODO %changelog * Sat Sep 12 2015 Silvan Calarco 0.1.12-1mamba - update to 0.1.12 * Thu May 03 2012 Ercole 'ercolinux' Carpanetto 0.1.10-1mamba - update to 0.1.10 * Thu Dec 22 2011 Automatic Build System 0.1.6-1mamba - automatic version update by autodist * Wed Feb 09 2011 Silvan Calarco 0.1.4-1mamba - update to 0.1.4 * Mon Oct 25 2010 Silvan Calarco 0.1.2-2mamba - rebuilt to add pkgconfig provides * Thu Jun 03 2010 Automatic Build System 0.1.2-1mamba - update to 0.1.2 * Mon Jun 08 2009 Automatic Build System 0.1.0-1mamba - automatic update by autodist * Thu Oct 02 2008 Silvan Calarco 0.0.22-2mamba - added missing devel package description - move development library files (*.la, *.so) to devel package - renamed to libbabl * Wed Oct 01 2008 Ercole 'ercolinux' Carpanetto 0.0.22-1mamba - package created by autospec