kdiff3-vl.spec 3.9 KB

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