From af28b6bf2d6d3c706bc5b5505050c6f6aa980106 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Tue, 3 Jun 2008 14:45:07 +0000 Subject: [PATCH] - separate hal stuff to -hal package - moved libupsclient to common (IMO makes more sense than keeping it in client) Changed files: nut.spec -> 1.143 --- nut.spec | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/nut.spec b/nut.spec index 4cfb07a..bd2f2ba 100644 --- a/nut.spec +++ b/nut.spec @@ -160,7 +160,7 @@ Summary: Files for NUT clients development Summary(pl.UTF-8): Pliki do tworzenia klientów NUT-a Group: Development/Libraries Requires: openssl-devel >= 0.9.7c -# it does NOT require nut +Requires: %{name}-common = %{version}-%{release} %description devel Object file and header for developing NUT clients. @@ -168,6 +168,18 @@ Object file and header for developing NUT clients. %description devel -l pl.UTF-8 Plik wynikowy oraz nagłówek służące do tworzenia klientów NUT-a. +%package hal +Summary: NUT integration with FreeDesktop HAL +Summary(pl.UTF-8): Pliki do integracji NUT-a z HAL-em +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description hal +NUT integration with FreeDesktop HAL. + +%description hal -l pl.UTF-8 +Pliki do integracji NUT-a z HAL-em. + %prep %setup -q %patch0 -p1 @@ -310,13 +322,6 @@ fi %attr(755,root,root) /lib/nut/everups %attr(755,root,root) /lib/nut/gamatronic %attr(755,root,root) /lib/nut/genericups -%if %{with hal} -%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 %attr(755,root,root) /lib/nut/masterguard @@ -390,11 +395,11 @@ fi %defattr(644,root,root,755) %doc AUTHORS MAINTAINERS NEWS README UPGRADING ChangeLog docs %dir %{_sysconfdir} +%ghost %{_libdir}/libupsclient.so.1 +%attr(755,root,root) %{_libdir}/libupsclient.so.*.*.* %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 @@ -425,6 +430,16 @@ fi %{_mandir}/man8/upsstats.cgi.8* %endif +%if %{with hal} +%files hal +%defattr(644,root,root,755) +%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 + %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libupsclient.la -- 2.44.0