libkdcraw-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. Name: libkdcraw
  2. Summary: A C++ interface around LibRaw library
  3. Summary(ja): LibRaw ライブラリ向けの C++ インターフェース
  4. Version: 4.7.4
  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.bz2
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: kdelibs4-devel >= %{version}
  15. BuildRequires: lcms-devel
  16. BuildRequires: libjpeg-devel
  17. Requires: kdelibs4 >= 4.7
  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. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  47. %cmake \
  48. -DCMAKE_BUILD_TYPE=release \
  49. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  50. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  51. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  52. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  53. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  54. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  55. ..
  56. popd
  57. make %{?_smp_mflags} -C %{_target_platform}
  58. %install
  59. rm -rf %{buildroot}
  60. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  61. %check
  62. export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig
  63. pkg-config --modversion libkdcraw
  64. make -C %{_target_platform}/test
  65. %post
  66. /sbin/ldconfig
  67. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  68. %posttrans
  69. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  70. %postun
  71. /sbin/ldconfig
  72. if [ $1 -eq 0 ] ; then
  73. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  74. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  75. fi
  76. %files
  77. %doc AUTHORS ChangeLog COPYING NEWS README TODO
  78. %doc COPYRIGHT.libraw README.libraw libraw/README.demosaic-packs libraw/LICENSE.LGPL
  79. %{_libdir}/libkdcraw.so.20*
  80. %{_datadir}/kde4/apps/libkdcraw/
  81. %{_datadir}/icons/hicolor/*/*/*
  82. %files devel
  83. %{_libdir}/libkdcraw.so
  84. %{_libdir}/pkgconfig/libkdcraw.pc
  85. %{_includedir}/kde4/libkdcraw/
  86. %changelog
  87. * Sun Dec 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1
  88. - new upstream release
  89. * Sat Oct 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1
  90. - new upstream release
  91. * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
  92. - Initial build for Vine Linux
  93. * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
  94. - 4.7.0
  95. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
  96. - 4.6.95
  97. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-5
  98. - License: GPLv2+ and LGPLv2 and GPLv3+
  99. - Provides: bundled(LibRaw)
  100. * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-4
  101. - fix URL
  102. - fix scriptlets
  103. * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
  104. - License: GPLv2+
  105. - %%doc: +ChangeLog NEWS
  106. - add %%check section
  107. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  108. - fix Source0 URL
  109. - Conflicts: kdegraphics < 7:4.6.90-10
  110. * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1
  111. - first try