clipit-vl.spec 3.5 KB

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