Blame SPECS/lcms2.spec

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