LibRaw-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. Summary: Library for reading RAW files obtained from digital photo cameras
  2. Summary(ja): デジタルカメラから取り込んだ RAW ファイルを読むためのライブラリ
  3. Name: LibRaw
  4. Version: 0.14.5
  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. * Sun Jan 15 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.5-1
  73. - new upstream release
  74. * Sat Dec 17 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.4-1
  75. - new upstream release
  76. * Fri Dec 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.14.3-1
  77. - new upstream release
  78. - added BuildRequires: jasper-devel
  79. - fixed configure option
  80. - deleted --enable-shared=no, --enable-static=no
  81. - added --enable-jasper
  82. - fixed %%files in -devel
  83. - run ldconfig in %%post, %%postun
  84. * Thu Jun 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-3
  85. - added BuildRequires: lcms-devel
  86. - added configure option --enable-lcms
  87. * Sun Jun 05 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-2
  88. - added BuildRequires: gcc libtool make
  89. - fixed %%install
  90. - deleted library archive
  91. - fixed %%doc in -devel package
  92. * Sat Jun 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.5-1
  93. - new upstream release
  94. - dropt Patch0
  95. - fixed configure option
  96. - fixed %%files
  97. - splitted -static package
  98. * Mon Dec 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.11.3-1
  99. - new upstream release
  100. - added License: LibRaw Software License
  101. - dropt patch1,2
  102. - replaced patch0 by Fedora development patch
  103. * Tue Sep 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.10.0-1
  104. - new upstream release
  105. * Wed Jul 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.1-1
  106. - initial build for VineSeed
  107. * Fri Jun 04 2010 Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> 0.9.1-1
  108. - New package