diffuse-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. Name: diffuse
  2. Version: 0.4.7
  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. 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. #sed -i 's|Categories=Development;GTK;TextEditor;TextTools;|Categories=Development;GTK;Utility;|g' \
  27. # src/usr/share/applications/%{name}.desktop
  28. %build
  29. %install
  30. rm -rf %{buildroot}
  31. python install.py --destdir=%{buildroot} --prefix=/usr
  32. desktop-file-install --vendor="" \
  33. --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
  34. --delete-original \
  35. ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
  36. #desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
  37. %find_lang %{name}
  38. %clean
  39. rm -rf %{buildroot}
  40. %post
  41. scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
  42. update-desktop-database &> /dev/null || :
  43. %postun
  44. scrollkeeper-update -q || :
  45. update-desktop-database &> /dev/null || :
  46. %files -f %{name}.lang
  47. %defattr(-,root,root,-)
  48. %dir %{_datadir}/gnome/help/*
  49. #%dir %{_datadir}/gnome/help/%{name}/ru/*
  50. #%dir %{_datadir}/gnome/help/%{name}/it/*
  51. %dir %{_datadir}/omf/%{name}
  52. %{_bindir}/%{name}
  53. %{_datadir}/%{name}/
  54. %{_datadir}/applications/%{name}.desktop
  55. %{_datadir}/gnome/help/%{name}/*
  56. %{_datadir}/omf/%{name}/%{name}*.omf
  57. %{_datadir}/pixmaps/%{name}.png
  58. %config(noreplace) %{_sysconfdir}/diffuserc
  59. %{_mandir}/*
  60. %doc AUTHORS ChangeLog COPYING README
  61. %changelog
  62. * Thu May 23 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.7-1
  63. - new upstream release
  64. - changed Requires(post,postun): rarian-compat instead of scrollkeeper
  65. - disabled modifing .desktop
  66. * Wed Feb 29 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.6-2
  67. - rebuilt with python-2.7
  68. - fixed %%files
  69. * Sun Nov 06 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.6-1
  70. - new upstream release
  71. * Thu Jul 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.5-1
  72. - new upstream release
  73. * Fri Oct 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.4.4-1
  74. - new upstream release
  75. - changed desktop file install action
  76. * Tue Aug 10 2010 Jon Levell <fedora@coralbark.net> - 0.4.3-1
  77. - Update to 0.4.3 upstream release
  78. * Thu Sep 17 2009 Jon Levell <fedora@coralbark.net> - 0.4.0-1
  79. - Update to new upstream release
  80. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-2
  81. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  82. * Sat Jul 4 2009 Jon Levell <fedora@coralbark.net> - 0.3.4-1
  83. - Update to new upstream release (patch no longer needed)
  84. * Tue Jun 30 2009 Jon Levell <fedora@coralbark.net> - 0.3.3-1
  85. - Update to latest upstream release
  86. - Add patch provided by upstream
  87. * Tue Mar 10 2009 Jon Levell <fedora@coralbark.net> - 0.3.1-1
  88. - Update to latest upstream release
  89. * Wed Feb 11 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-4
  90. - Validate the .desktop file
  91. - Use the prescribed forms for scrollkeeper/update-desktop-database
  92. - Clean up the unowned directories
  93. * Sat Jan 24 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-3
  94. - Fix typos in formatting of changelog
  95. - Fix buildroot in line with packaging guidelines
  96. - Updated defattr with default directory permissions
  97. * Wed Jan 21 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-2
  98. - Use macros in file paths
  99. - patch .desktop file to add trailing semi-colons
  100. - updated URL/source/group
  101. * Tue Jan 20 2009 Jon Levell <fedora@coralbark.net> - 0.2.15-1
  102. - clean buildroot on install
  103. - conditional use scrollkeeper/update-desktop-database
  104. - updated release/license as per Fedora guidelines
  105. - first version submitted to Fedora
  106. * Sun Apr 27 2008 Derrick Moser <derrick_moser@yahoo.com>
  107. - created initial diffuse package