lcms2-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: lcms2
  3. Summary: Color Management Engine
  4. Summary(ja): カラーマネージメントエンジン
  5. Version: 2.7
  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. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: libjpeg-devel
  13. BuildRequires: libtiff-devel
  14. BuildRequires: zlib-devel
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  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. %doc AUTHORS COPYING
  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. * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7-1
  94. - new upstream release
  95. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.6-1
  96. - new upstream release
  97. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.5-1
  98. - new upstream release
  99. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.4-1
  100. - new upstream release
  101. * Sat Mar 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.3-1
  102. - new upstream release
  103. - create compat32 sub packages
  104. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.2-1
  105. - new upstream release
  106. * Sat Mar 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.1-3
  107. - Initial build for Vine Linux
  108. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
  109. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  110. * Wed Dec 01 2010 Richard Hughes <richard@hughsie.com> 2.1-1
  111. - Update to new upstream version.
  112. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-3
  113. - Address some more review comments.
  114. - Resolves #590387
  115. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-2
  116. - Address some review comments.
  117. - Resolves #590387
  118. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-1
  119. - Initial package for Fedora review