kdiff3-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. Name: kdiff3
  2. Version: 0.9.95
  3. Release: 1%{?_dist_release}
  4. URL: http://kdiff3.sourceforge.net/
  5. License: GPLv2
  6. Summary: Tool for Comparison and Merge of Files and Directories
  7. Summary(ja): ファイルやディレクトリの比較/マージを行うツール
  8. Group: Development/Tools
  9. Source: http://downloads.sourceforge.net/sourceforge/kdiff3/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. # Remove bogus MimeType tag from kdiff3part.desktop
  12. Patch0: kdiff3part.desktop.diff
  13. # Install kdiff3_part.rc into correct location
  14. Patch1: kdiff3part.rc.diff
  15. Requires: kdelibs > 4.1
  16. BuildRequires: desktop-file-utils
  17. BuildRequires: cmake
  18. BuildRequires: gettext
  19. BuildRequires: libICE-devel
  20. BuildRequires: libXau-devel
  21. BuildRequires: libXext-devel
  22. BuildRequires: libXdmcp-devel
  23. BuildRequires: libXft-devel
  24. BuildRequires: libXpm-devel
  25. BuildRequires: kdelibs-devel >= 4.1
  26. BuildRequires: kdebase-devel
  27. BuildRequires: phonon-devel
  28. BuildRequires: qt4-devel >= 4.4
  29. BuildRequires: openssl-devel
  30. BuildRequires: xorg-x11-devel
  31. %description
  32. Shows the differences line by line and character by character (!).
  33. Provides an automatic merge-facility and
  34. an integrated editor for comfortable solving of merge-conflicts.
  35. Supports KIO on KDE (allows accessing ftp, sftp, fish, smb etc.).
  36. Unicode & UTF-8 support
  37. %prep
  38. %setup -q -n %{name}-%{version}
  39. %patch0 -p1
  40. %patch1 -p1
  41. %build
  42. export QTDIR=/usr/lib/qt4
  43. cmake . -DCMAKE_INSTALL_PREFIX=/usr
  44. %{__make} %{?_smp_mflags}
  45. %install
  46. %{__rm} -rf %{buildroot}
  47. make install DESTDIR=%{buildroot}
  48. # Desktop.
  49. desktop-file-install --vendor="" \
  50. --dir=$RPM_BUILD_ROOT%{_datadir}/kde4/services \
  51. $RPM_BUILD_ROOT%{_datadir}/kde4/services/kdiff3part.desktop
  52. desktop-file-install --vendor="" \
  53. --dir=$RPM_BUILD_ROOT%{_datadir}/applications/kde4 \
  54. --add-category=Development \
  55. $RPM_BUILD_ROOT%{_datadir}/applications/kde4/kdiff3.desktop
  56. # locale's
  57. %find_lang %{name} || touch %{name}.lang
  58. %find_lang %{name}plugin || touch %{name}.lang
  59. cat %{name}plugin.lang >> %{name}.lang
  60. %clean
  61. %{__rm} -rf %{buildroot}
  62. %post
  63. touch --no-create %{_datadir}/icons/hicolor || :
  64. touch --no-create %{_datadir}/icons/locolor || :
  65. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor 2> /dev/null || :
  66. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/locolor 2> /dev/null || :
  67. %postun
  68. touch --no-create %{_datadir}/icons/hicolor || :
  69. touch --no-create %{_datadir}/icons/locolor || :
  70. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor 2> /dev/null || :
  71. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/icons/locolor 2> /dev/null || :
  72. %files -f %{name}.lang
  73. %doc AUTHORS ChangeLog COPYING NEWS README TODO
  74. %{_bindir}/kdiff3
  75. %{_datadir}/applications/*
  76. %{_datadir}/doc/HTML/*
  77. %{_datadir}/kde4/apps/*
  78. %{_datadir}/kde4/services/*
  79. %{_datadir}/icons/hicolor/*
  80. %{_datadir}/icons/locolor/*
  81. %{_libdir}/kde4/*
  82. %changelog
  83. * Thu Aug 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.95-1
  84. - initial build for VineSeed
  85. * Fri Nov 21 2008 Joachim Eibl - 0.9.94-1
  86. - Untested changes for KDE4.
  87. * Mon May 15 2006 Vadim Likhota <vadim-lvv@yandex.ru> - 0.9.90-1.fc
  88. - write spec for fc/rhel/centos/asp for kdiff3