update-notifier-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. %define name update-notifier
  2. %define version 0.70.4
  3. %define release 1%{?_dist_release}
  4. Summary: Application which notifies about package updates
  5. Summary(ja): パッケージの更新を通知するアプリケーション
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Source0: %{name}_%{version}.tar.gz
  10. Source1: apt-check.vine
  11. Source2: markupgrade.lua
  12. Source3: update-notifier.conf
  13. Source4: update-notifier.lua
  14. Source5: update-notifier.cron
  15. Source100: update-notifier-0.70.4-ja.po
  16. License: GPL
  17. Group: Applications/System
  18. URL: https://launchpad.net/ubuntu/+source/update-notifier
  19. Requires: apt, synaptic, notification-daemon, vixie-cron, anacron
  20. BuildRequires: gtk2-devel, libgnomeui-devel, libglade2-devel
  21. BuildRequires: GConf2-devel, hal-devel, dbus-glib-devel, libnotify-devel
  22. BuildRequires: perl-XML-Parser
  23. Requires(post): GConf2
  24. Requires(postun): GConf2
  25. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  26. %description
  27. Update Notifier will check for the availability of new packages for your
  28. system on a daily basis. When it detects new versions of the packages
  29. installed on the system are available, it will add an icon on the desktop
  30. notification area.
  31. It will work with any Desktop system that implements the FreeDesktop
  32. notification area specification, like GNOME, KDE and XFCE.
  33. %description -l ja
  34. Update Notifier は更新可能なパッケージがないか1日1回自動的にチェックします。
  35. システムにインストールされたパッケージのより新しいバージョンを検出すると、
  36. デスクトップの通知エリアにアイコンを表示します。
  37. このアプリケーションは freedesktop.org の notification area speficification
  38. に準拠しているので、GNOME や KDE、XFCE など、どうようなデスクトップ環境でも
  39. 利用できます。
  40. %prep
  41. %setup -q -n %{name}-%{version}
  42. %{__cp} %{SOURCE100} po/ja.po
  43. %build
  44. %configure --disable-schemas-install
  45. %{__make}
  46. %install
  47. %{__rm} -rf ${RPM_BUILD_ROOT}
  48. # seems configure option --disable-schemas-install is ignoring...
  49. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  50. %makeinstall schemadir=${RPM_BUILD_ROOT}/%{_sysconfdir}/gconf/schemas
  51. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  52. %find_lang %{name}
  53. # create local state directory
  54. %{__install} -d -m755 ${RPM_BUILD_ROOT}/%{_localstatedir}/lib/update-notifier
  55. %{__install} -d -m755 ${RPM_BUILD_ROOT}/%{_localstatedir}/lib/update-notifier/user.d
  56. # install additional script for vine
  57. %{__install} -m755 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_libdir}/update-notifier/apt-check
  58. %{__install} -m755 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_libdir}/update-notifier/markupgrade.lua
  59. %{__install} -d -m755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/apt/apt.conf.d
  60. %{__install} -m644 %{SOURCE3} ${RPM_BUILD_ROOT}/%{_sysconfdir}/apt/apt.conf.d/update-notifier.conf
  61. %{__install} -d -m755 ${RPM_BUILD_ROOT}/%{_datadir}/apt/scripts
  62. %{__install} -m755 %{SOURCE4} ${RPM_BUILD_ROOT}/%{_datadir}/apt/scripts/update-notifier.lua
  63. # install cron script
  64. %{__install} -d -m755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily
  65. %{__install} -m755 %{SOURCE5} ${RPM_BUILD_ROOT}/%{_sysconfdir}/cron.daily/update-notifier.cron
  66. %post
  67. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  68. gconftool-2 --makefile-install-rule \
  69. %{_sysconfdir}/gconf/schemas/update-notifier.schemas > /dev/null;
  70. %preun
  71. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  72. gconftool-2 --makefile-uninstall-rule \
  73. %{_sysconfdir}/gconf/schemas/update-notifier.schemas >/dev/null;
  74. %clean
  75. %{__rm} -rf ${RPM_BUILD_ROOT}
  76. %files -f %{name}.lang
  77. %defattr(-,root,root)
  78. %doc AUTHORS COPYING ChangeLog HOOKS INSTALL NEWS README TODO
  79. %{_sysconfdir}/apt/apt.conf.d/update-notifier.conf
  80. %{_sysconfdir}/cron.daily/update-notifier.cron
  81. %{_sysconfdir}/gconf/schemas/update-notifier.schemas
  82. %{_sysconfdir}/xdg/autostart/update-notifier.desktop
  83. %{_bindir}/update-notifier
  84. %{_datadir}/apt/scripts/update-notifier.lua
  85. %{_datadir}/icons/hicolor
  86. %{_datadir}/update-notifier/glade
  87. %{_datadir}/update-notifier/notify-reboot-required
  88. %{_libdir}/update-notifier
  89. %dir %{_localstatedir}/lib/update-notifier
  90. %dir %{_localstatedir}/lib/update-notifier/user.d
  91. %changelog
  92. * Mon Oct 13 2008 Shu KONNO <owa@bg.wakwak.com> 0.70.4-1vl5
  93. - applied new versioning policy, spec in utf-8
  94. * Mon Mar 03 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.70.4-0vl2
  95. - add Source100 (updated japanese message).
  96. * Sun Feb 24 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.70.4-0vl1
  97. - initial build for Vine Linux