clipit-vl.spec 3.3 KB

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