lcms2-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: lcms2
  3. Summary: Color Management Engine
  4. Summary(ja): カラーマネージメントエンジン
  5. Version: 2.4
  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. %description -n compat32-%{name}-devel
  50. Development files for LittleCMS.
  51. %prep
  52. %setup -q
  53. %build
  54. %configure --disable-static --program-suffix=2
  55. # remove rpath from libtool
  56. sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  57. sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  58. make %{?_smp_mflags}
  59. %install
  60. rm -rf ${RPM_BUILD_ROOT}
  61. make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
  62. find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
  63. install -D -m 644 include/lcms2.h $RPM_BUILD_ROOT/usr/include/lcms2.h
  64. install -D -m 644 include/lcms2_plugin.h $RPM_BUILD_ROOT/usr/include/lcms2_plugin.h
  65. %clean
  66. rm -rf ${RPM_BUILD_ROOT}
  67. %post -p /sbin/ldconfig
  68. %postun -p /sbin/ldconfig
  69. %files
  70. %defattr(-,root,root,-)
  71. %doc AUTHORS COPYING
  72. %{_libdir}/*.so.*
  73. %files utils
  74. %defattr(-,root,root,-)
  75. %{_bindir}/*
  76. %{_mandir}/man1/*
  77. %files devel
  78. %defattr(-,root,root,-)
  79. %{_includedir}/*
  80. %{_libdir}/*.so
  81. %{_libdir}/pkgconfig/%{name}.pc
  82. # compat32
  83. %if %{build_compat32}
  84. %files -n compat32-%{name}
  85. %defattr(-,root,root,-)
  86. %{_libdir}/*.so.*
  87. %files -n compat32-%{name}-devel
  88. %defattr(-,root,root,-)
  89. %{_libdir}/*.so
  90. %endif
  91. %changelog
  92. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.4-1
  93. - new upstream release
  94. * Sat Mar 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.3-1
  95. - new upstream release
  96. - create compat32 sub packages
  97. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.2-1
  98. - new upstream release
  99. * Sat Mar 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.1-3
  100. - Initial build for Vine Linux
  101. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
  102. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  103. * Wed Dec 01 2010 Richard Hughes <richard@hughsie.com> 2.1-1
  104. - Update to new upstream version.
  105. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-3
  106. - Address some more review comments.
  107. - Resolves #590387
  108. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-2
  109. - Address some review comments.
  110. - Resolves #590387
  111. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-1
  112. - Initial package for Fedora review