diffuse-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. Name: diffuse
  2. Version: 0.4.8
  3. Release: 1%{?_dist_release}
  4. Summary: Graphical tool for comparing and merging text files
  5. Summary(ja): テキストファイルをマージして比較するためのグラフィックツール
  6. Group: Development/Tools
  7. License: GPLv2+
  8. URL: http://%{name}.sourceforge.net/
  9. Source0: http://dl.sf.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
  10. BuildRequires: desktop-file-utils gettext hicolor-icon-theme rarian-compat
  11. Requires: python >= 2.4 pygtk2 >= 2.10
  12. #Requires(post): scrollkeeper
  13. #Requires(postun): scrollkeeper
  14. Requires(post): rarian-compat
  15. Requires(postun): rarian-compat
  16. BuildArch: noarch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. %description
  19. Diffuse is a graphical tool for merging and comparing text files. Diffuse is
  20. able to compare an arbitrary number of files side-by-side and gives users the
  21. ability to manually adjust line matching and directly edit files. Diffuse can
  22. also retrieve revisions of files from Bazaar, CVS, Darcs, Git, Mercurial,
  23. Monotone, Subversion, and SVK repositories for comparison and merging.
  24. %prep
  25. %setup -q
  26. %build
  27. %install
  28. rm -rf %{buildroot}
  29. python install.py --destdir=%{buildroot} --prefix=/usr
  30. desktop-file-install --vendor="" \
  31. --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
  32. --delete-original \
  33. ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
  34. %find_lang %{name}
  35. %check
  36. desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
  37. %clean
  38. rm -rf %{buildroot}
  39. %post
  40. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  41. update-desktop-database &> /dev/null || :
  42. %postun
  43. if [ $1 -eq 0 ] ; then
  44. touch --no-create %{_datadir}/icons/hicolor &> /dev/null
  45. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  46. fi
  47. update-desktop-database &> /dev/null || :
  48. %posttrans
  49. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  50. %files -f %{name}.lang
  51. %defattr(-,root,root,-)
  52. %dir %{_datadir}/gnome/help/*
  53. %dir %{_datadir}/omf/%{name}
  54. %{_bindir}/%{name}
  55. %{_datadir}/%{name}/
  56. %{_datadir}/applications/%{name}.desktop
  57. %{_datadir}/gnome/help/%{name}/*
  58. %{_datadir}/omf/%{name}/%{name}*.omf
  59. %{_datadir}/icons/hicolor/*/apps/%{name}.png
  60. %config(noreplace) %{_sysconfdir}/diffuserc
  61. %{_mandir}/*
  62. %doc AUTHORS ChangeLog COPYING README
  63. %changelog
  64. * Fri Aug 29 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.8-1
  65. - new upstream release
  66. - replaced BuildRequires: scrollkeeper to rarian-compat
  67. - added BuildRequires: hicolor-icon-theme
  68. - run gtk-update-icon-cache in %%post, %%postun, %%posttrans
  69. * Thu May 23 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.7-1
  70. - new upstream release
  71. - changed Requires(post,postun): rarian-compat instead of scrollkeeper
  72. - disabled modifing .desktop
  73. * Wed Feb 29 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.6-2
  74. - rebuilt with python-2.7
  75. - fixed %%files
  76. * Sun Nov 06 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.6-1
  77. - new upstream release
  78. * Thu Jul 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.5-1
  79. - new upstream release
  80. * Fri Oct 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.4-1
  81. - new upstream release
  82. - changed desktop file install action
  83. * Tue Aug 10 2010 Jon Levell <fedora@coralbark.net> - 0.4.3-1
  84. - Update to 0.4.3 upstream release
  85. * Thu Sep 17 2009 Jon Levell <fedora@coralbark.net> - 0.4.0-1
  86. - Update to new upstream release
  87. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-2
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  89. * Sat Jul 4 2009 Jon Levell <fedora@coralbark.net> - 0.3.4-1
  90. - Update to new upstream release (patch no longer needed)
  91. * Tue Jun 30 2009 Jon Levell <fedora@coralbark.net> - 0.3.3-1
  92. - Update to latest upstream release
  93. - Add patch provided by upstream
  94. * Tue Mar 10 2009 Jon Levell <fedora@coralbark.net> - 0.3.1-1
  95. - Update to latest upstream release
  96. * Wed Feb 11 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-4
  97. - Validate the .desktop file
  98. - Use the prescribed forms for scrollkeeper/update-desktop-database
  99. - Clean up the unowned directories
  100. * Sat Jan 24 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-3
  101. - Fix typos in formatting of changelog
  102. - Fix buildroot in line with packaging guidelines
  103. - Updated defattr with default directory permissions
  104. * Wed Jan 21 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-2
  105. - Use macros in file paths
  106. - patch .desktop file to add trailing semi-colons
  107. - updated URL/source/group
  108. * Tue Jan 20 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-1
  109. - clean buildroot on install
  110. - conditional use scrollkeeper/update-desktop-database
  111. - updated release/license as per Fedora guidelines
  112. - first version submitted to Fedora
  113. * Sun Apr 27 2008 Derrick Moser <derrick_moser@yahoo.com>
  114. - created initial diffuse package