kdiff3-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. Name: kdiff3
  2. Summary: Tool for Comparison and Merge of Files and Directories
  3. Summary(ja): ファイルやディレクトリーの比較/マージを行うツール
  4. Version: 0.9.98
  5. Release: 2%{?_dist_release}
  6. URL: http://kdiff3.sourceforge.net/
  7. License: GPLv2
  8. Group: Development/Tools
  9. Source: http://downloads.sourceforge.net/sourceforge/kdiff3/%{name}-%{version}.tar.gz
  10. # Remove bogus MimeType tag from kdiff3part.desktop
  11. #Patch0: kdiff3part.desktop.diff
  12. # Install kdiff3_part.rc into correct location
  13. #Patch1: kdiff3part.rc.diff
  14. # fix build against kde-4.5 (pre)releases
  15. #Patch2: kdiff3-0.9.95-docbook_fixes.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildRequires: desktop-file-utils
  18. BuildRequires: cmake
  19. BuildRequires: gettext
  20. BuildRequires: libICE-devel
  21. BuildRequires: libXau-devel
  22. BuildRequires: libXext-devel
  23. BuildRequires: libXdmcp-devel
  24. BuildRequires: libXft-devel
  25. BuildRequires: libXpm-devel
  26. #BuildRequires: kdelibs4-devel >= 4.1
  27. #BuildRequires: kdebase4-devel
  28. BuildRequires: kdelibs-devel >= 4.1
  29. BuildRequires: kdebase-devel
  30. BuildRequires: phonon-devel
  31. BuildRequires: qt4-devel >= 4.4
  32. BuildRequires: openssl-devel
  33. BuildRequires: soprano-devel
  34. BuildRequires: libX11-devel
  35. #Requires: kdelibs4 > 4.1
  36. Requires: kdelibs > 4.1
  37. %description
  38. Shows the differences line by line and character by character (!).
  39. Provides an automatic merge-facility and
  40. an integrated editor for comfortable solving of merge-conflicts.
  41. Supports KIO on KDE (allows accessing ftp, sftp, fish, smb etc.).
  42. Unicode & UTF-8 support
  43. %prep
  44. %setup -q -n %{name}-%{version}
  45. #%patch0 -p1
  46. #%patch1 -p1
  47. #%patch2 -p1 -b .docbook_fixes
  48. %build
  49. %ifarch %{ix86}
  50. export QTDIR=/usr/lib/qt4
  51. %endif
  52. %ifarch x86_64
  53. export QTDIR=/usr/lib64/qt4
  54. %endif
  55. cmake . -DCMAKE_INSTALL_PREFIX=/usr
  56. %{__make} %{?_smp_mflags}
  57. %install
  58. %{__rm} -rf %{buildroot}
  59. make install DESTDIR=%{buildroot}
  60. # Desktop.
  61. desktop-file-install --vendor="" \
  62. --dir=%{buildroot}%{_datadir}/kde4/services \
  63. %{buildroot}%{_datadir}/kde4/services/kdiff3part.desktop
  64. desktop-file-install --vendor="" \
  65. --dir=%{buildroot}%{_datadir}/applications/kde4 \
  66. --add-category=Development \
  67. %{buildroot}%{_datadir}/applications/kde4/kdiff3.desktop
  68. # locale's
  69. #%find_lang %{name} || touch %{name}.lang
  70. #%find_lang %{name}plugin || touch %{name}.lang
  71. #cat %{name}plugin.lang >> %{name}.lang
  72. %clean
  73. %{__rm} -rf %{buildroot}
  74. %post
  75. touch --no-create %{_datadir}/icons/hicolor || :
  76. touch --no-create %{_datadir}/icons/locolor || :
  77. %posttrans
  78. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  79. gtk-update-icon-cache %{_datadir}/icons//locolor &> /dev/null || :
  80. update-desktop-database -q &> /dev/null
  81. %postun
  82. if [ $1 -eq 0 ] ; then
  83. touch --no-create %{_datadir}/icons/hicolor || :
  84. touch --no-create %{_datadir}/icons/locolor || :
  85. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor 2> /dev/null || :
  86. gtk-update-icon-cache --quiet %{_datadir}/icons/icons/locolor 2> /dev/null || :
  87. update-desktop-database -q &> /dev/null
  88. fi
  89. %files
  90. %doc AUTHORS ChangeLog COPYING NEWS README TODO
  91. %{_bindir}/kdiff3
  92. %{_datadir}/applications/*
  93. %{_datadir}/doc/HTML/*
  94. %{_datadir}/kde4/apps/*
  95. %{_datadir}/kde4/services/*
  96. %{_datadir}/icons/hicolor/*
  97. %{_datadir}/icons/locolor/*
  98. %{_datadir}/locale/*
  99. %{_libdir}/kde4/*
  100. %changelog
  101. * Sun Jul 10 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.98-2
  102. - new upstream release
  103. * Thu Jun 16 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.98-1
  104. - new upstream release
  105. * Sun Mar 30 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.97-2
  106. - rebuilt with new toolchain
  107. * Thu Aug 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.97-1
  108. - new upstream release
  109. - deleted Patch0
  110. - changed BuildRequires: kdelibs4-devel >= 4.1, kdebase4-devel to
  111. kdelibs-devel >= 4.1, kdebase-devel
  112. - changed Requires: kdelibs4 > 4.1 to kdelibs > 4.1
  113. * Tue Sep 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.96-1
  114. - new upstream release
  115. - refreshed patch0
  116. - dropt patch1,2
  117. - added BuildRequires: libX11-devel
  118. * Sun May 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.95-4
  119. - add BuildRequires: soprano-devel
  120. * Sat Feb 26 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.95-3
  121. - added Patch2 from FC
  122. * Tue Jul 13 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.9.95-5
  123. - ftbfs against kde-4.5 (pre)releases
  124. * Sat Jan 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.95-2
  125. - fixed BR to build on Vine Linux 5
  126. * Thu Aug 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.95-1
  127. - initial build for VineSeed
  128. * Fri Nov 21 2008 Joachim Eibl - 0.9.94-1
  129. - Untested changes for KDE4.
  130. * Mon May 15 2006 Vadim Likhota <vadim-lvv@yandex.ru> - 0.9.90-1.fc
  131. - write spec for fc/rhel/centos/asp for kdiff3