kuickshow-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Name: kuickshow
  2. Summary: a very fast and comfortable imageviewer for KDE
  3. Version: 0.9.1
  4. Release: 2%{?_dist_release}
  5. Group: Applications/Graphics
  6. License: GPLv2+
  7. URL: http://kuickshow.sourceforge.net/
  8. Source0: ftp://ftp.kde.org/pub/kde/stable/4.4.0/src/extragear/%{name}-%{version}-kde4.4.0.tar.bz2
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: desktop-file-utils
  11. BuildRequires: gettext
  12. BuildRequires: kdelibs4-devel
  13. BuildRequires: imlib-devel
  14. BuildRequires: qt4-devel
  15. BuildRequires: libXpm-devel
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. KuickShow is an image browser/viewer with a nice filebrowser to select
  20. images to be shown, slideshow support and the ability to display the
  21. following image formats: jpg, gif, tiff, png, bmp, psd, xpm, xbm, pbm
  22. and eim. Images can be displayed either in their own window, as large
  23. as the image, or fullscreen (which shrinks images too large to display).
  24. KuickShow also has a slideshow mode.
  25. %prep
  26. %setup -q -n %{name}-%{version}-kde4.4.0
  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. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  34. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  35. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  36. ..
  37. popd
  38. make %{?_smp_mflags} -C %{_target_platform}
  39. %install
  40. rm -rf $RPM_BUILD_ROOT
  41. make install/fast -C %{_target_platform} DESTDIR=$RPM_BUILD_ROOT
  42. %find_lang %{name}
  43. %check
  44. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/kuickshow.desktop
  45. %clean
  46. rm -rf $RPM_BUILD_ROOT
  47. %post
  48. touch --no-create %{_datadir}/icons/hicolor ||:
  49. %postun
  50. if [ $1 -eq 0 ] ; then
  51. gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
  52. update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 ||:
  53. fi
  54. %posttrans
  55. gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
  56. update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 ||:
  57. %files -f %{name}.lang
  58. %defattr(-,root,root,755)
  59. %{_bindir}/kuickshow
  60. %{_libdir}/libkdeinit4_*.so
  61. %{_datadir}/applications/kde4/*.desktop
  62. %{_datadir}/kde4/apps/kuickshow/
  63. %{_datadir}/icons/hicolor/*/*/*
  64. %{_datadir}/doc/HTML/*/kuickshow/
  65. %changelog
  66. * Sun May 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.1-2
  67. - add BuildRequires: qt4-devel, libXpm-devel
  68. * Fri Jul 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.1-1
  69. - initial build for Vine Linux