LibRaw-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. Summary: Library for reading RAW files obtained from digital photo cameras
  2. Summary(ja): デジタルカメラから取り込んだ RAW ファイルを読むためのライブラリ
  3. Name: LibRaw
  4. Version: 0.14.4
  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: lcms-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. %description devel
  25. LibRaw development libraries
  26. This package contains static libraries that applications can use to build
  27. against libraw. LibRaw does not provide dynamic libraries.
  28. %package static
  29. Summary: LibRaw static libraries
  30. Summary(ja): LibRaw の静的ライブラリ
  31. Group: Development/Libraries
  32. License: LGPLv2 or CDDL o LibRaw Software License
  33. Requires: %{name}-devel = %{version}-%{release}
  34. %description static
  35. This package contains the static library for %{name}.
  36. %prep
  37. %setup -q -n %{name}-%{version}
  38. %build
  39. # This is not the autotools generated configure script
  40. CFLAGS="%{optflags}" sh configure --prefix=/usr --disable-examples \
  41. --disable-demosaic-pack-gpl2 --disable-demosaic-pack-gpl3 \
  42. --enable-lcms --enable-jasper
  43. make %{?_smp_mflags}
  44. %install
  45. rm -rf %{buildroot}
  46. cp -pr doc manual
  47. cp -pr doc manual
  48. chmod 644 LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt Changelog.rus
  49. chmod 644 manual/*.html
  50. # The Libraries
  51. #make install DESTDIR=%{buildroot} LIBDIR=%{_lib}
  52. %makeinstall
  53. rm -rf %{buildroot}%{_libdir}/*.la
  54. %files
  55. %defattr(-,root,root,-)
  56. %doc LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt Changelog.rus
  57. %{_libdir}/*.so.*
  58. %files devel
  59. %defattr(-,root,root,-)
  60. %doc manual samples
  61. %exclude %{_docdir}/libraw/
  62. %dir %{_includedir}/libraw
  63. %{_includedir}/libraw/*.h
  64. %{_libdir}/*.so
  65. %{_libdir}/pkgconfig/*.pc
  66. %files static
  67. %defattr(-,root,root,-)
  68. %{_libdir}/*.a
  69. %post -p /sbin/ldconfig
  70. %postun -p /sbin/ldconfig
  71. %changelog
  72. * Sat Dec 17 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.4-1
  73. - new upstream release
  74. * Fri Dec 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.3-1
  75. - new upstream release
  76. - added BuildRequires: jasper-devel
  77. - fixed configure option
  78. - deleted --enable-shared=no, --enable-static=no
  79. - added --enable-jasper
  80. - fixed %%files in -devel
  81. - run ldconfig in %%post, %%postun
  82. * Thu Jun 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-3
  83. - added BuildRequires: lcms-devel
  84. - added configure option --enable-lcms
  85. * Sun Jun 05 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-2
  86. - added BuildRequires: gcc libtool make
  87. - fixed %%install
  88. - deleted library archive
  89. - fixed %%doc in -devel package
  90. * Sat Jun 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-1
  91. - new upstream release
  92. - dropt Patch0
  93. - fixed configure option
  94. - fixed %%files
  95. - splitted -static package
  96. * Mon Dec 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.11.3-1
  97. - new upstream release
  98. - added License: LibRaw Software License
  99. - dropt patch1,2
  100. - replaced patch0 by Fedora development patch
  101. * Tue Sep 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.10.0-1
  102. - new upstream release
  103. * Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-1
  104. - initial build for VineSeed
  105. * Fri Jun 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-1
  106. - New package