dcbb62a57ad15033ad74be3cceaecc9149f8f091
[packages/gDesklets-PsiSensorPackage.git] / gDesklets-PsiSensorPackage.spec
1 %define pname   PsiSensorPackage
2 Summary:        This package contains all Psi sensors
3 Summary(pl):    Ten pakiet zawiera wszystkie czujniki Psi
4 Name:           gDesklets-%{pname}
5 Version:        20031028
6 Release:        2
7 License:        GPL
8 Group:          X11/Applications
9 Source0:        http://gdesklets.gnomedesktop.org/files/%{pname}-%{version}.tar.bz2
10 # Source0-md5:  24c891e1d0f66426040b4e4fb618f9f5
11 URL:            http://gdesklets.gnomedesktop.org/categories.php?func=gd_show_app&gd_app_id=38
12 BuildRequires:  python >= 2.3
13 BuildRequires:  python-pygtk-gtk >= 1.99.18
14 Requires:       gDesklets
15 Provides:       gDesklets-sensor
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define _sensorsdir     %{_datadir}/gdesklets/Sensors
19
20 %description
21 This package contains all Psi sensors.
22
23 %description -l pl
24 Ten pakiet zawiera wszystkie czujniki Psi.
25
26 %prep
27 %setup -q -c
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT%{_sensorsdir}
32
33 # Don't include FontSelector here - it's in gDesklets package
34 SENSORS="CPU Disk ExternalInterval IconButton Memo MemoOver Memory Network Ping popmail Theme VariableBorder"
35
36 for i in $SENSORS; do
37         cd $i-*
38         [ -f ChangeLog ] && mv ChangeLog ChangeLog-$i
39         [ -f README ] && mv README README-$i
40         
41         ./Install_${i}_Sensor.bin --nomsg \
42                 $RPM_BUILD_ROOT%{_sensorsdir}
43                 
44         cd ..
45 done
46
47 rm -rf $RPM_BUILD_ROOT%{_sensorsdir}/*/{.order,ChangeLog,Makefile*}
48
49 %py_comp $RPM_BUILD_ROOT%{_sensorsdir}
50 %py_ocomp $RPM_BUILD_ROOT%{_sensorsdir}
51
52 rm -f $RPM_BUILD_ROOT%{_sensorsdir}/*/*.py
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc */ChangeLog-* */README-*
60 %{_sensorsdir}/*
This page took 0.048428 seconds and 2 git commands to generate.