kcolorchooser-vl.spec 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. Name: kcolorchooser
  2. Summary: A color chooser
  3. Version: 4.7.0
  4. Release: 2%{?_dist_release}
  5. License: BSD
  6. Group: Applications/Accessories
  7. URL: https://projects.kde.org/projects/kde/kdegraphics/kcolorchooser
  8. Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.bz2
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: desktop-file-utils
  11. BuildRequires: kdelibs4-devel >= %{version}
  12. # a very basic app, maybe just a dep on kdelibs is enough here -- rex
  13. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  14. # when split occurred
  15. Conflicts: kdegraphics < 4.6.95-10
  16. %description
  17. %{summary}.
  18. %prep
  19. %setup -q
  20. %build
  21. mkdir -p %{_target_platform}
  22. pushd %{_target_platform}
  23. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  24. %cmake \
  25. -DCMAKE_BUILD_TYPE=release \
  26. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  27. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  28. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  29. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  30. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  31. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  32. ..
  33. popd
  34. make %{?_smp_mflags} -C %{_target_platform}
  35. %install
  36. rm -rf %{buildroot}
  37. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  38. %check
  39. desktop-file-validate %{buildroot}%{_datadir}/applications/kde4/%{name}.desktop
  40. %post
  41. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  42. %posttrans
  43. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  44. update-desktop-database -q &> /dev/null ||:
  45. %postun
  46. if [ $1 -eq 0 ] ; then
  47. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  48. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  49. fi
  50. %files
  51. %{_bindir}/%{name}
  52. %{_datadir}/applications/kde4/%{name}.desktop
  53. %{_datadir}/icons/hicolor/*/*/*
  54. %changelog
  55. * Sat Aug 20 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
  56. - Initial build for Vine Linux
  57. * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
  58. - 4.7.0
  59. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
  60. - 4.6.95
  61. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
  62. - License: BSD
  63. - update URL
  64. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  65. - fix Source0 URL
  66. - Conflicts: kdegraphics < 7:4.6.90-10
  67. * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1
  68. - first try