libksane-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. Name: libksane
  2. Summary: SANE Library interface for KDE
  3. Summary(ja): KDE 用の SANE ライブラリインターフェース
  4. Version: 4.11.1
  5. Release: 1%{?_dist_release}
  6. License: LGPLv2+
  7. Group: System Environment/Libraries
  8. URL: https://projects.kde.org/projects/kde/kdegraphics/libs/libksane
  9. Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.xz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: kdelibs4-devel >= %{version}
  12. BuildRequires: sane-devel
  13. #BuildRequires: sane-backends-devel
  14. Requires: kdelibs4 >= %{version}
  15. # when split occurred
  16. Conflicts: kdegraphics-libs < 4.6.95-10
  17. %description
  18. %{summary}.
  19. %package devel
  20. Summary: Development files for %{name}
  21. Summary(ja): %{name} の開発用ファイル
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. Requires: kdelibs4-devel
  25. %description devel
  26. %{summary}.
  27. %prep
  28. %setup -q
  29. %build
  30. mkdir -p %{_target_platform}
  31. pushd %{_target_platform}
  32. %cmake \
  33. -DCMAKE_BUILD_TYPE=release \
  34. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  35. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  36. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  37. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  38. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  39. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  40. ..
  41. popd
  42. make %{?_smp_mflags} -C %{_target_platform}
  43. %install
  44. rm -rf $RPM_BUILD_ROOT
  45. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  46. %check
  47. export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_datadir}/pkgconfig:$RPM_BUILD_ROOT%{_libdir}/pkgconfig
  48. pkg-config --modversion libksane
  49. %post
  50. /sbin/ldconfig
  51. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  52. %posttrans
  53. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  54. %postun
  55. /sbin/ldconfig
  56. if [ $1 -eq 0 ] ; then
  57. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  58. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  59. fi
  60. %files
  61. %doc AUTHORS COPYING.LIB README TODO
  62. %{_libdir}/libksane.so.*
  63. %{_datadir}/icons/hicolor/*/*/*
  64. %files devel
  65. %{_libdir}/libksane.so
  66. %{_libdir}/pkgconfig/libksane.pc
  67. %{_libdir}/cmake/KSane/
  68. %{_includedir}/kde4/libksane/
  69. %changelog
  70. * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  71. - new upstream release
  72. * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
  73. - new upstream release
  74. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  75. - new upstream release
  76. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  77. - new upstream release
  78. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  79. - new upstream release
  80. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  81. - new upstream release
  82. * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  83. - new upstream release
  84. * Sun Dec 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1
  85. - new upstream release
  86. * Sat Oct 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1
  87. - new upstream release
  88. * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
  89. - Initial build for Vine Linux
  90. * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
  91. - 4.7.0
  92. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
  93. - 4.5.95
  94. * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-4
  95. - fix URL
  96. * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
  97. - %%doc COPYING.LIB
  98. - add basic %%check section
  99. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  100. - fix Source0 URL
  101. - fix scriptlets
  102. - Conflicts: kdegraphics < 7:4.6.90-10
  103. * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1
  104. - first try