diffuse-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. Name: diffuse
  2. Version: 0.4.6
  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 scrollkeeper
  11. Requires: python >= 2.4 pygtk2 >= 2.10
  12. Requires(post): scrollkeeper
  13. Requires(postun): scrollkeeper
  14. BuildArch: noarch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. %description
  17. Diffuse is a graphical tool for merging and comparing text files. Diffuse is
  18. able to compare an arbitrary number of files side-by-side and gives users the
  19. ability to manually adjust line matching and directly edit files. Diffuse can
  20. also retrieve revisions of files from Bazaar, CVS, Darcs, Git, Mercurial,
  21. Monotone, Subversion, and SVK repositories for comparison and merging.
  22. %prep
  23. %setup -q
  24. sed -i 's|Categories=Development;GTK;TextEditor;TextTools;|Categories=Development;GTK;Utility;|g' \
  25. src/usr/share/applications/%{name}.desktop
  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. #desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
  35. %find_lang %{name}
  36. %clean
  37. rm -rf %{buildroot}
  38. %post
  39. scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
  40. update-desktop-database &> /dev/null || :
  41. %postun
  42. scrollkeeper-update -q || :
  43. update-desktop-database &> /dev/null || :
  44. %files -f %{name}.lang
  45. %defattr(-,root,root,-)
  46. %{_bindir}/%{name}
  47. %{_datadir}/%{name}/
  48. %{_datadir}/applications/%{name}.desktop
  49. %{_datadir}/gnome/help/%{name}/C/diffuse.xml
  50. %{_datadir}/omf/%{name}/%{name}*.omf
  51. %{_datadir}/pixmaps/%{name}.png
  52. %config(noreplace) %{_sysconfdir}/diffuserc
  53. %{_mandir}/*
  54. %dir %{_datadir}/gnome/help/*
  55. %dir %{_datadir}/gnome/help/%{name}/ru/*
  56. %dir %{_datadir}/gnome/help/%{name}/it/*
  57. %dir %{_datadir}/omf/%{name}
  58. %doc AUTHORS ChangeLog COPYING README
  59. %changelog
  60. * Sun Nov 06 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.6-1
  61. - new upstream release
  62. * Thu Jul 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.5-1
  63. - new upstream release
  64. * Fri Oct 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.4-1
  65. - new upstream release
  66. - changed desktop file install action
  67. * Tue Aug 10 2010 Jon Levell <fedora@coralbark.net> - 0.4.3-1
  68. - Update to 0.4.3 upstream release
  69. * Thu Sep 17 2009 Jon Levell <fedora@coralbark.net> - 0.4.0-1
  70. - Update to new upstream release
  71. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-2
  72. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  73. * Sat Jul 4 2009 Jon Levell <fedora@coralbark.net> - 0.3.4-1
  74. - Update to new upstream release (patch no longer needed)
  75. * Tue Jun 30 2009 Jon Levell <fedora@coralbark.net> - 0.3.3-1
  76. - Update to latest upstream release
  77. - Add patch provided by upstream
  78. * Tue Mar 10 2009 Jon Levell <fedora@coralbark.net> - 0.3.1-1
  79. - Update to latest upstream release
  80. * Wed Feb 11 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-4
  81. - Validate the .desktop file
  82. - Use the prescribed forms for scrollkeeper/update-desktop-database
  83. - Clean up the unowned directories
  84. * Sat Jan 24 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-3
  85. - Fix typos in formatting of changelog
  86. - Fix buildroot in line with packaging guidelines
  87. - Updated defattr with default directory permissions
  88. * Wed Jan 21 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-2
  89. - Use macros in file paths
  90. - patch .desktop file to add trailing semi-colons
  91. - updated URL/source/group
  92. * Tue Jan 20 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-1
  93. - clean buildroot on install
  94. - conditional use scrollkeeper/update-desktop-database
  95. - updated release/license as per Fedora guidelines
  96. - first version submitted to Fedora
  97. * Sun Apr 27 2008 Derrick Moser <derrick_moser@yahoo.com>
  98. - created initial diffuse package