nanny-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")}
  2. %define pkg_version 2.31.1
  3. %define pkg_release 2%{?_dist_release}
  4. Summary: An easy way to control what your kids are doing in the computer.
  5. Summary(ja): 子どもがコンピュータ上で操作できる内容を簡単に制限する
  6. Name: nanny
  7. Version: %{pkg_version}
  8. Release: %{pkg_release}
  9. Source0: %{name}-%{version}.tar.bz2
  10. Source1: initd.nanny
  11. Patch0: nanny-fix-admin-console-desktop.patch
  12. License: GPL2
  13. Group: Applications/System
  14. URL: http://projects.gnome.org/nanny/
  15. Requires: python >= 2.6
  16. Requires: gnome-python-libgtop2
  17. Requires: python-hachoir-regex
  18. Requires: python-imaging
  19. Requires: python-twisted
  20. BuildRequires: python-devel >= 2.6
  21. BuildRequires: glib2-devel >= 2.16.0
  22. BuildRequires: gtk2-devel >= 2.17.4
  23. BuildRequires: gnome-desktop-devel >= 2.26.0
  24. BuildRequires: GConf2-devel >= 2.16.0
  25. BuildRequires: cairo-devel
  26. BuildRequires: dbus-glib-devel
  27. BuildRequires: dbus-python-devel
  28. BuildRequires: glade3-devel
  29. BuildRequires: libgtop2-devel
  30. BuildRequires: pango-devel
  31. BuildRequires: pygtk2-devel
  32. BuildRequires: python-twisted
  33. BuildRequires: python-imaging
  34. BuildRequires: python-hachoir-regex
  35. BuildRequires: gnome-python-libgtop2
  36. BuildRequires: gnome-doc-utils >= 0.3.2
  37. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  38. Vendor: Project Vine
  39. Distribution: Vine Linux
  40. Packager: Takemikaduchi
  41. %description
  42. Gnome Nanny is an easy way to control what your kids are doing in the computer.
  43. You can limit how much time a day each one of them is browsing the web, chatting
  44. or doing email. You can also decide at which times of the day the can do this
  45. things. Gnome Nanny filters what web pages are seen by each user, so you can block
  46. all undesirable webs and have your kids enjoy the internet with ease of mind,
  47. no more worries!
  48. %prep
  49. %setup -q
  50. %patch0
  51. %build
  52. %configure --with-init-scripts=redhat
  53. %{__make} %{?_smp_mflags}
  54. %install
  55. %{__rm} -rf ${RPM_BUILD_ROOT}
  56. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  57. install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/nanny
  58. %find_lang %{name} --with-gnome
  59. %clean
  60. %{__rm} -rf ${RPM_BUILD_ROOT}
  61. %post
  62. touch --no-create %{_datadir}/icons/hicolor & > /dev/null
  63. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  64. update-desktop-database &> /dev/null ||:
  65. %postun
  66. update-desktop-database -q & > /dev/null || :
  67. if [ $1 -eq 0 ]; then
  68. touch --no-create %{_datadir}/icons/hicolor & > /dev/null
  69. %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor & > /dev/null
  70. fi
  71. %files -f %{name}.lang
  72. %defattr(-,root,root)
  73. %doc COPYING ChangeLog NEWS README
  74. %config %{_sysconfdir}/dbus-1/system.d/nanny-daemon.conf
  75. %{_sysconfdir}/%{name}/applists/*
  76. %{_sysconfdir}/rc.d/init.d/nanny
  77. %{_sysconfdir}/xdg/autostart/nanny-systray.desktop
  78. %{_bindir}/nanny-systray
  79. %{python_sitelib}/%{name}/*
  80. %{_sbindir}/nanny-admin-console
  81. %{_sbindir}/nanny-desktop-blocker
  82. %{_datadir}/applications/nanny-admin-console.desktop
  83. %{_datadir}/icons/hicolor/*/apps/*
  84. %{_datadir}/%{name}/*
  85. %{_datadir}/polkit-1/actions/org.gnome.nanny.policy
  86. %changelog
  87. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.31.1-2
  88. - rebuild with python-2.7.2
  89. * Sat Aug 20 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.31.1-1
  90. - initial build for Vine Linux