]> git.pld-linux.org Git - SPECS.git/blob - gnome-applet-hdaps.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / gnome-applet-hdaps.spec
1 %define         _realname       gnome-hdaps-applet
2 %define         _snap           20060120
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
6 Version:        0.1.%{_snap}
7 Release:        0.2
8 License:        GPL
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)
18
19 %description
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).
24
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).
30
31 %prep
32 %setup -q -c
33
34 %build
35 %{__cc} %{rpmldflags} %{rpmcflags} $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c
36
37 %install
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
43
44 ##%%find_lang hdaps-applet --with-gnome --all-name
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post
50 %gconf_schema_install %{_realname}.schemas
51 %scrollkeeper_update_post
52
53 %preun
54 %gconf_schema_uninstall %{_realname}.schemas
55
56 %postun
57 %scrollkeeper_update_postun
58
59 %files 
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
This page took 0.228644 seconds and 3 git commands to generate.