SPECS: nut.spec - 2.2.2 - fix linking with openssl - html files in proper l...
baggins
baggins at pld-linux.org
Tue Jun 3 16:37:53 CEST 2008
Author: baggins Date: Tue Jun 3 14:37:53 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- 2.2.2
- fix linking with openssl
- html files in proper location
- package hal stuff
- enabled ipv6
- real devel package (new in 2.2.2)
---- Files affected:
SPECS:
nut.spec (1.141 -> 1.142)
---- Diffs:
================================================================
Index: SPECS/nut.spec
diff -u SPECS/nut.spec:1.141 SPECS/nut.spec:1.142
--- SPECS/nut.spec:1.141 Sun Feb 17 14:37:31 2008
+++ SPECS/nut.spec Tue Jun 3 16:37:47 2008
@@ -1,25 +1,24 @@
# $Revision$, $Date$
# TODO:
-# - unpackaged files:
-# /usr/html/{{bottom,header,index}.html,nut-banner.png}
# - upsdrvctl (used by ups.init) doesn't recognize status and reload commands
-# - maybe package scripts/hal/20-ups-nut-device.fdi (and test that hal-stuff)
+# - test that hal-stuff
#
# Conditional build:
%bcond_without usb # build without usb drivers
%bcond_without hal # build without hal support
%bcond_without snmp # build without snmp driver
%bcond_without cgi # build without cgi support
+%bcond_with neonxml # build with neon based XML/HTTP driver
#
Summary: Network UPS Tools
Summary(pl.UTF-8): Sieciowe narzędzie do UPS-ów
Name: nut
-Version: 2.2.1
+Version: 2.2.2
Release: 1
License: GPL
Group: Applications/System
Source0: http://eu1.networkupstools.org/source/2.2/%{name}-%{version}.tar.gz
-# Source0-md5: c7ae871961a7dbe12b22d504267dc132
+# Source0-md5: 677a84a83e9be7bc93610413ee696375
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}-upsmon.init
@@ -28,6 +27,7 @@
Patch1: %{name}-config.patch
Patch2: %{name}-smartdp-load.patch
Patch3: %{name}-upssched-cmd-sysconf.patch
+Patch4: %{name}-as-needed.patch
URL: http://www.networkupstools.org/
BuildRequires: autoconf
BuildRequires: automake
@@ -175,6 +175,7 @@
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
cp -f /usr/share/automake/config.sub .
@@ -184,25 +185,29 @@
%{__autoconf}
%configure \
--datadir=%{_datadir}/%{name} \
- --with%{!?with_hal:out}-hal \
+ --with-htmlpath=%{_datadir}/%{name}/html \
--with-serial \
- --with%{!?with_snmp:out}-snmp \
--with%{!?with_usb:out}-usb \
- %{?with_usb:--with-udev-dir=/etc/udev} \
- --with-ssl \
+ --with%{!?with_snmp:out}-snmp \
+ --with%{!?with_hal:out}-hal \
--with%{!?with_cgi:out}-cgi \
+ --with-dev \
+ --with%{!?with_neonxml:out}-neonxml \
--with-linux-hiddev=%{_includedir}/linux/hiddev.h \
+ --with-ssl \
+ --with-ipv6 \
+ %{?with_usb:--with-udev-dir=/etc/udev} \
--with-statepath=%{_var}/lib/ups \
--with-drvpath=/lib/nut \
--with-cgipath=/home/services/httpd/cgi-bin \
--with-user=ups \
--with-group=ups
+
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/sbin,/etc/{sysconfig,rc.d/init.d},/var/lib/ups} \
- $RPM_BUILD_ROOT{/lib/nut,%{_libdir},%{_includedir}/nut}
+install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},/var/lib/ups,/lib/nut,/sbin}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -216,9 +221,6 @@
mv -f $i ${i%.sample}
done
-install clients/upsclient.o common/parseconf.o $RPM_BUILD_ROOT%{_libdir}
-install clients/upsclient.h include/parseconf.h $RPM_BUILD_ROOT%{_includedir}/nut
-
%if %{with usb}
mv -f $RPM_BUILD_ROOT%{_udevrulesdir}/52{_,-}nut-usbups.rules
%else
@@ -310,10 +312,11 @@
%attr(755,root,root) /lib/nut/gamatronic
%attr(755,root,root) /lib/nut/genericups
%if %{with hal}
-%attr(755,root,root) /lib/nut/hald-addon-bcmxcp_usb
-%attr(755,root,root) /lib/nut/hald-addon-megatec_usb
-%attr(755,root,root) /lib/nut/hald-addon-tripplite_usb
-%attr(755,root,root) /lib/nut/hald-addon-usbhid-ups
+%attr(755,root,root) %{_libdir}/hal/hald-addon-bcmxcp_usb
+%attr(755,root,root) %{_libdir}/hal/hald-addon-megatec_usb
+%attr(755,root,root) %{_libdir}/hal/hald-addon-tripplite_usb
+%attr(755,root,root) %{_libdir}/hal/hald-addon-usbhid-ups
+%{_datadir}/hal/fdi/information/20thirdparty/20-ups-nut-device.fdi
%endif
%attr(755,root,root) /lib/nut/isbmex
%attr(755,root,root) /lib/nut/liebert
@@ -391,6 +394,8 @@
%files client
%defattr(644,root,root,755)
+%ghost %{_libdir}/libupsclient.so.1
+%attr(755,root,root) %{_libdir}/libupsclient.so.*.*.*
%attr(755,root,root) %{_bindir}/upsc
%attr(755,root,root) %{_sbindir}/upsmon
%attr(755,root,root) %{_sbindir}/upssched
@@ -408,6 +413,7 @@
%if %{with cgi}
%files cgi
%defattr(644,root,root,755)
+%{_datadir}/%{name}/html
%attr(755,root,root) /home/services/httpd/cgi-bin/*.cgi
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hosts.conf
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/upsset.conf
@@ -422,9 +428,11 @@
%files devel
%defattr(644,root,root,755)
-%{_libdir}/upsclient.o
-%{_libdir}/parseconf.o
-%{_includedir}/nut
+%attr(755,root,root) %{_libdir}/libupsclient.la
+%attr(755,root,root) %{_libdir}/libupsclient.so
+%{_pkgconfigdir}/*
+%{_includedir}/*.h
+%{_mandir}/man3/*.3*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -432,6 +440,14 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.142 2008-06-03 14:37:47 baggins
+- 2.2.2
+- fix linking with openssl
+- html files in proper location
+- package hal stuff
+- enabled ipv6
+- real devel package (new in 2.2.2)
+
Revision 1.141 2008-02-17 13:37:31 sls
- rel. 1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nut.spec?r1=1.141&r2=1.142&f=u
More information about the pld-cvs-commit
mailing list