LibRaw-vl.spec 4.9 KB

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