LibRaw-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. Summary: Library for reading RAW files obtained from digital photo cameras
  2. Summary(ja): デジタルカメラから取り込んだ RAW ファイルを読むためのライブラリ
  3. Name: LibRaw
  4. Version: 0.14.6
  5. Release: 1%{?_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: lcms2-devel
  12. BuildRequires: jasper-devel
  13. Source0: http://www.libraw.org/data/LibRaw-%{version}.tar.gz
  14. %description
  15. LibRaw is a library for reading RAW files obtained from digital photo
  16. cameras (CRW/CR2, NEF, RAF, DNG, and others).
  17. LibRaw is based on the source codes of the dcraw utility, where part of
  18. drawbacks have already been eliminated and part will be fixed in future.
  19. %package devel
  20. Summary: LibRaw development libraries
  21. Summary(ja): LibRaw の開発ライブラリ
  22. Group: Development/Libraries
  23. License: LGPLv2 or CDDL o LibRaw Software License
  24. Requires: %{name} = %{version}-%{release}
  25. Requires: pkgconfig
  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. %package static
  31. Summary: LibRaw static libraries
  32. Summary(ja): LibRaw の静的ライブラリ
  33. Group: Development/Libraries
  34. License: LGPLv2 or CDDL o LibRaw Software License
  35. Requires: %{name}-devel = %{version}-%{release}
  36. %description static
  37. This package contains the static library for %{name}.
  38. %prep
  39. %setup -q -n %{name}-%{version}
  40. %build
  41. # This is not the autotools generated configure script
  42. CFLAGS="%{optflags}" sh configure --prefix=/usr --disable-examples \
  43. --disable-demosaic-pack-gpl2 --disable-demosaic-pack-gpl3 \
  44. --enable-lcms --enable-jasper
  45. make %{?_smp_mflags}
  46. %install
  47. rm -rf %{buildroot}
  48. cp -pr doc manual
  49. cp -pr doc manual
  50. chmod 644 LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt Changelog.rus
  51. chmod 644 manual/*.html
  52. # The Libraries
  53. #make install DESTDIR=%{buildroot} LIBDIR=%{_lib}
  54. %makeinstall
  55. rm -rf %{buildroot}%{_libdir}/*.la
  56. %files
  57. %defattr(-,root,root,-)
  58. %doc LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt Changelog.rus
  59. %{_libdir}/*.so.*
  60. %files devel
  61. %defattr(-,root,root,-)
  62. %doc manual samples
  63. %exclude %{_docdir}/libraw/
  64. %dir %{_includedir}/libraw
  65. %{_includedir}/libraw/*.h
  66. %{_libdir}/*.so
  67. %{_libdir}/pkgconfig/*.pc
  68. %files static
  69. %defattr(-,root,root,-)
  70. %{_libdir}/*.a
  71. %post -p /sbin/ldconfig
  72. %postun -p /sbin/ldconfig
  73. %changelog
  74. * Sat Apr 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.14.6-1
  75. - new upstream release
  76. - change BuildRequires: lcms2-devel instead of lcms-devel
  77. * Sun Jan 15 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.5-1
  78. - new upstream release
  79. * Sat Dec 17 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.4-1
  80. - new upstream release
  81. * Fri Dec 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.3-1
  82. - new upstream release
  83. - added BuildRequires: jasper-devel
  84. - fixed configure option
  85. - deleted --enable-shared=no, --enable-static=no
  86. - added --enable-jasper
  87. - fixed %%files in -devel
  88. - run ldconfig in %%post, %%postun
  89. * Thu Jun 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-3
  90. - added BuildRequires: lcms-devel
  91. - added configure option --enable-lcms
  92. * Sun Jun 05 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-2
  93. - added BuildRequires: gcc libtool make
  94. - fixed %%install
  95. - deleted library archive
  96. - fixed %%doc in -devel package
  97. * Sat Jun 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-1
  98. - new upstream release
  99. - dropt Patch0
  100. - fixed configure option
  101. - fixed %%files
  102. - splitted -static package
  103. * Mon Dec 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.11.3-1
  104. - new upstream release
  105. - added License: LibRaw Software License
  106. - dropt patch1,2
  107. - replaced patch0 by Fedora development patch
  108. * Tue Sep 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.10.0-1
  109. - new upstream release
  110. * Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-1
  111. - initial build for VineSeed
  112. * Fri Jun 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-1
  113. - New package