libksane-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. Name: libksane
  2. Summary: SANE Library interface for KDE
  3. Summary(ja): KDE 用の SANE ライブラリインターフェース
  4. Version: 4.14.3
  5. Release: 2%{?_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: kdelibs-devel >= %{version}
  12. BuildRequires: sane-devel
  13. #BuildRequires: sane-backends-devel
  14. Requires: kdelibs >= %{version}
  15. # when split occurred
  16. Conflicts: kdegraphics-libs < 4.6.95-10
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. %description
  20. %{summary}.
  21. %package devel
  22. Summary: Development files for %{name}
  23. Summary(ja): %{name} の開発用ファイル
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. Requires: kdelibs-devel
  27. %description devel
  28. %{summary}.
  29. %prep
  30. %setup -q
  31. %build
  32. mkdir -p %{_target_platform}
  33. pushd %{_target_platform}
  34. %cmake \
  35. -DCMAKE_BUILD_TYPE=release \
  36. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  37. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  38. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  39. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  40. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  41. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  42. ..
  43. popd
  44. make %{?_smp_mflags} -C %{_target_platform}
  45. %install
  46. rm -rf $RPM_BUILD_ROOT
  47. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  48. %check
  49. export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_datadir}/pkgconfig:$RPM_BUILD_ROOT%{_libdir}/pkgconfig
  50. pkg-config --modversion libksane
  51. %post
  52. /sbin/ldconfig
  53. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  54. %posttrans
  55. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  56. %postun
  57. /sbin/ldconfig
  58. if [ $1 -eq 0 ] ; then
  59. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  60. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  61. fi
  62. %files
  63. %doc AUTHORS COPYING.LIB README TODO
  64. %{_libdir}/libksane.so.*
  65. %{_datadir}/icons/hicolor/*/*/*
  66. %files devel
  67. %{_libdir}/libksane.so
  68. %{_libdir}/pkgconfig/libksane.pc
  69. %{_libdir}/cmake/KSane/
  70. %{_includedir}/kde4/libksane/
  71. %changelog
  72. * Wed Jul 06 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-2
  73. - rebuild with gcc-5.4.0
  74. * Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
  75. - new upstream release
  76. * Tue May 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
  77. - new upstream release
  78. * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
  79. - new upstream release
  80. * Sun Dec 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
  81. - new upstream release
  82. * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  83. - new upstream release
  84. * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
  85. - new upstream release
  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.5.95
  106. * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-4
  107. - fix URL
  108. * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
  109. - %%doc COPYING.LIB
  110. - add basic %%check section
  111. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  112. - fix Source0 URL
  113. - fix scriptlets
  114. - Conflicts: kdegraphics < 7:4.6.90-10
  115. * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1
  116. - first try