lcms2-vl.spec 4.7 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.12
  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. %ldconfig_scriptlets
  70. %files
  71. %defattr(-,root,root,-)
  72. %license COPYING
  73. %doc AUTHORS
  74. %{_libdir}/*.so.*
  75. %files utils
  76. %defattr(-,root,root,-)
  77. %{_bindir}/*
  78. %{_mandir}/man1/*
  79. %files devel
  80. %defattr(-,root,root,-)
  81. %{_includedir}/*
  82. %{_libdir}/*.so
  83. %{_libdir}/pkgconfig/%{name}.pc
  84. # compat32
  85. %if %{build_compat32}
  86. %files -n compat32-%{name}
  87. %defattr(-,root,root,-)
  88. %{_libdir}/*.so.*
  89. %files -n compat32-%{name}-devel
  90. %defattr(-,root,root,-)
  91. %{_libdir}/*.so
  92. %endif
  93. %changelog
  94. * Tue Mar 02 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.12-1
  95. - new upstream release.
  96. * Mon May 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.9-2
  97. - rebuilt with current environment.
  98. * Fri Dec 15 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.9-1
  99. - new upstream release.
  100. * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7-1
  101. - new upstream release
  102. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.6-1
  103. - new upstream release
  104. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.5-1
  105. - new upstream release
  106. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.4-1
  107. - new upstream release
  108. * Sat Mar 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.3-1
  109. - new upstream release
  110. - create compat32 sub packages
  111. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.2-1
  112. - new upstream release
  113. * Sat Mar 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.1-3
  114. - Initial build for Vine Linux
  115. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
  116. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  117. * Wed Dec 01 2010 Richard Hughes <richard@hughsie.com> 2.1-1
  118. - Update to new upstream version.
  119. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-3
  120. - Address some more review comments.
  121. - Resolves #590387
  122. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-2
  123. - Address some review comments.
  124. - Resolves #590387
  125. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-1
  126. - Initial package for Fedora review