kdiff3-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. Name: kdiff3
  2. Summary: Tool for Comparison and Merge of Files and Directories
  3. Summary(ja): ファイルやディレクトリの比較/マージを行うツール
  4. Version: 0.9.95
  5. Release: 3%{?_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: phonon-devel
  29. BuildRequires: qt4-devel >= 4.4
  30. BuildRequires: openssl-devel
  31. #BuildRequires: xorg-x11-devel
  32. Requires: kdelibs4 > 4.1
  33. %description
  34. Shows the differences line by line and character by character (!).
  35. Provides an automatic merge-facility and
  36. an integrated editor for comfortable solving of merge-conflicts.
  37. Supports KIO on KDE (allows accessing ftp, sftp, fish, smb etc.).
  38. Unicode & UTF-8 support
  39. %prep
  40. %setup -q -n %{name}-%{version}
  41. %patch0 -p1
  42. %patch1 -p1
  43. %patch2 -p1 -b .docbook_fixes
  44. %build
  45. export QTDIR=/usr/lib/qt4
  46. cmake . -DCMAKE_INSTALL_PREFIX=/usr
  47. %{__make} %{?_smp_mflags}
  48. %install
  49. %{__rm} -rf %{buildroot}
  50. make install DESTDIR=%{buildroot}
  51. # Desktop.
  52. desktop-file-install --vendor="" \
  53. --dir=$RPM_BUILD_ROOT%{_datadir}/kde4/services \
  54. $RPM_BUILD_ROOT%{_datadir}/kde4/services/kdiff3part.desktop
  55. desktop-file-install --vendor="" \
  56. --dir=$RPM_BUILD_ROOT%{_datadir}/applications/kde4 \
  57. --add-category=Development \
  58. $RPM_BUILD_ROOT%{_datadir}/applications/kde4/kdiff3.desktop
  59. # locale's
  60. %find_lang %{name} || touch %{name}.lang
  61. %find_lang %{name}plugin || touch %{name}.lang
  62. cat %{name}plugin.lang >> %{name}.lang
  63. %clean
  64. %{__rm} -rf %{buildroot}
  65. %post
  66. touch --no-create %{_datadir}/icons/hicolor || :
  67. touch --no-create %{_datadir}/icons/locolor || :
  68. %posttrans
  69. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  70. gtk-update-icon-cache %{_datadir}/icons//locolor &> /dev/null || :
  71. update-desktop-database -q &> /dev/null
  72. %postun
  73. if [ $1 -eq 0 ] ; then
  74. touch --no-create %{_datadir}/icons/hicolor || :
  75. touch --no-create %{_datadir}/icons/locolor || :
  76. gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor 2> /dev/null || :
  77. gtk-update-icon-cache --quiet %{_datadir}/icons/icons/locolor 2> /dev/null || :
  78. update-desktop-database -q &> /dev/null
  79. fi
  80. %files -f %{name}.lang
  81. %doc AUTHORS ChangeLog COPYING NEWS README TODO
  82. %{_bindir}/kdiff3
  83. %{_datadir}/applications/*
  84. %{_datadir}/doc/HTML/*
  85. %{_datadir}/kde4/apps/*
  86. %{_datadir}/kde4/services/*
  87. %{_datadir}/icons/hicolor/*
  88. %{_datadir}/icons/locolor/*
  89. %{_libdir}/kde4/*
  90. %changelog
  91. * Sat Feb 26 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.95-3
  92. - added Patch2 from FC
  93. * Tue Jul 13 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.9.95-5
  94. - ftbfs against kde-4.5 (pre)releases
  95. * Sat Jan 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.95-2
  96. - fixed BR to build on Vine Linux 5
  97. * Thu Aug 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.95-1
  98. - initial build for VineSeed
  99. * Fri Nov 21 2008 Joachim Eibl - 0.9.94-1
  100. - Untested changes for KDE4.
  101. * Mon May 15 2006 Vadim Likhota <vadim-lvv@yandex.ru> - 0.9.90-1.fc
  102. - write spec for fc/rhel/centos/asp for kdiff3