]> git.pld-linux.org Git - SPECS.git/blob - wmnut.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / wmnut.spec
1 Summary:        Dockable UPS Monitor
2 Summary(pl.UTF-8):      Dokowalny monitor UPS-ów
3 Name:           wmnut
4 Version:        0.60
5 Release:        1
6 License:        GPL
7 Group:          X11/Window Managers/Tools
8 Source0:        http://wmnut.tuxfamily.org/files/%{name}-%{version}.tar.bz2
9 # Source0-md5:  b37429c06fc4e5b80fc668a5f1401f74
10 Patch0:         %{name}-ksh.patch
11 URL:            http://wmnut.tuxfamily.org/
12 BuildRequires:  XFree86-devel
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  nut-devel >= 1.4.0-1.2
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 WMNUT is an UPS/Battery Monitor. It is used to visually display and
20 interpret details of UPS/Battery status via NUT - Network UPS Tools
21 framework. WMNUT is dockable using WindowMaker and AfterStep window
22 managers.
23
24 %description -l pl.UTF-8
25 WMNUT jest monitorem stanu UPS-a i baterii. Służy do wizualnego
26 pokazywania i interpretacji szczegółów stanu UPS-ów i baterii poprzez
27 NUT - sieciowe narzędzia do UPS-ów. WMNUT jest dokowalny pod kontrolą
28 Window Makera lub AfterStepa.
29
30 %prep
31 %setup -q
32 %patch0 -p1
33
34 %build
35 %{__aclocal}
36 %{__autoconf}
37 %{__autoheader}
38 %{__automake}
39 %configure \
40         --with-nut-libs=/usr/lib \
41         --with-nut-includes=/usr/include/nut
42
43 %{__make} \
44         LIBS="-lssl"
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_sysconfdir}
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 install wmnutrc $RPM_BUILD_ROOT%{_sysconfdir}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc AUTHORS BUGS ChangeLog README TODO
61 %attr(755,root,root) %{_bindir}/*
62 %{_mandir}/man1/*
63 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/wmnutrc
This page took 1.459521 seconds and 3 git commands to generate.