diffuse-vl.spec 3.8 KB

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