lcms2-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: lcms2
  3. Summary: Color Management Engine
  4. Summary(ja): カラーマネージメントエンジン
  5. Version: 2.9
  6. Release: 2%{?_dist_release}
  7. Group: System Environment/Libraries
  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: Applications/Productivity
  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: Development/Libraries
  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 Environment/Libraries
  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: Development/Libraries
  48. Requires: compat32-%{name} = %{version}-%{release}
  49. Requires: %{name}-devel = %{version}-%{release}
  50. %description -n compat32-%{name}-devel
  51. Development files for LittleCMS.
  52. %prep
  53. %setup -q
  54. %build
  55. %configure --disable-static --program-suffix=2
  56. # remove rpath from libtool
  57. sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  58. sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  59. make %{?_smp_mflags}
  60. %install
  61. rm -rf ${RPM_BUILD_ROOT}
  62. make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
  63. find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
  64. install -D -m 644 include/lcms2.h $RPM_BUILD_ROOT/usr/include/lcms2.h
  65. install -D -m 644 include/lcms2_plugin.h $RPM_BUILD_ROOT/usr/include/lcms2_plugin.h
  66. %clean
  67. rm -rf ${RPM_BUILD_ROOT}
  68. %post -p /sbin/ldconfig
  69. %postun -p /sbin/ldconfig
  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. * Mon May 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.9-2
  95. - rebuilt with current environment.
  96. * Fri Dec 15 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.9-1
  97. - new upstream release.
  98. * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7-1
  99. - new upstream release
  100. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.6-1
  101. - new upstream release
  102. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.5-1
  103. - new upstream release
  104. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.4-1
  105. - new upstream release
  106. * Sat Mar 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.3-1
  107. - new upstream release
  108. - create compat32 sub packages
  109. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.2-1
  110. - new upstream release
  111. * Sat Mar 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.1-3
  112. - Initial build for Vine Linux
  113. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
  114. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  115. * Wed Dec 01 2010 Richard Hughes <richard@hughsie.com> 2.1-1
  116. - Update to new upstream version.
  117. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-3
  118. - Address some more review comments.
  119. - Resolves #590387
  120. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-2
  121. - Address some review comments.
  122. - Resolves #590387
  123. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-1
  124. - Initial package for Fedora review