LibRaw-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. %bcond_with openmp
  2. Summary: Library for reading RAW files obtained from digital photo cameras
  3. Summary(ja): デジタルカメラから取り込んだ RAW ファイルを読むためのライブラリ
  4. Name: LibRaw
  5. Version: 0.20.0
  6. Release: 2%{?_dist_release}
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: BSD and (CDDL or LGPLv2)
  11. URL: https://www.libraw.org/
  12. Source0: https://www.libraw.org/data/LibRaw-%{version}.tar.gz
  13. Patch1000: LibRaw-Additional-checks-in-hassy-model-parser.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: gcc libtool make
  16. BuildRequires: lcms2-devel
  17. BuildRequires: jasper-devel
  18. %description
  19. LibRaw is a library for reading RAW files obtained from digital photo
  20. cameras (CRW/CR2, NEF, RAF, DNG, and others).
  21. LibRaw is based on the source codes of the dcraw utility, where part of
  22. drawbacks have already been eliminated and part will be fixed in future.
  23. %package devel
  24. Summary: LibRaw development libraries
  25. Summary(ja): LibRaw の開発ライブラリ
  26. Group: programming
  27. Requires: %{name} = %{version}-%{release}
  28. Requires: pkgconfig
  29. %description devel
  30. LibRaw development libraries
  31. This package contains static libraries that applications can use to build
  32. against libraw. LibRaw does not provide dynamic libraries.
  33. %package static
  34. Summary: LibRaw static libraries
  35. Summary(ja): LibRaw の静的ライブラリ
  36. Group: programming
  37. Requires: %{name}-devel = %{version}-%{release}
  38. %description static
  39. This package contains the static library for %{name}.
  40. %debug_package
  41. %prep
  42. %setup -q
  43. %patch1000 -p1
  44. %build
  45. autoreconf -if
  46. %configure \
  47. --enable-examples=no \
  48. --enable-jasper \
  49. --enable-jpeg \
  50. --enable-lcms \
  51. %if %{with openmp}
  52. --enable-openmp
  53. %endif
  54. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  55. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  56. %make_build
  57. %install
  58. rm -rf %{buildroot}
  59. cp -pr doc manual
  60. chmod 644 LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.*
  61. chmod 644 manual/*.html
  62. # The Libraries
  63. %make_install
  64. rm -rfv samples/.deps
  65. rm -fv samples/.dirstamp
  66. rm -fv samples/*.o
  67. rm -rf %{buildroot}%{_libdir}/*.la
  68. %post -p /sbin/ldconfig
  69. %postun -p /sbin/ldconfig
  70. %files
  71. %defattr(-,root,root,-)
  72. %license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
  73. %doc Changelog.txt
  74. %{_libdir}/*.so.*
  75. %files devel
  76. %defattr(-,root,root,-)
  77. %doc manual samples
  78. %exclude %{_docdir}/libraw/
  79. %dir %{_includedir}/libraw
  80. %{_includedir}/libraw/*.h
  81. %{_libdir}/*.so
  82. %{_libdir}/pkgconfig/*.pc
  83. %files static
  84. %defattr(-,root,root,-)
  85. %{_libdir}/*.a
  86. %changelog
  87. * Wed Sep 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.20.0-2
  88. - imported Patch1000 from upstream to fix CVE-2020-24890.
  89. * Fri Sep 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.20.0-1
  90. - new upstream release.
  91. * Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.19.5-1
  92. - new upstream release.
  93. * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.17.2-1
  94. - new upstream release.
  95. * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.0-1
  96. - new upstream release
  97. * Sat Jan 18 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.15.4-1
  98. - new upstream release
  99. * Sun May 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.8-1
  100. - new upstream release
  101. * Fri Jun 29 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.7-1
  102. - new upstream release
  103. * Sat Apr 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.14.6-1
  104. - new upstream release
  105. - change BuildRequires: lcms2-devel instead of lcms-devel
  106. * Sun Jan 15 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.5-1
  107. - new upstream release
  108. * Sat Dec 17 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.4-1
  109. - new upstream release
  110. * Fri Dec 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.3-1
  111. - new upstream release
  112. - added BuildRequires: jasper-devel
  113. - fixed configure option
  114. - deleted --enable-shared=no, --enable-static=no
  115. - added --enable-jasper
  116. - fixed %%files in -devel
  117. - run ldconfig in %%post, %%postun
  118. * Thu Jun 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-3
  119. - added BuildRequires: lcms-devel
  120. - added configure option --enable-lcms
  121. * Sun Jun 05 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-2
  122. - added BuildRequires: gcc libtool make
  123. - fixed %%install
  124. - deleted library archive
  125. - fixed %%doc in -devel package
  126. * Sat Jun 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-1
  127. - new upstream release
  128. - dropt Patch0
  129. - fixed configure option
  130. - fixed %%files
  131. - splitted -static package
  132. * Mon Dec 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.11.3-1
  133. - new upstream release
  134. - added License: LibRaw Software License
  135. - dropt patch1,2
  136. - replaced patch0 by Fedora development patch
  137. * Tue Sep 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.10.0-1
  138. - new upstream release
  139. * Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-1
  140. - initial build for VineSeed
  141. * Fri Jun 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-1
  142. - New package