lcms-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: lcms
  3. Summary: Little CMS - color management engine
  4. Summary(ja): Little CMS - カラーマネージメントエンジン
  5. Version: 1.19
  6. Release: 1%{?_dist_release}
  7. Group: System Environment/Libraries
  8. License: MIT
  9. URL: http://www.littlecms.com/
  10. Source0: http://www.littlecms.com/%{name}-%{version}.tar.gz
  11. Patch100: lcms-1.18_cmsxfrom_CVE-2009-0793.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: zlib-devel
  14. BuildRequires: libtiff-devel
  15. BuildRequires: libjpeg-turbo-devel
  16. BuildRequires: pkgconfig
  17. %description
  18. Little cms intends to be a small-footprint, speed optimized color management
  19. engine in open source form.
  20. %package devel
  21. Summary: Header files and library for development with LCMS
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. %description devel
  25. Development files for development with LCMS
  26. %package static
  27. Summary: Static library for development with LCMS
  28. Group: Development/Libraries
  29. Requires: %{name}-devel = %{version}-%{release}
  30. %description static
  31. Static libraries for development with LCMS
  32. %package utils
  33. Summary: Additional Command Line Utilities for littlecms
  34. Group: Applications/Graphics
  35. Requires: %{name} = %{version}-%{release}
  36. %description utils
  37. Command line utilities which can perform icc transforms and provide info
  38. about icc profiles.
  39. # compat32
  40. %package -n compat32-%{name}
  41. Summary: Little CMS - color management engine
  42. Summary(ja): Little CMS - カラーマネージメントエンジン
  43. Group: System Environment/Libraries
  44. Requires: %{name} = %{version}-%{release}
  45. %description -n compat32-%{name}
  46. Little cms intends to be a small-footprint, speed optimized color management
  47. engine in open source form.
  48. %package -n compat32-%{name}-devel
  49. Summary: Header files and library for development with LCMS
  50. Group: Development/Libraries
  51. Requires: %{name}-devel = %{version}-%{release}
  52. Requires: compat32-%{name} = %{version}-%{release}
  53. %description -n compat32-%{name}-devel
  54. Development files for development with LCMS
  55. %prep
  56. %setup -q
  57. %patch100 -p1 -b .CVE-2009-0793
  58. %build
  59. %configure
  60. make all
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. make install DESTDIR=$RPM_BUILD_ROOT
  64. rm $RPM_BUILD_ROOT%{_libdir}/*.la
  65. %clean
  66. rm -rf $RPM_BUILD_ROOT
  67. %post -p /sbin/ldconfig
  68. %postun -p /sbin/ldconfig
  69. %post -n compat32-%{name} -p /sbin/ldconfig
  70. %postun -n compat32-%{name} -p /sbin/ldconfig
  71. %files
  72. %defattr(-,root,root)
  73. %doc AUTHORS COPYING ChangeLog README.1ST doc/
  74. %{_libdir}/*.so.*
  75. %files devel
  76. %defattr(-,root,root)
  77. %{_includedir}/*
  78. %{_libdir}/*.so
  79. %{_libdir}/pkgconfig/lcms.pc
  80. %files static
  81. %defattr(-,root,root)
  82. %{_libdir}/*.a
  83. %files utils
  84. %defattr(-,root,root)
  85. %{_bindir}/*
  86. %{_mandir}/man1/*.gz
  87. # compat32
  88. %if %{build_compat32}
  89. %files -n compat32-%{name}
  90. %defattr(-,root,root)
  91. %{_libdir}/*.so.*
  92. %files -n compat32-%{name}-devel
  93. %defattr(-,root,root)
  94. %{_libdir}/*.so
  95. %{_libdir}/pkgconfig/lcms.pc
  96. %endif
  97. %changelog
  98. * Sun Sep 26 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.19-1
  99. - new upstream release
  100. - built with rpm-4.8.1 for pkg-config
  101. - BR: libjpeg-turbo-devel instead of libjpeg-devel
  102. * Mon Jul 20 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.18-3
  103. - added compat32 package for x86_64 arch support
  104. * Sat Apr 11 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.18-2
  105. - add patch100 for fix CVE-2009-0793 (Monochrome Profiles Transform DoS)
  106. * Tue Apr 04 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.18-1
  107. - new upstream release with security fixes (CVE-2009-0581, 0723, 0733)
  108. * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17-2
  109. - add lcms-static which is needed by tuxonice-userui
  110. * Wed Mar 19 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.17-1
  111. - new upstream release
  112. - delete *.la
  113. - add --disable-static
  114. * Wed May 16 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.16-0vl1
  115. - new upstream release
  116. * Mon Mar 6 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.15-0vl2
  117. - rebuid for VineSeed
  118. * Mon Mar 6 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.15-0vl1
  119. - new upstream release
  120. - add %%{_mandir}/man1/*.gz to utils package
  121. * Wed May 11 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.14-0vl1
  122. - new upstream release
  123. * Tue Aug 10 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.13-0vl1
  124. - source upgrade
  125. - add BuildPrereq: pkgconfig
  126. - add %%{_libdir}/pkgconfig/lcms.pc to devel package
  127. * Sat May 1 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.12-0vl1
  128. - source upgrade
  129. - change build method, %%files and Group for VineSeed
  130. * Sat May 10 2003 Peter Linnell
  131. - more spec file tweaks
  132. - no need to patch makefiles - wtpt executible is obsoleted per Marti
  133. * Sat Apr 26 2003 Peter Linnell
  134. - split out and compile utils separately
  135. - add RH80 versioning to avoid confusion with 9 packages
  136. - needs patched samples makefile
  137. * Wed Apr 23 2003 Peter Linnell
  138. - new package with 1.10 final
  139. - takeout profiles - add later
  140. * Fri Mar 14 2003 Peter Linnell
  141. - rebuild - test target= option works