summaryrefslogtreecommitdiff
path: root/ups-monitor.spec
blob: 895799ed9ae33ee05fd799ee3d2e64fede44f2a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# TODO:
# - .desktop
Summary:	A graphical UPS monitor for the GNOME desktop
Summary(pl):	Graficzny monitor UPS-a dla środowiska GNOME
Name:		ups-monitor
Version:	0.5
Release:	0.1
License:	GPL
Group:		Applications/System
Source0:	http://www.amautacorp.com/staff/Rudd-O/ups-monitor/files/%{name}-%{version}.tar.gz
# Source0-md5:	368ad1a69c2ce68bb8735c400e982745
URL:		http://www.amautacorp.com/staff/Rudd-O/ups-monitor/
Requires:	python-pygtk >= 2.0.0
Requires:	python-pygtk-glade >= 2.0.0
Requires:	nut
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
UPS monitor is a graphical application that lets you monitor your UPS
in real-time. You can check locally attached UPSs or networked UPS.

UPS monitor requires a working Network UPS Tools (nut) server.

%description -l pl
UPS monitor jest graficzną aplikacją pozwalającą monitorować UPS w
czasie rzeczywistym. Obsługuje zarówno lokalny jak i sieciowy UPS.

UPS monitor wymaga serwer Network UPS Tools (nut).

%prep
%setup -q

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_pixmapsdir},%{_desktopdir}}

install	%{name}			$RPM_BUILD_ROOT%{_bindir}
install	%{name}.glade*		$RPM_BUILD_ROOT%{_datadir}/ups-monitor
install	*.png			$RPM_BUILD_ROOT%{_datadir}/ups-monitor
install	%{name}.png		$RPM_BUILD_ROOT%{_pixmapsdir}
#install	%{name}.desktop		$RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README NEWS TODO
%attr(755,root,root) %{_bindir}/ups-monitor
%{_datadir}/%{name}
%{_pixmapsdir}/*
#%{_desktopdir}/*