/[packages]/cauldron/apcupsd/current/SPECS/apcupsd.spec
ViewVC logotype

Annotation of /cauldron/apcupsd/current/SPECS/apcupsd.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 813798 - (hide annotations) (download)
Fri Feb 6 22:46:35 2015 UTC (9 years, 2 months ago) by luigiwalser
File size: 2395 byte(s)
- 3.14.13
- remove upstreamed patches

1 mikala 99236 %define _cgibin /var/www/cgi-bin
2     %define _sbindir /sbin
3    
4     Summary: Power management software for APC UPS hardware
5     Name: apcupsd
6 luigiwalser 813798 Version: 3.14.13
7     Release: %mkrel 1
8 mikala 99236 License: GPLv2
9     Group: System/Servers
10     URL: http://sourceforge.net/projects/apcupsd/
11     Source0: http://mesh.dl.sourceforge.net/sourceforge/apcupsd/%{name}-%{version}.tar.gz
12     Requires(post): rpm-helper
13     Requires(preun):rpm-helper
14     Requires: tcp_wrappers
15     Requires: nail
16     BuildRequires: gd-devel
17     BuildRequires: ncurses-devel
18     BuildRequires: tcp_wrappers-devel
19 luigiwalser 202316 BuildRequires: libstdc++-devel
20 mikala 99236
21     %description
22     UPS power management under Linux for APCC Products. It allows your
23     computer/server to run during power problems for a specified length of time or
24     the life of the batteries in your BackUPS, BackUPS Pro, SmartUPS v/s, or
25     SmartUPS, and then properly executes a controlled shutdown during an extended
26     power failure.
27    
28     %prep
29     %setup -q
30    
31     # fix attribs
32     find examples -type f | xargs chmod 644
33    
34     %build
35     %serverbuild
36    
37     %configure2_5x \
38     --sysconfdir=%{_sysconfdir}/apcupsd \
39     --enable-usb \
40     --enable-net \
41     --enable-master-slave \
42     --enable-pthreads \
43     --enable-cgi \
44     --with-cgi-bin=%{_cgibin} \
45     --with-serial-dev= \
46     --with-upstype=usb \
47 luigiwalser 670323 --with-halpolicydir="" \
48 mikala 99236 --with-upscable=usb \
49 luigiwalser 670323 --with-lock-dir=/run/lock \
50 mikala 99236 --with-nisip=127.0.0.1 \
51     --with-libwrap
52    
53     %make VERBOSE=1
54    
55     %install
56     install -d %{buildroot}%{_initrddir}
57     install -d %{buildroot}%{_cgibin}
58    
59     %makeinstall_std
60     #cgibin=%{buildroot}%{_cgibin}
61    
62     install -m0644 platforms/etc/apcupsd.conf %{buildroot}%{_sysconfdir}/apcupsd/
63     install -m0755 platforms/apccontrol %{buildroot}%{_sysconfdir}/apcupsd/
64     install -m0755 platforms/mandrake/apcupsd %{buildroot}%{_initrddir}/
65    
66     for src in changeme commfailure commok onbattery offbattery; do
67     install -m0744 platforms/etc/$src %{buildroot}%{_sysconfdir}/apcupsd/$src
68     done
69    
70     # cleanup
71     pushd doc/manual
72     rm -f *.rst publishdoc Makefile
73     popd
74    
75     %post
76     %_post_service apcupsd
77    
78     %preun
79     %_preun_service apcupsd
80    
81 luigiwalser 202314 %files
82 mikala 99236 %doc ChangeLog DISCLAIMER Developers ReleaseNotes examples doc/manual
83     %{_initrddir}/apcupsd
84     %dir %{_sysconfdir}/apcupsd
85     %config(noreplace) %{_sysconfdir}/apcupsd/*
86     %{_sbindir}/apcaccess
87     %{_sbindir}/apctest
88     %{_sbindir}/apcupsd
89     %{_sbindir}/smtp
90     %{_cgibin}/multimon.cgi
91     %{_cgibin}/upsfstats.cgi
92     %{_cgibin}/upsimage.cgi
93     %{_cgibin}/upsstats.cgi
94     %{_mandir}/man8/*
95     %{_mandir}/man5/apcupsd.conf.5*
96    
97    

  ViewVC Help
Powered by ViewVC 1.1.30