1 %define _realname gnome-hdaps-applet
3 Summary: GNOME-based panel applet for monitoring the HDAPS protection status
4 Summary(pl.UTF-8): Aplet panelu GNOME do monitorowania stanu zabezpieczenia HDAPS
5 Name: gnome-applet-hdaps
9 Group: X11/Applications
10 Source0: http://www.zen24593.zen.co.uk/hdaps/%{_realname}-%{_snap}.tar.gz
11 # Source0-md5: 43ff308ccf5d15625e9f8f157bfc4bbc
12 URL: http://www.zen24593.zen.co.uk/hdaps/
13 BuildRequires: gnome-panel-devel >= 2.4.0
14 BuildRequires: pkgconfig
15 BuildRequires: rpmbuild(macros) >= 1.197
16 Requires(post,postun): scrollkeeper
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Monitors the /sys/block/xxx/queue/protect file and displays a
21 graphical representation of the HDAPS protection status. Looks for the
22 protect file under hda and sda and will use whichever is found first
23 (lame but works for now).
25 %description -l pl.UTF-8
26 Ten aplet monitoruje plik /sys/block/xxx/queue/protect i wyświetla
27 graficzną reprezentację stanu zabezpieczenia HDAPS. Szuka pliku
28 protect w katalogach hda i sda i używa tego, który znajdzie jako
29 pierwszy (prymitywne, ale działa).
35 %{__cc} %{rpmldflags} %{rpmcflags} $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/bonobo/servers/,%{_pixmapsdir}/%{_realname}}
40 install %{_realname} $RPM_BUILD_ROOT%{_bindir}
41 install *.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{_realname}
42 install *.server $RPM_BUILD_ROOT%{_libdir}/bonobo/servers
44 ##%%find_lang hdaps-applet --with-gnome --all-name
47 rm -rf $RPM_BUILD_ROOT
50 %gconf_schema_install %{_realname}.schemas
51 %scrollkeeper_update_post
54 %gconf_schema_uninstall %{_realname}.schemas
57 %scrollkeeper_update_postun
60 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_bindir}/%{_realname}
62 %{_libdir}/bonobo/servers/*.server
63 %{_pixmapsdir}/%{_realname}
64 %{_pixmapsdir}/%{_realname}/*.png