libkdcraw-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. Name: libkdcraw
  2. Summary: A C++ interface around LibRaw library
  3. Summary(ja): LibRaw ライブラリ向けの C++ インターフェース
  4. Version: 4.9.5
  5. Release: 1%{?_dist_release}
  6. # libkdcraw is GPLv2+,
  7. # LibRaw(bundled) is LGPLv2
  8. # demosaic-pack GPLv2+ GPLv3+ (addons to libraw)
  9. License: GPLv2+ and LGPLv2 and GPLv3+
  10. URL: https://projects.kde.org/projects/kde/kdegraphics/libs/libkdcraw
  11. Group: System Environment/Libraries
  12. Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.xz
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: kdelibs4-devel >= %{version}
  15. BuildRequires: lcms-devel
  16. BuildRequires: libjpeg-devel
  17. Requires: kdelibs4 >= %{version}
  18. # when split occurred
  19. Conflicts: kdegraphics-libs < 4.6.95-10
  20. # upstream plans to unbundle when libraw-1.0 is released
  21. # see also http://mail.kde.org/pipermail/digikam-devel/2010-March/041682.html
  22. Provides: bundled(LibRaw)
  23. # deomosaic-pack addons to libraw
  24. Provides: bundled(LibRaw-demosaic-pack-GPL2)
  25. Provides: bundled(LibRaw-demosaic-pack-GPL3)
  26. %description
  27. Libkdcraw is a C++ interface around LibRaw library used to decode RAW
  28. picture files. More information about LibRaw can be found at
  29. http://www.libraw.org.
  30. %package devel
  31. Summary: Development files for %{name}
  32. Summary(ja): %{name} の開発用ファイル
  33. Group: Development/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. Requires: kdelibs4-devel
  36. %description devel
  37. %{summary}.
  38. %prep
  39. %setup -q
  40. # copy/rename a few things for easier inclusion as %%doc
  41. cp -a libraw/README README.libraw
  42. cp -a libraw/COPYRIGHT COPYRIGHT.libraw
  43. %build
  44. mkdir -p %{_target_platform}
  45. pushd %{_target_platform}
  46. %cmake \
  47. -DCMAKE_BUILD_TYPE=release \
  48. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  49. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  50. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  51. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  52. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  53. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  54. ..
  55. popd
  56. make %{?_smp_mflags} -C %{_target_platform}
  57. %install
  58. rm -rf %{buildroot}
  59. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  60. %check
  61. export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig
  62. pkg-config --modversion libkdcraw
  63. make -C %{_target_platform}/test
  64. %post
  65. /sbin/ldconfig
  66. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  67. %posttrans
  68. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  69. %postun
  70. /sbin/ldconfig
  71. if [ $1 -eq 0 ] ; then
  72. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  73. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  74. fi
  75. %files
  76. %doc AUTHORS ChangeLog COPYING NEWS README TODO
  77. %doc COPYRIGHT.libraw README.libraw libraw/README.demosaic-packs libraw/LICENSE.LGPL
  78. %{_libdir}/libkdcraw.so.*
  79. %{_datadir}/kde4/apps/libkdcraw/
  80. %{_datadir}/icons/hicolor/*/*/*
  81. %files devel
  82. %{_libdir}/libkdcraw.so
  83. %{_libdir}/pkgconfig/libkdcraw.pc
  84. %{_includedir}/kde4/libkdcraw/
  85. %changelog
  86. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  87. - new upstream release
  88. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  89. - new upstream release
  90. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  91. - new upstream release
  92. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  93. - new upstream release
  94. * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  95. - new upstream release
  96. * Sun Dec 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1
  97. - new upstream release
  98. * Sat Oct 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1
  99. - new upstream release
  100. * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
  101. - Initial build for Vine Linux
  102. * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
  103. - 4.7.0
  104. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
  105. - 4.6.95
  106. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-5
  107. - License: GPLv2+ and LGPLv2 and GPLv3+
  108. - Provides: bundled(LibRaw)
  109. * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-4
  110. - fix URL
  111. - fix scriptlets
  112. * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
  113. - License: GPLv2+
  114. - %%doc: +ChangeLog NEWS
  115. - add %%check section
  116. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  117. - fix Source0 URL
  118. - Conflicts: kdegraphics < 7:4.6.90-10
  119. * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1
  120. - first try