kolourpaint-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. Name: kolourpaint
  2. Summary: An easy-to-use paint program
  3. Summary(ja): 簡単に使えるペイントツール
  4. Version: 4.7.0
  5. Release: 2%{?_dist_release}
  6. License: BSD
  7. Group: Applications/Graphics
  8. URL: https://projects.kde.org/projects/kde/kdegraphics/kolourpaint
  9. Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.bz2
  10. BuildRequires: desktop-file-utils
  11. BuildRequires: kdelibs4-devel >= %{version}
  12. BuildRequires: qimageblitz-devel
  13. Requires: %{name}-libs%{?_isa} = %{version}-%{release}
  14. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  15. # when split occurred
  16. Conflicts: kdegraphics < 4.6.95-10
  17. %description
  18. %{summary}.
  19. %package libs
  20. Summary: Runtime libraries for %{name}
  21. Summary(ja): %{name} のランタイムライブラリ
  22. Requires: %{name} = %{version}-%{release}
  23. License: LGPLv2
  24. %description libs
  25. %{summary}.
  26. %prep
  27. %setup -q
  28. %build
  29. mkdir -p %{_target_platform}
  30. pushd %{_target_platform}
  31. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  32. %cmake \
  33. -DCMAKE_BUILD_TYPE=release \
  34. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  35. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  36. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  37. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  38. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  39. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  40. ..
  41. popd
  42. make %{?_smp_mflags} -C %{_target_platform}
  43. %install
  44. rm -rf $RPM_BUILD_ROOT
  45. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  46. ## unpackaged files
  47. rm -fv $RPM_BUILD_ROOT%{_libdir}/libkolourpaint_lgpl.so
  48. %check
  49. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
  50. %clean
  51. rm -rf $RPM_BUILD_ROOT
  52. %post
  53. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  54. %posttrans
  55. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  56. update-desktop-database -q &> /dev/null ||:
  57. %postun
  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. %post libs -p /sbin/ldconfig
  63. %postun libs -p /sbin/ldconfig
  64. %files
  65. %doc AUTHORS BUGS ChangeLog COPYING NEWS README
  66. %{_bindir}/%{name}
  67. %{_datadir}/kde4/apps/%{name}/
  68. %{_datadir}/applications/kde4/%{name}.desktop
  69. %{_datadir}/icons/hicolor/*/*/*
  70. %{_docdir}/HTML/en/%{name}/
  71. %files libs
  72. %{_libdir}/libkolourpaint_lgpl.so.4*
  73. %changelog
  74. * Sun Aug 21 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
  75. - Initial build for Vine Linux
  76. * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
  77. - 4.7.0
  78. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
  79. - 4.6.95
  80. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
  81. - License: BSD, -libs: License: LGPLv2
  82. - fix URL
  83. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  84. - fix Source0 URL
  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