kcoloredit-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. %define iversion 2.0.0
  2. Name: kcoloredit
  3. Version: 4.4.0
  4. Release: 1%{?_dist_release}
  5. Summary: A color palette Editor
  6. Summary(ja): カラーパレットエディタ
  7. Group: Applications/Accessories
  8. License: GPLv2+
  9. URL: http://www.kde.org
  10. Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/extragear/kcoloredit-%{iversion}-kde%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. #BuildRequires: kde-filesystem >= 4
  13. BuildRequires: kdelibs4-devel >= 4
  14. BuildRequires: desktop-file-utils
  15. BuildRequires: gettext
  16. BuildRequires: cmake
  17. Requires: kdelibs4 >= %{version}
  18. Requires(post): xdg-utils
  19. Requires(postun): xdg-utils
  20. %description
  21. KColorEdit is a palette files editor. It can be used for editing
  22. color palettes and for color choosing and naming.
  23. %prep
  24. %setup -qn kcoloredit-%{iversion}-kde%{version}
  25. %build
  26. mkdir -p %{_target_platform}
  27. pushd %{_target_platform}
  28. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  29. %{cmake} \
  30. -DCMAKE_BUILD_TYPE=release \
  31. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  32. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  33. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  34. ..
  35. popd
  36. make %{?_smp_mflags} -C %{_target_platform}
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  40. # validate desktop file
  41. desktop-file-install --vendor "" \
  42. --dir $RPM_BUILD_ROOT%{_datadir}/applications/kde4 \
  43. $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
  44. %find_lang %{name}
  45. HTML_DIR=$(kde4-config --expandvars --install html)
  46. if [ -d $RPM_BUILD_ROOT${HTML_DIR} ]; then
  47. for lang_dir in $RPM_BUILD_ROOT${HTML_DIR}/* ; do
  48. if [ -d ${lang_dir} ]; then
  49. lang=$(basename ${lang_dir})
  50. echo "%lang(${lang}) ${HTML_DIR}/${lang}/%{name}/" >> %{name}.lang
  51. fi
  52. done
  53. fi
  54. %clean
  55. rm -rf $RPM_BUILD_ROOT
  56. %post
  57. xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
  58. %postun
  59. xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
  60. %files -f %{name}.lang
  61. %defattr(-,root,root,-)
  62. %doc AUTHORS COPYING README
  63. %{_bindir}/kcoloredit
  64. %{_datadir}/kde4/apps/kcoloredit/
  65. %{_datadir}/applications/kde4/kcoloredit.desktop
  66. %{_datadir}/icons//hicolor/*/*/kcoloredit.png
  67. %changelog
  68. * Mon Mar 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.4.0-1
  69. - new upstream release
  70. - built with new toolchain
  71. * Fri Nov 27 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.3.3-1
  72. - new upstream release
  73. * Sat Sep 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.3.1-2
  74. - initial build for Vine Linux
  75. * Tue Sep 01 2009 Sebastian Vahl <svahl@fedoraproject.org> - 4.3.1-1
  76. - 4.3.1
  77. * Tue Aug 04 2009 Than Ngo <than@redhat.com> - 4.3.0-1
  78. - 4.3.0
  79. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-2
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  81. * Tue Jun 10 2009 Sebastian Vahl <fedora@deadbabylon.de> - 4.2.4-1
  82. - 4.2.4
  83. * Tue May 12 2009 Sebastian Vahl <fedora@deadbabylon.de> - 4.2.3-1
  84. - 4.2.3
  85. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-2
  86. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  87. * Fri Jan 23 2009 Than Ngo <than@redhat.com> - 4.2.0-1
  88. - 4.2.0
  89. * Mon Nov 17 2008 Rex Dieter <rdieter@fedoraproject.org> 4.1.3-2
  90. - dependency fixes, cosmetics
  91. * Fri Nov 14 2008 Than Ngo <than@redhat.com> 4.1.3-1
  92. - 4.1.3
  93. * Sat Oct 04 2008 Than Ngo <than@redhat.com> 4.1.2-1
  94. - 4.1.2
  95. * Fri Aug 29 2008 Than Ngo <than@redhat.com> 4.1.1-1
  96. - 4.1.1
  97. * Thu Aug 28 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.1-1
  98. - 4.1 (final)
  99. * Mon May 26 2008 Than Ngo <than@redhat.com> 4.0.80-1
  100. - 4.1 beta1
  101. * Thu Apr 03 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 4.0.3-2
  102. - rebuild (again) for the fixed %%{_kde4_buildtype}
  103. * Mon Mar 31 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 4.0.3-1
  104. - update to 4.0.3
  105. - rebuild for NDEBUG and _kde4_libexecdir
  106. * Tue Mar 04 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.2-1
  107. - new upstream version: 4.0.2
  108. * Thu Feb 14 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.1-2
  109. - remove reference to KDE 4 in summary
  110. * Fri Feb 08 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.1-1
  111. - new upstream version: 4.0.1
  112. * Fri Jan 25 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.0-1
  113. - Initial version of kde-4.0.0 version