libksane-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. Name: libksane
  2. Summary: SANE Library interface for KDE
  3. Version: 4.7.2
  4. Release: 1%{?_dist_release}
  5. License: LGPLv2+
  6. Group: System Environment/Libraries
  7. URL: https://projects.kde.org/projects/kde/kdegraphics/libs/libksane
  8. Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.bz2
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: kdelibs4-devel >= %{version}
  11. BuildRequires: sane-devel
  12. #BuildRequires: sane-backends-devel
  13. Requires: kdelibs4 >= 4.7.0
  14. # when split occurred
  15. Conflicts: kdegraphics-libs < 4.6.95-10
  16. %description
  17. %{summary}.
  18. %package devel
  19. Summary: Development files for %{name}
  20. Group: Development/Libraries
  21. Requires: %{name} = %{version}-%{release}
  22. Requires: kdelibs4-devel
  23. %description devel
  24. %{summary}.
  25. %prep
  26. %setup -q
  27. %build
  28. mkdir -p %{_target_platform}
  29. pushd %{_target_platform}
  30. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  31. %cmake \
  32. -DCMAKE_BUILD_TYPE=release \
  33. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  34. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  35. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  36. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  37. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  38. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  39. ..
  40. popd
  41. make %{?_smp_mflags} -C %{_target_platform}
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  45. %check
  46. export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_datadir}/pkgconfig:$RPM_BUILD_ROOT%{_libdir}/pkgconfig
  47. pkg-config --modversion libksane
  48. %post
  49. /sbin/ldconfig
  50. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  51. %posttrans
  52. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  53. %postun
  54. /sbin/ldconfig
  55. if [ $1 -eq 0 ] ; then
  56. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  57. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  58. fi
  59. %files
  60. %doc AUTHORS COPYING.LIB README TODO
  61. %{_libdir}/libksane.so.0*
  62. %{_datadir}/icons/hicolor/*/*/*
  63. %files devel
  64. %{_libdir}/libksane.so
  65. %{_libdir}/pkgconfig/libksane.pc
  66. %{_libdir}/cmake/KSane/
  67. %{_includedir}/kde4/libksane/
  68. %changelog
  69. * Sat Oct 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1
  70. - new upstream release
  71. * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
  72. - Initial build for Vine Linux
  73. * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
  74. - 4.7.0
  75. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
  76. - 4.5.95
  77. * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-4
  78. - fix URL
  79. * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
  80. - %%doc COPYING.LIB
  81. - add basic %%check section
  82. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  83. - fix Source0 URL
  84. - fix scriptlets
  85. - Conflicts: kdegraphics < 7:4.6.90-10
  86. * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1
  87. - first try