kuickshow-vl.spec 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. Name: kuickshow
  2. Summary: a very fast and comfortable imageviewer for KDE
  3. Version: 0.9.1
  4. Release: 1%{?_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. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. KuickShow is an image browser/viewer with a nice filebrowser to select
  18. images to be shown, slideshow support and the ability to display the
  19. following image formats: jpg, gif, tiff, png, bmp, psd, xpm, xbm, pbm
  20. and eim. Images can be displayed either in their own window, as large
  21. as the image, or fullscreen (which shrinks images too large to display).
  22. KuickShow also has a slideshow mode.
  23. %prep
  24. %setup -q -n %{name}-%{version}-kde4.4.0
  25. %build
  26. unset QTDIR || : ; . /etc/profile.d/qt.sh
  27. mkdir -p %{_target_platform}
  28. pushd %{_target_platform}
  29. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  30. %{cmake} \
  31. -DCMAKE_BUILD_TYPE=release \
  32. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  33. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  34. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  35. ..
  36. popd
  37. make %{?_smp_mflags} -C %{_target_platform}
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. make install/fast -C %{_target_platform} DESTDIR=$RPM_BUILD_ROOT
  41. %find_lang %{name}
  42. %check
  43. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/kuickshow.desktop
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %post
  47. touch --no-create %{_datadir}/icons/hicolor ||:
  48. %postun
  49. if [ $1 -eq 0 ] ; then
  50. gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
  51. update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 ||:
  52. fi
  53. %posttrans
  54. gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
  55. update-desktop-database -q %{_datadir}/applications > /dev/null 2>&1 ||:
  56. %files -f %{name}.lang
  57. %defattr(-,root,root,755)
  58. %{_bindir}/kuickshow
  59. %{_libdir}/libkdeinit4_*.so
  60. %{_datadir}/applications/kde4/*.desktop
  61. %{_datadir}/kde4/apps/kuickshow/
  62. %{_datadir}/icons/hicolor/*/*/*
  63. %{_datadir}/doc/HTML/*/kuickshow/
  64. %changelog
  65. * Fri Jul 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.1-1
  66. - initial build for Vine Linux