6f0929
# skip tests known to be problematic in a specific version
6f0929
%global skip_checks_version 0.1.58
6f0929
%ifarch ppc64 ppc64le
6f0929
%global skip_checks %nil
6f0929
%else
6f0929
  %ifarch s390x
6f0929
  %global skip_checks float-to-8bit
6f0929
  %else
6f0929
  %global skip_checks %nil
6f0929
  %endif
6f0929
%endif
6f0929
6f0929
%if ! 0%{?fedora}%{?rhel} || 0%{?fedora} >= 20 || 0%{?rhel} > 7
6f0929
%global develdocdir %{_docdir}/%{name}-devel/html
6f0929
%else
6f0929
%global develdocdir %{_docdir}/%{name}-devel-%{version}/html
6f0929
%endif
6f0929
6f0929
Summary:	A dynamic, any to any, pixel format conversion library
6f0929
Name:		babl
6f0929
Version:	0.1.86
3dbab3
Release:	4%{?dist}
6f0929
6f0929
# Compute some version related macros
6f0929
# Ugly hack, you need to get your quoting backslashes/percent signs straight
6f0929
%global major %(ver=%version; echo ${ver%%%%.*})
6f0929
%global minor %(ver=%version; ver=${ver#%major.}; echo ${ver%%%%.*})
6f0929
%global micro %(ver=%version; ver=${ver#%major.%minor.}; echo ${ver%%%%.*})
6f0929
%global apiver %major.%minor
6f0929
6f0929
# The gggl codes contained in this package are under the GPL, with exceptions allowing their use under libraries covered under the LGPL
6f0929
License:	LGPLv3+ and GPLv3+
6f0929
URL:		http://www.gegl.org/babl/
6f0929
Source0:	https://download.gimp.org/pub/babl/%{apiver}/%{name}-%{version}.tar.xz
6f0929
6f0929
BuildRequires:	gcc
6f0929
BuildRequires:	gobject-introspection-devel
6f0929
BuildRequires:	librsvg2-tools
6f0929
BuildRequires:	meson, vala
6f0929
BuildRequires:	pkgconfig(lcms2)
3dbab3
BuildRequires:	openssh-clients
6f0929
6f0929
%description
6f0929
Babl is a dynamic, any to any, pixel format conversion library. It
6f0929
provides conversions between the myriad of buffer types images can be
6f0929
stored in. Babl doesn't only help with existing pixel formats, but also
6f0929
facilitates creation of new and uncommon ones.
6f0929
6f0929
%package devel
6f0929
Summary:	Headers for developing programs that will use %{name}
6f0929
Requires:	%{name}%{?_isa} = %{version}-%{release}
6f0929
Requires:	pkgconfig
6f0929
%if ! (0%{?fedora} >= 22 || 0%{?rhel} > 7)
6f0929
# Split off devel docs from 0.1.2-2 on
6f0929
Obsoletes:	%{name}-devel < 0.1.2-2%{?dist}
6f0929
Conflicts:	%{name}-devel < 0.1.2-2%{?dist}
6f0929
%endif
6f0929
6f0929
%description devel
6f0929
This package contains the libraries and header files needed for
6f0929
developing with %{name}.
6f0929
6f0929
%package devel-docs
6f0929
Summary:	Documentation for developing programs that will use %{name}
6f0929
BuildArch:	noarch
6f0929
Requires:	%{name}-devel = %{version}-%{release}
6f0929
# Split off devel docs from 0.1.2-2 on
6f0929
Obsoletes:	%{name}-devel < 0.1.2-2%{?dist}
6f0929
Conflicts:	%{name}-devel < 0.1.2-2%{?dist}
6f0929
6f0929
%description devel-docs
6f0929
This package contains documentation needed for developing with %{name}.
6f0929
6f0929
%prep
6f0929
%autosetup -p1
6f0929
6f0929
%build
6f0929
%meson
6f0929
%meson_build
6f0929
6f0929
%install
6f0929
%meson_install
6f0929
6f0929
mkdir -p "%{buildroot}/%{develdocdir}"
6f0929
cp -pr docs/graphics docs/*.html docs/babl.css "%{buildroot}/%{develdocdir}"
6f0929
rm -f "%{buildroot}/%{develdocdir}"/graphics/meson.build
6f0929
rm -f "%{buildroot}/%{develdocdir}"/graphics/.gitignore
6f0929
6f0929
6f0929
%check
6f0929
# skip tests known to be problematic in a specific version
6f0929
%if "%version" == "%skip_checks_version"
6f0929
pushd tests
6f0929
for problematic in %skip_checks; do
6f0929
    rm -f "$problematic"
6f0929
    cat << EOF > "$problematic"
6f0929
#!/bin/sh
6f0929
echo Skipping test "$problematic"
6f0929
EOF
6f0929
    chmod +x "$problematic"
6f0929
done
6f0929
popd
6f0929
%endif
6f0929
%meson_test
6f0929
6f0929
%ldconfig_scriptlets
6f0929
6f0929
%files
6f0929
%license docs/COPYING*
6f0929
%doc AUTHORS NEWS
6f0929
%{_libdir}/libbabl-%{apiver}.so.0*
6f0929
%{_libdir}/babl-%{apiver}/
6f0929
%dir %{_libdir}/girepository-1.0
6f0929
%{_libdir}/girepository-1.0/Babl-%{apiver}.typelib
6f0929
6f0929
%files devel
6f0929
%{_includedir}/babl-%{apiver}/
6f0929
%{_libdir}/libbabl-%{apiver}.so
6f0929
%{_libdir}/pkgconfig/%{name}.pc
6f0929
%dir %{_datadir}/gir-1.0
6f0929
%{_datadir}/gir-1.0/Babl-%{apiver}.gir
6f0929
%{_datadir}/vala/
6f0929
6f0929
%files devel-docs
6f0929
%doc %{develdocdir}
6f0929
6f0929
%changelog
3dbab3
* Wed Jul 20 2022 Josef Ridky <jridky@redhat.com> - 0.1.86-4
3dbab3
- fix FTBFS by adding openssh-clients into BuildRequires (#2105618)
3dbab3
6f0929
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.1.86-3
6f0929
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
6f0929
  Related: rhbz#1991688
6f0929
6f0929
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.1.86-2
6f0929
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
6f0929
6f0929
* Fri Apr 02 2021 Kalev Lember <klember@redhat.com> - 0.1.86-1
6f0929
- Update to 0.1.86
6f0929
6f0929
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.82-2
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
6f0929
6f0929
* Fri Oct 16 2020 Kalev Lember <klember@redhat.com> - 0.1.82-1
6f0929
- Update to 0.1.82
6f0929
- Tighten soname globs
6f0929
6f0929
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.78-2
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6f0929
6f0929
* Mon Jun 15 2020 Josef Ridky <jridky@redhat.com> - 0.1.78-1
6f0929
- New upstream release 0.1.78
6f0929
6f0929
* Wed Feb 19 2020 Josef Ridky <jridky@redhat.com> - 0.1.74-1
6f0929
- New upstream release 0.1.74
6f0929
6f0929
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.72-3
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6f0929
6f0929
* Tue Nov 05 2019 Nils Philippsen <nils@tiptoe.de> - 0.1.72-2
6f0929
- BR: librsvg2-tools for rsvg-convert
6f0929
- mark license files as %%license
6f0929
- use %%apiver macro consistently
6f0929
- don't ship .gitignore file
6f0929
6f0929
* Mon Nov 04 2019 Kalev Lember <klember@redhat.com> - 0.1.72-1
6f0929
- Update to 0.1.72
6f0929
- Switch to meson build system
6f0929
- Build with gobject-introspection support
6f0929
6f0929
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.66-2
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6f0929
6f0929
* Wed Jun 12 2019 Kalev Lember <klember@redhat.com> - 0.1.66-1
6f0929
- version 0.1.66
6f0929
6f0929
* Sat Feb 09 2019 Debarshi Ray <rishi@fedoraproject.org> - 0.1.62-1
6f0929
- version 0.1.62
6f0929
6f0929
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.60-2
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6f0929
6f0929
* Sun Nov 11 2018 Nils Philippsen <nils@tiptoe.de> - 0.1.60-1
6f0929
- version 0.1.60
6f0929
6f0929
* Fri Nov 09 2018 Nils Philippsen <nils@tiptoe.de> - 0.1.58-1
6f0929
- version 0.1.58
6f0929
6f0929
* Mon Aug 20 2018 Nils Philippsen <nils@tiptoe.de> - 0.1.56-2
6f0929
- skip problematic tests also on new version
6f0929
6f0929
* Mon Aug 20 2018 Nils Philippsen <nils@tiptoe.de> - 0.1.56-1
6f0929
- version 0.1.56
6f0929
6f0929
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.52-2
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6f0929
6f0929
* Thu Jul 05 2018 Nils Philippsen <nils@tiptoe.de> - 0.1.52-1
6f0929
- version 0.1.52
6f0929
6f0929
* Mon May 21 2018 Nils Philippsen <nils@tiptoe.de> - 0.1.50-3
6f0929
- et tu, ppc64?
6f0929
6f0929
* Mon May 21 2018 Nils Philippsen <nils@tiptoe.de> - 0.1.50-2
6f0929
- skip more problematic tests on ppc64le
6f0929
6f0929
* Mon May 21 2018 Josef Ridky <jridky@redhat.com> - 0.1.50-1
6f0929
- New upstream release 0.1.50
6f0929
6f0929
* Thu May 17 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.1.48-1
6f0929
- version 0.1.48
6f0929
6f0929
* Wed Apr 25 2018 Josef Ridky <jridky@redhat.com> - 0.1.46-1
6f0929
- New upstream release 0.1.46
6f0929
6f0929
* Tue Mar 27 2018 Nils Philippsen <nils@tiptoe.de> - 0.1.44-1
6f0929
- version 0.1.44
6f0929
6f0929
* Tue Feb 20 2018 Josef Ridky <jridky@redhat.com> - 0.1.42-4
6f0929
- add gcc requirement
6f0929
6f0929
* Wed Feb 14 2018 Josef Ridky <jridky@redhat.com> - 0.1.42-3
6f0929
- cleanup spec file (remove Group tag, apply new scriptlets)
6f0929
6f0929
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.42-2
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6f0929
6f0929
* Wed Jan 24 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.1.42-1
6f0929
- version 0.1.42
6f0929
6f0929
* Wed Jan 17 2018 Debarshi Ray <rishi@fedoraproject.org> - 0.1.40-1
6f0929
- version 0.1.40
6f0929
6f0929
* Thu Nov 16 2017 Debarshi Ray <rishi@fedoraproject.org> - 0.1.38-1
6f0929
- version 0.1.38
6f0929
6f0929
* Sat Nov 11 2017 Debarshi Ray <rishi@fedoraproject.org> - 0.1.36-1
6f0929
- version 0.1.36
6f0929
6f0929
* Tue Oct 17 2017 Debarshi Ray <rishi@fedoraproject.org> - 0.1.34-1
6f0929
- version 0.1.34
6f0929
6f0929
* Tue Oct 03 2017 Debarshi Ray <rishi@fedoraproject.org> - 0.1.32-1
6f0929
- version 0.1.32
6f0929
6f0929
* Fri Aug 25 2017 Nils Philippsen <nils@tiptoe.de> - 0.1.30-1
6f0929
- version 0.1.30
6f0929
6f0929
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.28-3
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
6f0929
6f0929
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.28-2
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6f0929
6f0929
* Wed Jun 21 2017 Debarshi Ray <rishi@fedoraproject.org> - 0.1.28-1
6f0929
- version 0.1.28
6f0929
6f0929
* Mon May 15 2017 Debarshi Ray <rishi@fedoraproject.org> - 0.1.26-1
6f0929
- version 0.1.26
6f0929
6f0929
* Tue Feb 07 2017 Debarshi Ray <rishi@fedoraproject.org> - 0.1.24-1
6f0929
- version 0.1.24
6f0929
6f0929
* Thu Jan 26 2017 Debarshi Ray <rishi@fedoraproject.org> - 0.1.22-1
6f0929
- version 0.1.22
6f0929
6f0929
* Thu Jan 12 2017 Debarshi Ray <rishi@fedoraproject.org> - 0.1.20-1
6f0929
- version 0.1.20
6f0929
6f0929
* Fri Jun 17 2016 Debarshi Ray <rishi@fedoraproject.org> - 0.1.18-1
6f0929
- version 0.1.18
6f0929
6f0929
* Sun Feb 14 2016 Debarshi Ray <rishi@fedoraproject.org> - 0.1.16-1
6f0929
- version 0.1.16
6f0929
6f0929
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.14-2
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6f0929
6f0929
* Mon Nov 23 2015 Nils Philippsen <nils@redhat.com> - 0.1.14-1
6f0929
- version 0.1.14
6f0929
6f0929
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.12-3
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6f0929
6f0929
* Fri Feb 13 2015 Nils Philippsen <nils@redhat.com> - 0.1.12-2
6f0929
- fix failing (crashing) concurrency stress test
6f0929
6f0929
* Thu Feb 05 2015 Debarshi Ray <rishi@fedoraproject.org> - 0.1.12-1
6f0929
- version 0.1.12
6f0929
6f0929
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-12
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6f0929
6f0929
* Tue Aug 05 2014 Nils Philippsen <nils@redhat.com> - 0.1.10-11
6f0929
- update source URL
6f0929
6f0929
* Tue Jul 29 2014 Nils Philippsen <nils@redhat.com> - 0.1.10-10
6f0929
- drop obsoletes in future Fedora and EL versions (#1002080)
6f0929
6f0929
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-9
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6f0929
6f0929
* Wed Aug 07 2013 Nils Philippsen <nils@redhat.com> - 0.1.10-8
6f0929
- use unversioned docdir from Fedora 20 on (#993679)
6f0929
6f0929
* Tue Jul 30 2013 Nils Philippsen <nils@redhat.com> - 0.1.10-7
6f0929
- don't require w3m for building
6f0929
6f0929
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-6
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6f0929
6f0929
* Sat Oct 20 2012 Nils Philippsen <nils@redhat.com> - 0.1.10-5
6f0929
- report problematic checks being skipped
6f0929
6f0929
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-4
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6f0929
6f0929
* Tue Apr 03 2012 Nils Philippsen <nils@redhat.com> - 0.1.10-3
6f0929
- prevent problematic check from being rebuilt
6f0929
6f0929
* Tue Apr 03 2012 Nils Philippsen <nils@redhat.com> - 0.1.10-2
6f0929
- fix typo which caused problematic check not to be skipped
6f0929
6f0929
* Tue Apr 03 2012 Nils Philippsen <nils@redhat.com> - 0.1.10-1
6f0929
- version 0.1.10
6f0929
- skip check known to be problematic: concurrency-stress-test
6f0929
6f0929
* Tue Jan 10 2012 Nils Philippsen <nils@redhat.com> - 0.1.6-2
6f0929
- rebuild for gcc 4.7
6f0929
6f0929
* Tue Dec 13 2011 Nils Philippsen <nils@redhat.com> - 0.1.6-1
6f0929
- version 0.1.6
6f0929
6f0929
* Tue Feb 22 2011 Nils Philippsen <nils@redhat.com> - 0.1.4-1
6f0929
- version 0.1.4
6f0929
- correct source URL
6f0929
6f0929
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-5
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6f0929
6f0929
* Wed Jun 23 2010 Nils Philippsen <nils@redhat.com> - 0.1.2-4
6f0929
- use PIC/PIE because babl is likely to deal with data coming from untrusted
6f0929
  sources
6f0929
6f0929
* Wed Jun 23 2010 Nils Philippsen <nils@redhat.com> - 0.1.2-3
6f0929
- build with -fno-strict-aliasing
6f0929
6f0929
* Mon Jun 14 2010 Nils Philippsen <nils@redhat.com> - 0.1.2-2
6f0929
- split off devel-docs subpackage to make package multi-lib compliant (#477807)
6f0929
- let devel package require correct arch of base package
6f0929
6f0929
* Thu Jan 21 2010 Deji Akingunola <dakingun@gmail.com> - 0.1.2-1
6f0929
- Update to 0.1.2
6f0929
6f0929
* Fri Dec 18 2009 Deji Akingunola <dakingun@gmail.com> - 0.1.0-5
6f0929
- Remove the *.la files
6f0929
6f0929
* Thu Aug 13 2009 Nils Philippsen <nils@redhat.com>
6f0929
- explain patch status
6f0929
6f0929
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-4
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6f0929
6f0929
* Mon Jul 06 2009 Nils Philippsen <nils@redhat.com> - 0.1.0-3
6f0929
- revert using "--disable-gtk-doc" as this doesn't work with babl (#477807)
6f0929
6f0929
* Thu Jul 02 2009 Nils Philippsen <nils@redhat.com>
6f0929
- use "--disable-gtk-doc" to avoid rebuilding documentation (#477807)
6f0929
- fix source URL
6f0929
6f0929
* Thu Jun 25 2009 Nils Philippsen <nils@redhat.com> - 0.1.0-2
6f0929
- fix timestamps of built documentation for multilib (#477807)
6f0929
6f0929
* Fri May 22 2009 Deji Akingunola <dakingun@gmail.com> - 0.1.0-1
6f0929
- Update to latest release (0.1.0)
6f0929
6f0929
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.22-3
6f0929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6f0929
6f0929
* Tue Sep  2 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.0.22-2
6f0929
- Include /usr/include/babl-0.0 directory
6f0929
6f0929
* Thu Jul 10 2008 Deji Akingunola <dakingun@gmail.com> - 0.0.22-1
6f0929
- Update to latest release
6f0929
6f0929
* Thu Feb 28 2008 Deji Akingunola <dakingun@gmail.com> - 0.0.20-1
6f0929
- New release
6f0929
6f0929
* Thu Jan 17 2008 Deji Akingunola <dakingun@gmail.com> - 0.0.18-2
6f0929
- Apply patch to fix extensions loading on 64bit systems
6f0929
6f0929
* Thu Jan 10 2008 Deji Akingunola <dakingun@gmail.com> - 0.0.18-1
6f0929
- Update to 0.0.18
6f0929
6f0929
* Mon Nov 26 2007 Deji Akingunola <dakingun@gmail.com> - 0.0.16-1
6f0929
- Update to 0.0.16 release 
6f0929
- License change from GPLv2+ to GPLv3+
6f0929
6f0929
* Mon Oct 22 2007 Deji Akingunola <dakingun@gmail.com> - 0.0.15-0.5.20071011svn
6f0929
- Update the License field 
6f0929
6f0929
* Fri Oct 12 2007 Deji Akingunola <dakingun@gmail.com> - 0.0.15-0.4.20071011svn
6f0929
- Package the extension libraries in the main package
6f0929
- Run 'make check' 
6f0929
6f0929
* Fri Oct 12 2007 Deji Akingunola <dakingun@gmail.com> - 0.0.15-0.3.20071011svn
6f0929
- Ensure timestamps are kept during install
6f0929
6f0929
* Fri Oct 12 2007 Deji Akingunola <dakingun@gmail.com> - 0.0.15-0.2.20071011svn
6f0929
- Remove the use of inexistent source url (Package reviews)
6f0929
- Package the html docs
6f0929
6f0929
* Thu Oct 11 2007 Deji Akingunola <dakingun@gmail.com> - 0.0.15-0.1.20071011svn
6f0929
- Initial packaging for Fedora