lcms2-vl.spec 3.2 KB

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