kiconedit-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. Name: kiconedit
  2. Summary: An icon editor
  3. Summary(ja): アイコンエディタ
  4. Version: 4.4.0
  5. Release: 4%{?_dist_release}
  6. Group: Applications/Graphics
  7. License: GPLv2+
  8. URL: https://www.kde.org/applications/graphics/kiconedit/
  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. # update docbook version to make doc-translations build with kdelibs >= 4.5
  23. sed -i -e 's#<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4\.1\.2-Based Variant V1\.1//EN" "dtd/kdex\.dtd" \[#<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [#g' doc-translations/*_kiconedit/*/index.docbook
  24. %build
  25. mkdir -p %{_target_platform}
  26. pushd %{_target_platform}
  27. %{cmake} \
  28. -DCMAKE_BUILD_TYPE=release \
  29. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  30. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  31. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  32. ..
  33. popd
  34. make %{?_smp_mflags} -C %{_target_platform}
  35. %install
  36. rm -rf $RPM_BUILD_ROOT
  37. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  38. %find_lang %{name}
  39. HTML_DIR=$(kde4-config --expandvars --install html)
  40. if [ -d $RPM_BUILD_ROOT${HTML_DIR} ]; then
  41. for lang_dir in $RPM_BUILD_ROOT${HTML_DIR}/* ; do
  42. if [ -d ${lang_dir} ]; then
  43. lang=$(basename ${lang_dir})
  44. echo "%lang(${lang}) ${HTML_DIR}/${lang}/%{name}/" >> %{name}.lang
  45. fi
  46. done
  47. fi
  48. %check
  49. desktop-file-validate %{buildroot}%{_datadir}/applications/kde4/%{name}.desktop
  50. %clean
  51. rm -rf %{buildroot}
  52. %post
  53. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  54. %postun
  55. if [ $1 -eq 0 ] ; then
  56. update-desktop-database -q &> /dev/null
  57. touch --no-create %{_datadir}/icons/hicolor &> /dev/null
  58. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  59. fi
  60. %posttrans
  61. update-desktop-database -q &> /dev/null
  62. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  63. %files -f %{name}.lang
  64. %defattr(-,root,root,-)
  65. %doc AUTHORS COPYING COPYING.DOC NEWS
  66. %{_bindir}/kiconedit
  67. %{_datadir}/kde4/apps/kiconedit/
  68. %{_datadir}/applications/kde4/kiconedit.desktop
  69. %{_datadir}/icons/hicolor/*/*/*
  70. %changelog
  71. * Sun Jul 10 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 4.4.0-4
  72. - rebuild with gcc-5.4.0
  73. * Fri Jan 16 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 4.4.0-3
  74. - rebuilt on current VineSeed
  75. - update docbook version to make doc-translations
  76. * Sun Jul 18 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.4.0-2
  77. - added Conflicts: kdegraphics3
  78. * Mon Mar 22 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.4.0-1
  79. - new upstream release
  80. - built with new toolchain
  81. * Fri Nov 27 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.3.3-1
  82. - new upstream release
  83. * Sat Sep 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.3.1-2
  84. - initial build for Vine Linux
  85. * Tue Sep 01 2009 Sebastian Vahl <svahl@fedoraproject.org> - 4.3.1-1
  86. - 4.3.1
  87. * Tue Aug 04 2009 Than Ngo <than@redhat.com> - 4.3.0-1
  88. - 4.3.0
  89. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.4-2
  90. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  91. * Tue Jun 10 2009 Sebastian Vahl <fedora@deadbabylon.de> 4.2.4-1
  92. - 4.2.4
  93. * Mon May 11 2009 Rex Dieter <rdieter@fedoraproject.org> 4.2.3-2
  94. - fix %%_docdir/HTML/<lang> ownership
  95. * Fri May 08 2009 Rex Dieter <rdieter@fedoraproject.org> 4.2.3-1
  96. - 4.2.3
  97. - optimize scriptlets
  98. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-2
  99. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  100. * Fri Jan 23 2009 Than Ngo <than@redhat.com> - 4.2.0-1
  101. - 4.2.0
  102. * Mon Nov 17 2008 Rex Dieter <rdieter@fedoraproject.org> 4.1.3-2
  103. - scriptlet, dependency fixes
  104. * Sun Nov 09 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.1.3-1
  105. - 4.1.3
  106. * Fri Oct 03 2008 Rex Dieter <rdieter@fedoraproject.org> 4.1.2-1
  107. - 4.1.2
  108. * Fri Aug 29 2008 Than Ngo <than@redhat.com> 4.1.1-1
  109. - 4.1.1
  110. * Thu Aug 28 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.1.0-1
  111. - 4.1 (final)
  112. * Mon May 26 2008 Than Ngo <than@redhat.com> 4.0.80-1
  113. - 4.1 beta 1
  114. * Thu Apr 03 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 4.0.3-2
  115. - rebuild (again) for the fixed %%{_kde4_buildtype}
  116. * Mon Mar 31 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 4.0.3-1
  117. - update to 4.0.3
  118. - rebuild for NDEBUG and _kde4_libexecdir
  119. * Tue Mar 04 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.2-1
  120. - new upstream version: 4.0.2
  121. * Thu Feb 14 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.1-2
  122. - remove reference to KDE 4 in summary
  123. * Fri Feb 08 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.1-1
  124. - new upstream version: 4.0.1
  125. * Fri Jan 25 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.0-1
  126. - Initial version of kde-4.0.0 version