LibRaw-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. Summary: Library for reading RAW files obtained from digital photo cameras
  2. Summary(ja): デジタルカメラから取り込んだ RAW ファイルを読むためのライブラリ
  3. Name: LibRaw
  4. Version: 0.13.5
  5. Release: 3%{?_dist_release}
  6. License: LGPLv2 or CDDL or LibRaw Software License
  7. Group: System Environment/Libraries
  8. URL: http://www.libraw.org
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: gcc libtool make
  11. BuildRequires: lcms-devel
  12. Source0: http://www.libraw.org/data/LibRaw-%{version}.tar.gz
  13. %description
  14. LibRaw is a library for reading RAW files obtained from digital photo
  15. cameras (CRW/CR2, NEF, RAF, DNG, and others).
  16. LibRaw is based on the source codes of the dcraw utility, where part of
  17. drawbacks have already been eliminated and part will be fixed in future.
  18. %package devel
  19. Summary: LibRaw development libraries
  20. Summary(ja): LibRaw の開発ライブラリ
  21. Group: Development/Libraries
  22. License: LGPLv2 or CDDL o LibRaw Software License
  23. %description devel
  24. LibRaw development libraries
  25. This package contains static libraries that applications can use to build
  26. against libraw. LibRaw does not provide dynamic libraries.
  27. %package static
  28. Summary: LibRaw static libraries
  29. Summary(ja): LibRaw の静的ライブラリ
  30. Group: Development/Libraries
  31. License: LGPLv2 or CDDL o LibRaw Software License
  32. Requires: %{name}-devel = %{version}-%{release}
  33. %description static
  34. This package contains the static library for %{name}.
  35. %prep
  36. %setup -q -n %{name}-%{version}
  37. %build
  38. # This is not the autotools generated configure script
  39. CFLAGS="%{optflags}" sh configure --prefix=/usr --disable-examples \
  40. --disable-demosaic-pack-gpl2 --disable-demosaic-pack-gpl3 \
  41. --enable-static=no --enable-shared=no --enable-lcms
  42. make %{?_smp_mflags}
  43. %install
  44. rm -rf %{buildroot}
  45. cp -pr doc manual
  46. # The source tree has these with execute permissions for some reason
  47. chmod 644 LICENSE.CDDL LICENSE.LGPL LICENSE.LibRaw.pdf
  48. # The Libraries
  49. #make install DESTDIR=%{buildroot} LIBDIR=%{_lib}
  50. %makeinstall
  51. rm -rf %{buildroot}%{_libdir}/*.la
  52. %files devel
  53. %defattr(-,root,root,-)
  54. %doc Changelog.rus
  55. %doc manual samples
  56. %{_docdir}/libraw/
  57. %dir %{_includedir}/libraw
  58. %{_includedir}/libraw/*.h
  59. %{_libdir}/pkgconfig/*.pc
  60. %files static
  61. %defattr(-,root,root,-)
  62. %{_libdir}/libraw.a
  63. %{_libdir}/libraw_r.a
  64. %changelog
  65. * Thu Jun 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-3
  66. - added BuildRequires: lcms-devel
  67. - added configure option --enable-lcms
  68. * Sun Jun 05 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-2
  69. - added BuildRequires: gcc libtool make
  70. - fixed %%install
  71. - deleted library archive
  72. - fixed %%doc in -devel package
  73. * Sat Jun 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-1
  74. - new upstream release
  75. - dropt Patch0
  76. - fixed configure option
  77. - fixed %%files
  78. - splitted -static package
  79. * Mon Dec 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.11.3-1
  80. - new upstream release
  81. - added License: LibRaw Software License
  82. - dropt patch1,2
  83. - replaced patch0 by Fedora development patch
  84. * Tue Sep 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.10.0-1
  85. - new upstream release
  86. * Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-1
  87. - initial build for VineSeed
  88. * Fri Jun 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-1
  89. - New package