|
|
345dd3 |
# skip tests known to be problematic in a specific version
|
|
|
345dd3 |
%global skip_checks_version 0.1.10
|
|
|
345dd3 |
# concurrency-stress-test: https://bugzilla.gnome.org/show_bug.cgi?id=673419
|
|
|
345dd3 |
%global skip_checks concurrency-stress-test
|
|
|
345dd3 |
|
|
|
345dd3 |
Summary: A dynamic, any to any, pixel format conversion library
|
|
|
345dd3 |
Name: babl
|
|
|
345dd3 |
Version: 0.1.10
|
|
|
9b32a6 |
Release: 9%{?dist}
|
|
|
345dd3 |
|
|
|
345dd3 |
# Compute some version related macros
|
|
|
345dd3 |
# Ugly hack, you need to get your quoting backslashes/percent signs straight
|
|
|
345dd3 |
%global major %(ver=%version; echo ${ver%%%%.*})
|
|
|
345dd3 |
%global minor %(ver=%version; ver=${ver#%major.}; echo ${ver%%%%.*})
|
|
|
345dd3 |
%global micro %(ver=%version; ver=${ver#%major.%minor.}; echo ${ver%%%%.*})
|
|
|
345dd3 |
%global apiver %major.%minor
|
|
|
345dd3 |
|
|
|
345dd3 |
# The gggl codes contained in this package are under the GPL, with exceptions allowing their use under libraries covered under the LGPL
|
|
|
345dd3 |
License: LGPLv3+ and GPLv3+
|
|
|
345dd3 |
Group: System Environment/Libraries
|
|
|
345dd3 |
URL: http://www.gegl.org/babl/
|
|
|
345dd3 |
Source0: ftp://ftp.gimp.org/pub/babl/%{apiver}/%{name}-%{version}.tar.bz2
|
|
|
345dd3 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
345dd3 |
BuildRequires: librsvg2
|
|
|
345dd3 |
|
|
|
345dd3 |
%global develdocdir %{_docdir}/%{name}-devel-%{version}/html
|
|
|
345dd3 |
|
|
|
345dd3 |
%description
|
|
|
345dd3 |
Babl is a dynamic, any to any, pixel format conversion library. It
|
|
|
345dd3 |
provides conversions between the myriad of buffer types images can be
|
|
|
345dd3 |
stored in. Babl doesn't only help with existing pixel formats, but also
|
|
|
345dd3 |
facilitates creation of new and uncommon ones.
|
|
|
345dd3 |
|
|
|
345dd3 |
%package devel
|
|
|
345dd3 |
Summary: Headers for developing programs that will use %{name}
|
|
|
345dd3 |
Group: Development/Libraries
|
|
|
345dd3 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
345dd3 |
Requires: pkgconfig
|
|
|
345dd3 |
# Split off devel docs from 0.1.2-2 on
|
|
|
345dd3 |
Obsoletes: %{name}-devel < 0.1.2-2%{?dist}
|
|
|
345dd3 |
Conflicts: %{name}-devel < 0.1.2-2%{?dist}
|
|
|
345dd3 |
|
|
|
345dd3 |
%description devel
|
|
|
345dd3 |
This package contains the libraries and header files needed for
|
|
|
345dd3 |
developing with %{name}.
|
|
|
345dd3 |
|
|
|
345dd3 |
%package devel-docs
|
|
|
345dd3 |
Summary: Documentation for developing programs that will use %{name}
|
|
|
345dd3 |
Group: Documentation
|
|
|
345dd3 |
BuildArch: noarch
|
|
|
345dd3 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
345dd3 |
# Split off devel docs from 0.1.2-2 on
|
|
|
345dd3 |
Obsoletes: %{name}-devel < 0.1.2-2%{?dist}
|
|
|
345dd3 |
Conflicts: %{name}-devel < 0.1.2-2%{?dist}
|
|
|
345dd3 |
|
|
|
345dd3 |
%description devel-docs
|
|
|
345dd3 |
This package contains documentation needed for developing with %{name}.
|
|
|
345dd3 |
|
|
|
345dd3 |
%prep
|
|
|
345dd3 |
%setup -q
|
|
|
345dd3 |
|
|
|
345dd3 |
%build
|
|
|
345dd3 |
# use PIC/PIE because babl is likely to deal with data coming from untrusted
|
|
|
345dd3 |
# sources
|
|
|
345dd3 |
CFLAGS="-fPIC %optflags -fno-strict-aliasing"
|
|
|
345dd3 |
LDFLAGS="-pie"
|
|
|
345dd3 |
%configure --disable-static
|
|
|
345dd3 |
|
|
|
345dd3 |
make V=1 %{?_smp_mflags}
|
|
|
345dd3 |
|
|
|
345dd3 |
%install
|
|
|
345dd3 |
rm -rf %{buildroot}
|
|
|
345dd3 |
make DESTDIR=%{buildroot} install INSTALL='install -p'
|
|
|
345dd3 |
|
|
|
345dd3 |
mkdir -p "%{buildroot}/%{develdocdir}"
|
|
|
345dd3 |
cp -pr docs/graphics docs/*.html docs/babl.css "%{buildroot}/%{develdocdir}"
|
|
|
345dd3 |
rm -rf "%{buildroot}/%{develdocdir}"/graphics/Makefile*
|
|
|
345dd3 |
|
|
|
345dd3 |
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
|
|
|
345dd3 |
|
|
|
345dd3 |
%check
|
|
|
345dd3 |
# skip tests known to be problematic in a specific version
|
|
|
345dd3 |
%if "%version" == "%skip_checks_version"
|
|
|
345dd3 |
pushd tests
|
|
|
345dd3 |
for problematic in %skip_checks; do
|
|
|
345dd3 |
rm -f "$problematic"
|
|
|
345dd3 |
cat << EOF > "$problematic"
|
|
|
345dd3 |
#!/bin/sh
|
|
|
345dd3 |
echo Skipping test "$problematic"
|
|
|
345dd3 |
EOF
|
|
|
345dd3 |
chmod +x "$problematic"
|
|
|
345dd3 |
done
|
|
|
345dd3 |
popd
|
|
|
345dd3 |
%endif
|
|
|
345dd3 |
make check
|
|
|
345dd3 |
|
|
|
345dd3 |
%clean
|
|
|
345dd3 |
rm -rf %{buildroot}
|
|
|
345dd3 |
|
|
|
345dd3 |
%post -p /sbin/ldconfig
|
|
|
345dd3 |
|
|
|
345dd3 |
%postun -p /sbin/ldconfig
|
|
|
345dd3 |
|
|
|
345dd3 |
%files
|
|
|
345dd3 |
%defattr(-, root, root, -)
|
|
|
345dd3 |
%doc AUTHORS ChangeLog COPYING README NEWS
|
|
|
345dd3 |
%{_libdir}/*.so.*
|
|
|
345dd3 |
%{_libdir}/babl-%{apiver}/
|
|
|
345dd3 |
|
|
|
345dd3 |
%files devel
|
|
|
345dd3 |
%defattr(-, root, root, -)
|
|
|
345dd3 |
%{_includedir}/babl-%{apiver}/
|
|
|
345dd3 |
%{_libdir}/*.so
|
|
|
345dd3 |
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
345dd3 |
|
|
|
345dd3 |
%files devel-docs
|
|
|
345dd3 |
%defattr(-, root, root, -)
|
|
|
345dd3 |
%doc %{develdocdir}
|
|
|
345dd3 |
|
|
|
345dd3 |
%changelog
|
|
|
9b32a6 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.1.10-9
|
|
|
9b32a6 |
- Mass rebuild 2014-01-24
|
|
|
9b32a6 |
|
|
|
9b32a6 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.1.10-8
|
|
|
9b32a6 |
- Mass rebuild 2013-12-27
|
|
|
9b32a6 |
|
|
|
345dd3 |
* Tue Jul 30 2013 Nils Philippsen <nils@redhat.com> - 0.1.10-7
|
|
|
345dd3 |
- don't require w3m for building
|
|
|
345dd3 |
|
|
|
345dd3 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-6
|
|
|
345dd3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
345dd3 |
|
|
|
345dd3 |
* Sat Oct 20 2012 Nils Philippsen <nils@redhat.com> - 0.1.10-5
|
|
|
345dd3 |
- report problematic checks being skipped
|
|
|
345dd3 |
|
|
|
345dd3 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-4
|
|
|
345dd3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
345dd3 |
|
|
|
345dd3 |
* Tue Apr 03 2012 Nils Philippsen <nils@redhat.com> - 0.1.10-3
|
|
|
345dd3 |
- prevent problematic check from being rebuilt
|
|
|
345dd3 |
|
|
|
345dd3 |
* Tue Apr 03 2012 Nils Philippsen <nils@redhat.com> - 0.1.10-2
|
|
|
345dd3 |
- fix typo which caused problematic check not to be skipped
|
|
|
345dd3 |
|
|
|
345dd3 |
* Tue Apr 03 2012 Nils Philippsen <nils@redhat.com> - 0.1.10-1
|
|
|
345dd3 |
- version 0.1.10
|
|
|
345dd3 |
- skip check known to be problematic: concurrency-stress-test
|
|
|
345dd3 |
|
|
|
345dd3 |
* Tue Jan 10 2012 Nils Philippsen <nils@redhat.com> - 0.1.6-2
|
|
|
345dd3 |
- rebuild for gcc 4.7
|
|
|
345dd3 |
|
|
|
345dd3 |
* Tue Dec 13 2011 Nils Philippsen <nils@redhat.com> - 0.1.6-1
|
|
|
345dd3 |
- version 0.1.6
|
|
|
345dd3 |
|
|
|
345dd3 |
* Tue Feb 22 2011 Nils Philippsen <nils@redhat.com> - 0.1.4-1
|
|
|
345dd3 |
- version 0.1.4
|
|
|
345dd3 |
- correct source URL
|
|
|
345dd3 |
|
|
|
345dd3 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-5
|
|
|
345dd3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
345dd3 |
|
|
|
345dd3 |
* Wed Jun 23 2010 Nils Philippsen <nils@redhat.com> - 0.1.2-4
|
|
|
345dd3 |
- use PIC/PIE because babl is likely to deal with data coming from untrusted
|
|
|
345dd3 |
sources
|
|
|
345dd3 |
|
|
|
345dd3 |
* Wed Jun 23 2010 Nils Philippsen <nils@redhat.com> - 0.1.2-3
|
|
|
345dd3 |
- build with -fno-strict-aliasing
|
|
|
345dd3 |
|
|
|
345dd3 |
* Mon Jun 14 2010 Nils Philippsen <nils@redhat.com> - 0.1.2-2
|
|
|
345dd3 |
- split off devel-docs subpackage to make package multi-lib compliant (#477807)
|
|
|
345dd3 |
- let devel package require correct arch of base package
|
|
|
345dd3 |
|
|
|
345dd3 |
* Thu Jan 21 2010 Deji Akingunola <dakingun@gmail.com> - 0.1.2-1
|
|
|
345dd3 |
- Update to 0.1.2
|
|
|
345dd3 |
|
|
|
345dd3 |
* Fri Dec 18 2009 Deji Akingunola <dakingun@gmail.com> - 0.1.0-5
|
|
|
345dd3 |
- Remove the *.la files
|
|
|
345dd3 |
|
|
|
345dd3 |
* Thu Aug 13 2009 Nils Philippsen <nils@redhat.com>
|
|
|
345dd3 |
- explain patch status
|
|
|
345dd3 |
|
|
|
345dd3 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-4
|
|
|
345dd3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
345dd3 |
|
|
|
345dd3 |
* Mon Jul 06 2009 Nils Philippsen <nils@redhat.com> - 0.1.0-3
|
|
|
345dd3 |
- revert using "--disable-gtk-doc" as this doesn't work with babl (#477807)
|
|
|
345dd3 |
|
|
|
345dd3 |
* Thu Jul 02 2009 Nils Philippsen <nils@redhat.com>
|
|
|
345dd3 |
- use "--disable-gtk-doc" to avoid rebuilding documentation (#477807)
|
|
|
345dd3 |
- fix source URL
|
|
|
345dd3 |
|
|
|
345dd3 |
* Thu Jun 25 2009 Nils Philippsen <nils@redhat.com> - 0.1.0-2
|
|
|
345dd3 |
- fix timestamps of built documentation for multilib (#477807)
|
|
|
345dd3 |
|
|
|
345dd3 |
* Fri May 22 2009 Deji Akingunola <dakingun@gmail.com> - 0.1.0-1
|
|
|
345dd3 |
- Update to latest release (0.1.0)
|
|
|
345dd3 |
|
|
|
345dd3 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.22-3
|
|
|
345dd3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
345dd3 |
|
|
|
345dd3 |
* Tue Sep 2 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.0.22-2
|
|
|
345dd3 |
- Include /usr/include/babl-0.0 directory
|
|
|
345dd3 |
|
|
|
345dd3 |
* Thu Jul 10 2008 Deji Akingunola <dakingun@gmail.com> - 0.0.22-1
|
|
|
345dd3 |
- Update to latest release
|
|
|
345dd3 |
|
|
|
345dd3 |
* Thu Feb 28 2008 Deji Akingunola <dakingun@gmail.com> - 0.0.20-1
|
|
|
345dd3 |
- New release
|
|
|
345dd3 |
|
|
|
345dd3 |
* Thu Jan 17 2008 Deji Akingunola <dakingun@gmail.com> - 0.0.18-2
|
|
|
345dd3 |
- Apply patch to fix extensions loading on 64bit systems
|
|
|
345dd3 |
|
|
|
345dd3 |
* Thu Jan 10 2008 Deji Akingunola <dakingun@gmail.com> - 0.0.18-1
|
|
|
345dd3 |
- Update to 0.0.18
|
|
|
345dd3 |
|
|
|
345dd3 |
* Mon Nov 26 2007 Deji Akingunola <dakingun@gmail.com> - 0.0.16-1
|
|
|
345dd3 |
- Update to 0.0.16 release
|
|
|
345dd3 |
- License change from GPLv2+ to GPLv3+
|
|
|
345dd3 |
|
|
|
345dd3 |
* Mon Oct 22 2007 Deji Akingunola <dakingun@gmail.com> - 0.0.15-0.5.20071011svn
|
|
|
345dd3 |
- Update the License field
|
|
|
345dd3 |
|
|
|
345dd3 |
* Fri Oct 12 2007 Deji Akingunola <dakingun@gmail.com> - 0.0.15-0.4.20071011svn
|
|
|
345dd3 |
- Package the extension libraries in the main package
|
|
|
345dd3 |
- Run 'make check'
|
|
|
345dd3 |
|
|
|
345dd3 |
* Fri Oct 12 2007 Deji Akingunola <dakingun@gmail.com> - 0.0.15-0.3.20071011svn
|
|
|
345dd3 |
- Ensure timestamps are kept during install
|
|
|
345dd3 |
|
|
|
345dd3 |
* Fri Oct 12 2007 Deji Akingunola <dakingun@gmail.com> - 0.0.15-0.2.20071011svn
|
|
|
345dd3 |
- Remove the use of inexistent source url (Package reviews)
|
|
|
345dd3 |
- Package the html docs
|
|
|
345dd3 |
|
|
|
345dd3 |
* Thu Oct 11 2007 Deji Akingunola <dakingun@gmail.com> - 0.0.15-0.1.20071011svn
|
|
|
345dd3 |
- Initial packaging for Fedora
|