clipit-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. Name: clipit
  2. Version: 1.4.2
  3. Release: 1%{?_dist_release}
  4. Summary: lightweight GTK+ clipboard manager
  5. Summary(ja): 軽量な GTK+ クリップボードマネージャ
  6. Group: Applications/Accessories
  7. License: GPLv3
  8. URL: http://gtk%{name}.sourceforge.net/
  9. Source0: %{name}-%{version}.tar.gz
  10. #Source1: %{name}_ja.po
  11. Patch0: delete_unity.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: gtk2-devel >= 2.10.0, glib2-devel >= 2.14.0
  14. BuildRequires: desktop-file-utils, intltool >= 0.23
  15. BuildRequires: gettext
  16. BuildRequires: perl-XML-Parser
  17. Requires: xdotool
  18. %description
  19. ClipIt is a lightweight, fully featured GTK+ clipboard manager.
  20. It was forked from Parcellite (http://parcellite.sourceforge.net),
  21. adding additional features and bugfixes to the project.
  22. %description -l ja
  23. ClipIt は軽量で十分な機能を備えた GTK+ のクリップボードマネージャです。
  24. Parcellite (http://parcellite.sourceforge.net) からフォークし、
  25. プロジェクトに追加機能とバグフィックスを加えています。
  26. %prep
  27. %setup -q
  28. #cp -f %{SOURCE1} po/ja.po
  29. %patch0 -p1
  30. %build
  31. %configure --enable-appindicator=no
  32. make %{?_smp_mflags}
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
  36. %find_lang %{name}
  37. desktop-file-install --vendor="" \
  38. --delete-original \
  39. --remove-category=Application \
  40. --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
  41. ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
  42. desktop-file-install --vendor="" \
  43. --dir=${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart/ \
  44. ${RPM_BUILD_ROOT}%{_sysconfdir}/xdg/autostart/%{name}-startup.desktop
  45. %clean
  46. rm -rf $RPM_BUILD_ROOT
  47. %post
  48. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  49. %postun
  50. if [ $1 -eq 0 ] ; then
  51. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  52. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  53. fi
  54. %posttrans
  55. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  56. %files -f %{name}.lang
  57. %defattr(-,root,root,-)
  58. %doc AUTHORS ChangeLog COPYING README NEWS
  59. %config(noreplace) %{_sysconfdir}/xdg/autostart/%{name}-startup.desktop
  60. %{_bindir}/%{name}
  61. %{_datadir}/applications/%{name}.desktop
  62. %{_datadir}/icons/hicolor/
  63. %{_mandir}/man1/%{name}.1.gz
  64. %changelog
  65. * Sat Apr 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.4.2-1
  66. - new upstream release
  67. - dropt source1 to add Japanese translation
  68. - added patch0 to delete unity key in desktop file
  69. - added Requires: xdotool
  70. * Tue Jun 07 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.4.1-1
  71. - new upstream release
  72. - updated source1
  73. - added configure option --enable-appindicator=no
  74. - run gtk-update-icon-cache
  75. * Fri Jan 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.3.11-2
  76. - added source1 to translate modified Japanese
  77. * Wed Jan 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.3.11-1
  78. - initial build for VineSeed