lcms2-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. Name: lcms2
  2. Summary: Color Management Engine
  3. Summary(ja): カラーマネージメントエンジン
  4. Version: 2.2
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: MIT
  8. URL: http://www.littlecms.com/
  9. Source0: http://www.littlecms.com/lcms2-2.2.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: libjpeg-devel
  12. BuildRequires: libtiff-devel
  13. BuildRequires: zlib-devel
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. LittleCMS intends to be a small-footprint, speed optimized color management
  18. engine in open source form. LCMS2 is the current version of LCMS, and can be
  19. parallel installed with the original (deprecated) lcms.
  20. %package utils
  21. Summary: Utility applications for %{name}
  22. Group: Applications/Productivity
  23. %description utils
  24. The %{name}-utils package contains utility applications for %{name}.
  25. %package devel
  26. Summary: Development files for LittleCMS
  27. Summary(ja): LittleCMS の開発用ファイル
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. Provides: littlecms-devel = %{version}-%{release}
  31. %description devel
  32. Development files for LittleCMS.
  33. %prep
  34. %setup -q
  35. %build
  36. %configure --disable-static --program-suffix=2
  37. # remove rpath from libtool
  38. sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  39. sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  40. make %{?_smp_mflags}
  41. %install
  42. rm -rf ${RPM_BUILD_ROOT}
  43. make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
  44. find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
  45. install -D -m 644 include/lcms2.h $RPM_BUILD_ROOT/usr/include/lcms2.h
  46. install -D -m 644 include/lcms2_plugin.h $RPM_BUILD_ROOT/usr/include/lcms2_plugin.h
  47. %clean
  48. rm -rf ${RPM_BUILD_ROOT}
  49. %post -p /sbin/ldconfig
  50. %postun -p /sbin/ldconfig
  51. %files
  52. %defattr(-,root,root,-)
  53. %doc AUTHORS COPYING
  54. %{_libdir}/*.so.*
  55. %files utils
  56. %defattr(-,root,root,-)
  57. %{_bindir}/*
  58. %{_mandir}/man1/*
  59. %files devel
  60. %defattr(-,root,root,-)
  61. %{_includedir}/*
  62. %{_libdir}/*.so
  63. %{_libdir}/pkgconfig/%{name}.pc
  64. %changelog
  65. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.2-1
  66. - new upstream release
  67. * Sat Mar 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.1-3
  68. - Initial build for Vine Linux
  69. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  71. * Wed Dec 01 2010 Richard Hughes <richard@hughsie.com> 2.1-1
  72. - Update to new upstream version.
  73. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-3
  74. - Address some more review comments.
  75. - Resolves #590387
  76. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-2
  77. - Address some review comments.
  78. - Resolves #590387
  79. * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-1
  80. - Initial package for Fedora review