lcms2-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: lcms2
  3. Summary: Color Management Engine
  4. Summary(ja): カラーマネージメントエンジン
  5. Version: 2.14
  6. Release: 1%{?_dist_release}
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: MIT
  11. URL: http://www.littlecms.com/
  12. Source0: https://github.com/mm2/Little-CMS/archive/lcms%{version}.tar.gz#/%{name}-%{version}.tar.gz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: libjpeg-devel
  15. BuildRequires: libtiff-devel
  16. BuildRequires: zlib-devel
  17. %description
  18. LittleCMS intends to be a small-footprint, speed optimized color management
  19. engine in open source form. LCMS2 is the current version of LCMS, and can be
  20. parallel installed with the original (deprecated) lcms.
  21. %package utils
  22. Summary: Utility applications for %{name}
  23. Group: graphics
  24. %description utils
  25. The %{name}-utils package contains utility applications for %{name}.
  26. %package devel
  27. Summary: Development files for LittleCMS
  28. Summary(ja): LittleCMS の開発用ファイル
  29. Group: programming
  30. Requires: %{name} = %{version}-%{release}
  31. Provides: littlecms-devel = %{version}-%{release}
  32. %description devel
  33. Development files for LittleCMS.
  34. # compat32
  35. %package -n compat32-%{name}
  36. Summary: Color Management Engine
  37. Summary(ja): カラーマネージメントエンジン
  38. Group: system
  39. Requires: %{name} = %{version}-%{release}
  40. %description -n compat32-%{name}
  41. LittleCMS intends to be a small-footprint, speed optimized color management
  42. engine in open source form. LCMS2 is the current version of LCMS, and can be
  43. parallel installed with the original (deprecated) lcms.
  44. %package -n compat32-%{name}-devel
  45. Summary: Development files for LittleCMS
  46. Summary(ja): LittleCMS の開発用ファイル
  47. Group: programming
  48. Requires: compat32-%{name} = %{version}-%{release}
  49. Requires: %{name}-devel = %{version}-%{release}
  50. %description -n compat32-%{name}-devel
  51. Development files for LittleCMS.
  52. %debug_package
  53. %prep
  54. %setup -q -n Little-CMS-lcms%{version}
  55. %build
  56. %configure --disable-static --program-suffix=2
  57. # remove rpath from libtool
  58. sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  59. sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  60. make %{?_smp_mflags}
  61. %install
  62. rm -rf ${RPM_BUILD_ROOT}
  63. make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
  64. find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
  65. install -D -m 644 include/lcms2.h $RPM_BUILD_ROOT/usr/include/lcms2.h
  66. install -D -m 644 include/lcms2_plugin.h $RPM_BUILD_ROOT/usr/include/lcms2_plugin.h
  67. %clean
  68. rm -rf ${RPM_BUILD_ROOT}
  69. %files
  70. %defattr(-,root,root,-)
  71. %license COPYING
  72. %doc AUTHORS
  73. %{_libdir}/*.so.*
  74. %files utils
  75. %defattr(-,root,root,-)
  76. %{_bindir}/*
  77. %{_mandir}/man1/*
  78. %files devel
  79. %defattr(-,root,root,-)
  80. %{_includedir}/*
  81. %{_libdir}/*.so
  82. %{_libdir}/pkgconfig/%{name}.pc
  83. # compat32
  84. %if %{build_compat32}
  85. %files -n compat32-%{name}
  86. %defattr(-,root,root,-)
  87. %{_libdir}/*.so.*
  88. %files -n compat32-%{name}-devel
  89. %defattr(-,root,root,-)
  90. %{_libdir}/*.so
  91. %endif
  92. %changelog
  93. * Fri Nov 18 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.14-1
  94. - new upstream release.
  95. * Tue Mar 02 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.12-1
  96. - new upstream release.
  97. * Mon May 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.9-2
  98. - rebuilt with current environment.
  99. * Fri Dec 15 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.9-1
  100. - new upstream release.
  101. * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7-1
  102. - new upstream release
  103. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.6-1
  104. - new upstream release
  105. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.5-1
  106. - new upstream release
  107. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.4-1
  108. - new upstream release
  109. * Sat Mar 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.3-1
  110. - new upstream release
  111. - create compat32 sub packages
  112. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.2-1
  113. - new upstream release
  114. * Sat Mar 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.1-3
  115. - Initial build for Vine Linux
  116. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
  117. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  118. * Wed Dec 01 2010 Richard Hughes <richard@hughsie.com> 2.1-1
  119. - Update to new upstream version.
  120. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-3
  121. - Address some more review comments.
  122. - Resolves #590387
  123. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-2
  124. - Address some review comments.
  125. - Resolves #590387
  126. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-1
  127. - Initial package for Fedora review