clipit-vl.spec 2.8 KB

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