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