LibRaw-vl.spec 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Summary: Library for reading RAW files obtained from digital photo cameras
  2. Summary(ja): デジタルカメラから取り込んだ RAW ファイルを読むためのライブラリ
  3. Name: LibRaw
  4. Version: 0.9.1
  5. Release: 1%{?_dist_release}
  6. License: LGPLv2 or CDDL
  7. Group: System Environment/Libraries
  8. URL: http://www.libraw.org
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. Source0: http://www.libraw.org/data/LibRaw-%{version}.tar.gz
  11. # Configuration support. Patch sent upstream
  12. Patch0: %{name}-0.9.1-configure.patch
  13. # Use optflags for build
  14. Patch1: %{name}-0.9.1-configure-optflags.patch
  15. # Don't impose -O4 and -w
  16. Patch2: %{name}-0.9.1-configure-default-cflags.patch
  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. %description devel
  27. LibRaw development libraries
  28. This package contains static libraries that applications can use to build
  29. against libraw. LibRaw does not provide dynamic libraries.
  30. %prep
  31. %setup -q -n %{name}-%{version}
  32. %patch0 -p1 -b .configure
  33. %patch1 -p1 -b .configure-optflags
  34. %patch2 -p1 -b .configure-default-cflags
  35. %build
  36. # This is not the autotools generated configure script
  37. CFLAGS="%{optflags}" sh configure -P %{_prefix}
  38. make %{?_smp_mflags}
  39. %install
  40. rm -rf %{buildroot}
  41. cp -pr doc manual
  42. # The source tree has these with execute permissions for some reason
  43. chmod 644 LICENSE.CDDL LICENSE.LGPL LICENSE.LibRaw.pdf
  44. # The Libraries
  45. make install DESTDIR=%{buildroot} LIBDIR=%{_lib}
  46. %files devel
  47. %defattr(-,root,root,-)
  48. %doc LICENSE.CDDL LICENSE.LibRaw.pdf LICENSE.LGPL COPYRIGHT Changelog.txt Changelog.rus
  49. %doc manual
  50. %dir %{_includedir}/libraw
  51. %{_includedir}/libraw/*.h
  52. %{_libdir}/libraw.a
  53. %{_libdir}/libraw_r.a
  54. %changelog
  55. * Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-1
  56. - initial build for VineSeed
  57. * Fri Jun 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-1
  58. - New package