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