kiconedit-vl.spec 4.4 KB

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