Blame SPECS/babl.spec

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