# TODO: # - SysV init script (scripts/powerman, needs to be PLDified) # - register systemd service etc. # # Conditional build: %bcond_without static_libs # static library # Summary: PowerMan - centralized power control for clusters Summary(pl.UTF-8): PowerMan - scentralizowane zarządzanie zasilaniem dla klastrów Name: powerman Version: 2.3.24 Release: 3 License: GPL v2+ Group: Applications/System #Source0Download: https://github.com/chaos/powerman/releases Source0: https://github.com/chaos/powerman/releases/download/%{version}/%{name}-%{version}.tar.gz # Source0-md5: 94da2ea19d8855fb383029c5da80f03e URL: https://github.com/chaos/powerman BuildRequires: bison BuildRequires: curl-devel BuildRequires: flex BuildRequires: genders-devel BuildRequires: ncurses-devel BuildRequires: net-snmp-devel BuildRequires: pkgconfig Requires: %{name}-libs = %{version}-%{release} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description PowerMan is a tool for manipulating remote power control (RPC) devices from a central location. Several RPC varieties are supported natively by PowerMan and Expect-like configurability simplifies the addition of new devices. %description -l pl.UTF-8 PowerMan to narzędzie do operowanie urządzeniami zdalnego sterowania zasilaniem (RPC - Remote Power Control) ze scentralizowanego miejsca. Natywnie przez PowerMana obsługiwane jest kilka rodzajów RPC, a konfiguracja w stylu Expecta upraszcza dodawanie nowych urządzeń. %package stonith Summary: PowerMan plugin for STONITH interface Summary(pl.UTF-8): Wtyczka PowerMan do interfejsu STONITH Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: cluster-glue-stonith %description stonith PowerMan plugin for STONITH interface. %description stonith -l pl.UTF-8 Wtyczka PowerMan do interfejsu STONITH. %package libs Summary: Library for applications using PowerMan Summary(pl.UTF-8): Biblioteka dla aplikacji wykorzystujących PowerMan Group: Libraries %description libs Shared library for applications using PowerMan. %description libs -l pl.UTF-8 Biblioteka współdzielona dla aplikacji wykorzystujących PowerMan. %package devel Summary: Header files for PowerMan library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki PowerMan Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} %description devel Header files for PowerMan library. %description devel -l pl.UTF-8 Pliki nagłówkowe biblioteki PowerMan. %package static Summary: Static PowerMan library Summary(pl.UTF-8): Statyczna biblioteka PowerMan Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static PowerMan library. %description static -l pl.UTF-8 Statyczna biblioteka PowerMan. %prep %setup -q %build %configure \ --disable-silent-rules \ %{!?with_static_libs:--disable-static} \ --with-genders \ --with-httppower \ --with-snmppower \ --with-systemdsystemunitdir=%{systemdunitdir} %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/powerman/powerman.conf{.example,} install -d $RPM_BUILD_ROOT%{systemdtmpfilesdir} cat >$RPM_BUILD_ROOT%{systemdtmpfilesdir}/powerman.conf <