LibRaw-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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: 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. * Fri Sep 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.20.0-1
  86. - new upstream release.
  87. * Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.19.5-1
  88. - new upstream release.
  89. * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.17.2-1
  90. - new upstream release.
  91. * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.0-1
  92. - new upstream release
  93. * Sat Jan 18 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.15.4-1
  94. - new upstream release
  95. * Sun May 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.8-1
  96. - new upstream release
  97. * Fri Jun 29 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.7-1
  98. - new upstream release
  99. * Sat Apr 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.14.6-1
  100. - new upstream release
  101. - change BuildRequires: lcms2-devel instead of lcms-devel
  102. * Sun Jan 15 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.5-1
  103. - new upstream release
  104. * Sat Dec 17 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.4-1
  105. - new upstream release
  106. * Fri Dec 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.3-1
  107. - new upstream release
  108. - added BuildRequires: jasper-devel
  109. - fixed configure option
  110. - deleted --enable-shared=no, --enable-static=no
  111. - added --enable-jasper
  112. - fixed %%files in -devel
  113. - run ldconfig in %%post, %%postun
  114. * Thu Jun 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-3
  115. - added BuildRequires: lcms-devel
  116. - added configure option --enable-lcms
  117. * Sun Jun 05 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-2
  118. - added BuildRequires: gcc libtool make
  119. - fixed %%install
  120. - deleted library archive
  121. - fixed %%doc in -devel package
  122. * Sat Jun 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-1
  123. - new upstream release
  124. - dropt Patch0
  125. - fixed configure option
  126. - fixed %%files
  127. - splitted -static package
  128. * Mon Dec 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.11.3-1
  129. - new upstream release
  130. - added License: LibRaw Software License
  131. - dropt patch1,2
  132. - replaced patch0 by Fedora development patch
  133. * Tue Sep 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.10.0-1
  134. - new upstream release
  135. * Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-1
  136. - initial build for VineSeed
  137. * Fri Jun 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-1
  138. - New package