kiconedit-vl.spec 4.3 KB

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