LibRaw-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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.19.5
  6. Release: 1%{?_dist_release}
  7. License: BSD and (CDDL or LGPLv2)
  8. Group: System Environment/Libraries
  9. URL: http://www.libraw.org
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: gcc libtool make
  12. BuildRequires: lcms2-devel
  13. BuildRequires: jasper-devel
  14. Source0: http://www.libraw.org/data/LibRaw-%{version}.tar.gz
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  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: Development/Libraries
  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: Development/Libraries
  36. Requires: %{name}-devel = %{version}-%{release}
  37. %description static
  38. This package contains the static library for %{name}.
  39. %prep
  40. %setup -q
  41. %build
  42. autoreconf -if
  43. %configure \
  44. --enable-examples=no \
  45. --enable-jasper \
  46. --enable-jpeg \
  47. --enable-lcms \
  48. %if %{with openmp}
  49. --enable-openmp
  50. %endif
  51. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  52. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  53. %make_build
  54. %install
  55. rm -rf %{buildroot}
  56. cp -pr doc manual
  57. chmod 644 LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.*
  58. chmod 644 manual/*.html
  59. # The Libraries
  60. %make_install
  61. rm -rfv samples/.deps
  62. rm -fv samples/.dirstamp
  63. rm -fv samples/*.o
  64. rm -rf %{buildroot}%{_libdir}/*.la
  65. %files
  66. %defattr(-,root,root,-)
  67. %license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
  68. %doc Changelog.txt
  69. %{_libdir}/*.so.*
  70. %files devel
  71. %defattr(-,root,root,-)
  72. %doc manual samples
  73. %exclude %{_docdir}/libraw/
  74. %dir %{_includedir}/libraw
  75. %{_includedir}/libraw/*.h
  76. %{_libdir}/*.so
  77. %{_libdir}/pkgconfig/*.pc
  78. %files static
  79. %defattr(-,root,root,-)
  80. %{_libdir}/*.a
  81. %post -p /sbin/ldconfig
  82. %postun -p /sbin/ldconfig
  83. %changelog
  84. * Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.19.5-1
  85. - new upstream release.
  86. * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.17.2-1
  87. - new upstream release.
  88. * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.16.0-1
  89. - new upstream release
  90. * Sat Jan 18 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.15.4-1
  91. - new upstream release
  92. * Sun May 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.8-1
  93. - new upstream release
  94. * Fri Jun 29 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.7-1
  95. - new upstream release
  96. * Sat Apr 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.14.6-1
  97. - new upstream release
  98. - change BuildRequires: lcms2-devel instead of lcms-devel
  99. * Sun Jan 15 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.5-1
  100. - new upstream release
  101. * Sat Dec 17 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.4-1
  102. - new upstream release
  103. * Fri Dec 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.3-1
  104. - new upstream release
  105. - added BuildRequires: jasper-devel
  106. - fixed configure option
  107. - deleted --enable-shared=no, --enable-static=no
  108. - added --enable-jasper
  109. - fixed %%files in -devel
  110. - run ldconfig in %%post, %%postun
  111. * Thu Jun 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-3
  112. - added BuildRequires: lcms-devel
  113. - added configure option --enable-lcms
  114. * Sun Jun 05 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-2
  115. - added BuildRequires: gcc libtool make
  116. - fixed %%install
  117. - deleted library archive
  118. - fixed %%doc in -devel package
  119. * Sat Jun 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-1
  120. - new upstream release
  121. - dropt Patch0
  122. - fixed configure option
  123. - fixed %%files
  124. - splitted -static package
  125. * Mon Dec 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.11.3-1
  126. - new upstream release
  127. - added License: LibRaw Software License
  128. - dropt patch1,2
  129. - replaced patch0 by Fedora development patch
  130. * Tue Sep 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.10.0-1
  131. - new upstream release
  132. * Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-1
  133. - initial build for VineSeed
  134. * Fri Jun 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-1
  135. - New package