3f4bdd
Name:           lcms2
3f4bdd
Version:        2.5
3f4bdd
Release:        2%{?dist}
3f4bdd
Summary:        Color Management Engine
3f4bdd
License:        MIT
3f4bdd
URL:            http://www.littlecms.com/
3f4bdd
Source0:        http://www.littlecms.com/lcms2-2.5.tar.gz
3f4bdd
3f4bdd
BuildRequires:  libjpeg-devel
3f4bdd
BuildRequires:  libtiff-devel
3f4bdd
BuildRequires:  zlib-devel
3f4bdd
3f4bdd
%description
3f4bdd
LittleCMS intends to be a small-footprint, speed optimized color management
3f4bdd
engine in open source form. LCMS2 is the current version of LCMS, and can be
3f4bdd
parallel installed with the original (deprecated) lcms.
3f4bdd
3f4bdd
%package        utils
3f4bdd
Summary:        Utility applications for %{name}
3f4bdd
Group:          Applications/Productivity
3f4bdd
Requires:       %{name} = %{version}-%{release}
3f4bdd
3f4bdd
%description    utils
3f4bdd
The %{name}-utils package contains utility applications for %{name}.
3f4bdd
3f4bdd
%package        devel
3f4bdd
Summary:        Development files for LittleCMS
3f4bdd
Group:          Development/Libraries
3f4bdd
Requires:       %{name} = %{version}-%{release}
3f4bdd
Provides:       littlecms-devel = %{version}-%{release}
3f4bdd
3f4bdd
%description    devel
3f4bdd
Development files for LittleCMS.
3f4bdd
3f4bdd
%prep
3f4bdd
%setup -q -n lcms2-2.5
3f4bdd
3f4bdd
%build
3f4bdd
export CFLAGS=-fno-strict-aliasing
3f4bdd
%configure --disable-static --program-suffix=2
3f4bdd
3f4bdd
# remove rpath from libtool
3f4bdd
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
3f4bdd
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
3f4bdd
3f4bdd
make %{?_smp_mflags}
3f4bdd
3f4bdd
%install
3f4bdd
rm -rf ${RPM_BUILD_ROOT}
3f4bdd
make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
3f4bdd
find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
3f4bdd
install -D -m 644 include/lcms2.h $RPM_BUILD_ROOT/usr/include/lcms2.h
3f4bdd
install -D -m 644 include/lcms2_plugin.h $RPM_BUILD_ROOT/usr/include/lcms2_plugin.h
3f4bdd
3f4bdd
# install docs as this is all we've got
3f4bdd
install -D -m 644 doc/LittleCMS2.?\ tutorial.pdf $RPM_BUILD_ROOT/usr/share/doc/lcms2-devel-2.5/tutorial.pdf
3f4bdd
install -D -m 644 doc/LittleCMS2.?\ API.pdf $RPM_BUILD_ROOT/usr/share/doc/lcms2-devel-2.5/api.pdf
3f4bdd
install -D -m 644 doc/LittleCMS2.?\ Plugin\ API.pdf $RPM_BUILD_ROOT/usr/share/doc/lcms2-devel-2.5/plugin-api.pdf
3f4bdd
3f4bdd
%clean
3f4bdd
rm -rf ${RPM_BUILD_ROOT}
3f4bdd
3f4bdd
%post -p /sbin/ldconfig
3f4bdd
3f4bdd
%postun -p /sbin/ldconfig
3f4bdd
3f4bdd
%files
3f4bdd
%defattr(-,root,root,-)
3f4bdd
%doc AUTHORS COPYING
3f4bdd
%{_libdir}/*.so.*
3f4bdd
3f4bdd
%files utils
3f4bdd
%defattr(-,root,root,-)
3f4bdd
%{_bindir}/*
3f4bdd
%{_mandir}/man1/*
3f4bdd
3f4bdd
%files devel
3f4bdd
%defattr(-,root,root,-)
3f4bdd
%{_datadir}/doc/lcms2-devel-2.5/*.pdf
3f4bdd
%{_includedir}/*
3f4bdd
%{_libdir}/*.so
3f4bdd
%{_libdir}/pkgconfig/%{name}.pc
3f4bdd
3f4bdd
%changelog
3f4bdd
* Tue Oct  8 2013 Matthias Clasen <mclasen@redhat.com> 2.5-2
3f4bdd
- Disable strict aliasing (related: #884068)
3f4bdd
3f4bdd
* Mon Jul 01 2013 Richard Hughes <richard@hughsie.com> 2.5-1
3f4bdd
- Update to new upstream version.
3f4bdd
- Added a reference for Mac MLU tag
3f4bdd
- Added a way to read the profile creator from header
3f4bdd
- Added error descriptions on cmsSmoothToneCurve
3f4bdd
- Added identity curves support for write V2 LUT
3f4bdd
- Added new cmsPlugInTHR() and fixed some race conditions
3f4bdd
- Added TIFF Lab16 handling on tifficc
3f4bdd
- Fixed a bug on big endian platforms not supporting uint64 or long long.
3f4bdd
- Fixed a multithead bug on optimization
3f4bdd
- Fixed devicelink generation for 8 bits
3f4bdd
- Fixed some 64 bit warnings on size_t to uint32 conversions
3f4bdd
- Rendering intent used when creating the transform is now propagated to profile
3f4bdd
- RGB profiles store only one copy of the curve to save space
3f4bdd
- Transform2Devicelink now keeps white point when guessing deviceclass is enabled
3f4bdd
- Update black point detection algorithm to reflect ICC changes
3f4bdd
- User defined parametric curves can now be saved in ICC profiles
3f4bdd
3f4bdd
* Thu Apr 25 2013 Tim Waugh <twaugh@redhat.com> - 2.4-6
3f4bdd
- Applied upstream fixes for threading (bug #951984).
3f4bdd
3f4bdd
* Thu Mar  7 2013 Tim Waugh <twaugh@redhat.com> - 2.4-5
3f4bdd
- Added upstream fix for threading issue with plugin registration
3f4bdd
  (bug #912307).
3f4bdd
3f4bdd
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-4
3f4bdd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3f4bdd
3f4bdd
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 2.4-3
3f4bdd
- rebuild due to "jpeg8-ABI" feature drop
3f4bdd
3f4bdd
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 2.4-2
3f4bdd
- rebuild against new libjpeg
3f4bdd
3f4bdd
* Sat Sep 15 2012 Richard Hughes <richard@hughsie.com> 2.4-1
3f4bdd
- Update to new upstream version.
3f4bdd
- Black point detection from the algorithm disclosed by Adobe
3f4bdd
- Added support for transforms on planar data with different stride
3f4bdd
- Added a new plug-in type for optimizing full transforms
3f4bdd
- Linear (gamma 1.0) profiles can now operate in unbounded mode
3f4bdd
- Added "half" float support
3f4bdd
3f4bdd
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-3
3f4bdd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3f4bdd
3f4bdd
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-2
3f4bdd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3f4bdd
3f4bdd
* Fri Jun 10 2011 Richard Hughes <richard@hughsie.com> 2.3-1
3f4bdd
- Update to new upstream version which incorporates many bugfixes.
3f4bdd
3f4bdd
* Fri Jun 10 2011 Richard Hughes <richard@hughsie.com> 2.2-2
3f4bdd
- Actually update the sources...
3f4bdd
3f4bdd
* Fri Jun 10 2011 Richard Hughes <richard@hughsie.com> 2.2-1
3f4bdd
- Update to new upstream version
3f4bdd
- Stability and efficienty fixes
3f4bdd
- Adds support for dictionary metatag
3f4bdd
3f4bdd
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
3f4bdd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3f4bdd
3f4bdd
* Wed Dec 01 2010 Richard Hughes <richard@hughsie.com> 2.1-1
3f4bdd
- Update to new upstream version.
3f4bdd
3f4bdd
* Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-3
3f4bdd
- Address some more review comments.
3f4bdd
- Resolves #590387
3f4bdd
3f4bdd
* Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-2
3f4bdd
- Address some review comments.
3f4bdd
- Resolves #590387
3f4bdd
3f4bdd
* Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-1
3f4bdd
- Initial package for Fedora review