kcoloredit-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. %define iversion 2.0.0
  2. Name: kcoloredit
  3. Version: 4.4.0
  4. Release: 3%{?_dist_release}
  5. Summary: A color palette Editor
  6. Summary(ja): カラーパレットエディタ
  7. Group: Applications/Graphics
  8. License: GPLv2+
  9. URL: https://www.kde.org/applications/graphics/kcoloredit/
  10. Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/extragear/kcoloredit-%{iversion}-kde%{version}.tar.bz2
  11. ## upstream patches
  12. # fix FTBFS with the new stricter ld in F13 (#564815): explicitly link libX11
  13. Patch100: kcoloredit-2.0.0-kde4.4.0-ftbfs.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. #BuildRequires: kde-filesystem >= 4
  16. BuildRequires: kdelibs4-devel >= 4
  17. BuildRequires: desktop-file-utils
  18. BuildRequires: gettext
  19. BuildRequires: cmake
  20. Requires: kdelibs4 >= %{version}
  21. Requires(post): xdg-utils
  22. Requires(postun): xdg-utils
  23. %description
  24. KColorEdit is a palette files editor. It can be used for editing
  25. color palettes and for color choosing and naming.
  26. %prep
  27. %setup -qn kcoloredit-%{iversion}-kde%{version}
  28. %patch100 -p1 -b .ftbfs
  29. %build
  30. mkdir -p %{_target_platform}
  31. pushd %{_target_platform}
  32. %{cmake} \
  33. -DCMAKE_BUILD_TYPE=release \
  34. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  35. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  36. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  37. ..
  38. popd
  39. make %{?_smp_mflags} -C %{_target_platform}
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  43. # validate desktop file
  44. desktop-file-install --vendor "" \
  45. --dir $RPM_BUILD_ROOT%{_datadir}/applications/kde4 \
  46. $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
  47. %find_lang %{name}
  48. HTML_DIR=$(kde4-config --expandvars --install html)
  49. if [ -d $RPM_BUILD_ROOT${HTML_DIR} ]; then
  50. for lang_dir in $RPM_BUILD_ROOT${HTML_DIR}/* ; do
  51. if [ -d ${lang_dir} ]; then
  52. lang=$(basename ${lang_dir})
  53. echo "%lang(${lang}) ${HTML_DIR}/${lang}/%{name}/" >> %{name}.lang
  54. fi
  55. done
  56. fi
  57. %clean
  58. rm -rf $RPM_BUILD_ROOT
  59. %post
  60. xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
  61. %postun
  62. xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
  63. %files -f %{name}.lang
  64. %defattr(-,root,root,-)
  65. %doc AUTHORS COPYING README
  66. %{_bindir}/kcoloredit
  67. %{_datadir}/kde4/apps/kcoloredit/
  68. %{_datadir}/applications/kde4/kcoloredit.desktop
  69. %{_datadir}/icons//hicolor/*/*/kcoloredit.png
  70. %changelog
  71. * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> - 4.4.0-3
  72. - rebuild with gcc-5.4.0
  73. * Fri Jan 16 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 4.4.0-2
  74. - rebuilt on current VineSeed
  75. - added Patch100 from Fedora
  76. * Sat Feb 13 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 4.4.0-2
  77. - fix FTBFS with the new stricter ld in F13 (#564815): explicitly link libX11
  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. * Tue May 12 2009 Sebastian Vahl <fedora@deadbabylon.de> - 4.2.3-1
  94. - 4.2.3
  95. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-2
  96. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  97. * Fri Jan 23 2009 Than Ngo <than@redhat.com> - 4.2.0-1
  98. - 4.2.0
  99. * Mon Nov 17 2008 Rex Dieter <rdieter@fedoraproject.org> 4.1.3-2
  100. - dependency fixes, cosmetics
  101. * Fri Nov 14 2008 Than Ngo <than@redhat.com> 4.1.3-1
  102. - 4.1.3
  103. * Sat Oct 04 2008 Than Ngo <than@redhat.com> 4.1.2-1
  104. - 4.1.2
  105. * Fri Aug 29 2008 Than Ngo <than@redhat.com> 4.1.1-1
  106. - 4.1.1
  107. * Thu Aug 28 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.1-1
  108. - 4.1 (final)
  109. * Mon May 26 2008 Than Ngo <than@redhat.com> 4.0.80-1
  110. - 4.1 beta1
  111. * Thu Apr 03 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 4.0.3-2
  112. - rebuild (again) for the fixed %%{_kde4_buildtype}
  113. * Mon Mar 31 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 4.0.3-1
  114. - update to 4.0.3
  115. - rebuild for NDEBUG and _kde4_libexecdir
  116. * Tue Mar 04 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.2-1
  117. - new upstream version: 4.0.2
  118. * Thu Feb 14 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.1-2
  119. - remove reference to KDE 4 in summary
  120. * Fri Feb 08 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.1-1
  121. - new upstream version: 4.0.1
  122. * Fri Jan 25 2008 Sebastian Vahl <fedora@deadbabylon.de> 4.0.0-1
  123. - Initial version of kde-4.0.0 version