kiconedit-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. Name: kiconedit
  2. Version: 4.3.3
  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. * Fri Nov 27 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.3.3-1
  70. - new upstream release
  71. * Sat Sep 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.3.1-2
  72. - initial build for Vine Linux
  73. * Tue Sep 01 2009 Sebastian Vahl <svahl@fedoraproject.org> - 4.3.1-1
  74. - 4.3.1
  75. * Tue Aug 04 2009 Than Ngo <than@redhat.com> - 4.3.0-1
  76. - 4.3.0
  77. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-2
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  79. * Tue Jun 10 2009 Sebastian Vahl <fedora@deadbabylon.de> 4.2.4-1
  80. - 4.2.4
  81. * Mon May 11 2009 Rex Dieter <rdieter@fedoraproject.org> 4.2.3-2
  82. - fix %%_docdir/HTML/<lang> ownership
  83. * Fri May 08 2009 Rex Dieter <rdieter@fedoraproject.org> 4.2.3-1
  84. - 4.2.3
  85. - optimize scriptlets
  86. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-2
  87. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  88. * Fri Jan 23 2009 Than Ngo <than@redhat.com> - 4.2.0-1
  89. - 4.2.0
  90. * Mon Nov 17 2008 Rex Dieter <rdieter@fedoraproject.org> 4.1.3-2
  91. - scriptlet, dependency fixes
  92. * Sun Nov 09 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.1.3-1
  93. - 4.1.3
  94. * Fri Oct 03 2008 Rex Dieter <rdieter@fedoraproject.org> 4.1.2-1
  95. - 4.1.2
  96. * Fri Aug 29 2008 Than Ngo <than@redhat.com> 4.1.1-1
  97. - 4.1.1
  98. * Thu Aug 28 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.1.0-1
  99. - 4.1 (final)
  100. * Mon May 26 2008 Than Ngo <than@redhat.com> 4.0.80-1
  101. - 4.1 beta 1
  102. * Thu Apr 03 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 4.0.3-2
  103. - rebuild (again) for the fixed %%{_kde4_buildtype}
  104. * Mon Mar 31 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 4.0.3-1
  105. - update to 4.0.3
  106. - rebuild for NDEBUG and _kde4_libexecdir
  107. * Tue Mar 04 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.2-1
  108. - new upstream version: 4.0.2
  109. * Thu Feb 14 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.1-2
  110. - remove reference to KDE 4 in summary
  111. * Fri Feb 08 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.1-1
  112. - new upstream version: 4.0.1
  113. * Fri Jan 25 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.0-1
  114. - Initial version of kde-4.0.0 version