diffuse-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. Name: diffuse
  2. Version: 0.4.5
  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. * Thu Jul 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.5-1
  61. - new upstream release
  62. * Fri Oct 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.4-1
  63. - new upstream release
  64. - changed desktop file install action
  65. * Tue Aug 10 2010 Jon Levell <fedora@coralbark.net> - 0.4.3-1
  66. - Update to 0.4.3 upstream release
  67. * Thu Sep 17 2009 Jon Levell <fedora@coralbark.net> - 0.4.0-1
  68. - Update to new upstream release
  69. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-2
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  71. * Sat Jul 4 2009 Jon Levell <fedora@coralbark.net> - 0.3.4-1
  72. - Update to new upstream release (patch no longer needed)
  73. * Tue Jun 30 2009 Jon Levell <fedora@coralbark.net> - 0.3.3-1
  74. - Update to latest upstream release
  75. - Add patch provided by upstream
  76. * Tue Mar 10 2009 Jon Levell <fedora@coralbark.net> - 0.3.1-1
  77. - Update to latest upstream release
  78. * Wed Feb 11 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-4
  79. - Validate the .desktop file
  80. - Use the prescribed forms for scrollkeeper/update-desktop-database
  81. - Clean up the unowned directories
  82. * Sat Jan 24 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-3
  83. - Fix typos in formatting of changelog
  84. - Fix buildroot in line with packaging guidelines
  85. - Updated defattr with default directory permissions
  86. * Wed Jan 21 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-2
  87. - Use macros in file paths
  88. - patch .desktop file to add trailing semi-colons
  89. - updated URL/source/group
  90. * Tue Jan 20 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-1
  91. - clean buildroot on install
  92. - conditional use scrollkeeper/update-desktop-database
  93. - updated release/license as per Fedora guidelines
  94. - first version submitted to Fedora
  95. * Sun Apr 27 2008 Derrick Moser <derrick_moser@yahoo.com>
  96. - created initial diffuse package