Hello community,

here is the log from the commit of package powerman for openSUSE:Factory 
checked in at 2015-03-23 12:18:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/powerman (Old)
 and      /work/SRC/openSUSE:Factory/.powerman.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "powerman"

Changes:
--------
--- /work/SRC/openSUSE:Factory/powerman/powerman.changes        2014-08-20 
10:51:07.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.powerman.new/powerman.changes   2015-03-23 
12:18:04.000000000 +0100
@@ -1,0 +2,13 @@
+Thu Mar 12 09:45:27 UTC 2015 - [email protected]
+
+- Update to version 2.3.20
+  * add dist tag to release (TOSS-2667)
+  * Minor automake updates
+- Move to systemd
+- Remove unneeded patchs
+  * powerman-piddir.patch
+  * powerman-runlevel.patch
+- Update project and download Urls; project has moved to github
+- Some cleanup
+
+-------------------------------------------------------------------

Old:
----
  powerman-2.3.16.tar.gz
  powerman-piddir.patch
  powerman-runlevel.patch

New:
----
  powerman-2.3.20.tar.gz
  powerman.service

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ powerman.spec ++++++
--- /var/tmp/diff_new_pack.H9NyU8/_old  2015-03-23 12:18:05.000000000 +0100
+++ /var/tmp/diff_new_pack.H9NyU8/_new  2015-03-23 12:18:05.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package powerman
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,33 +15,22 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-
-%if 0%{?suse_version} <= 1140
-%if 0%{?suse_version} > 1110
-%define enable_heartbeat 1
-%endif
-%endif
-
 Name:           powerman
-Version:        2.3.16
+Version:        2.3.20
 Release:        0
-Url:            http://code.google.com/p/powerman/
-Source:         %{name}-%{version}.tar.gz
-Patch0:         powerman-piddir.patch
-Patch1:         powerman-runlevel.patch
+Url:            https://github.com/chaos/powerman
+Source0:        
https://github.com/chaos/powerman/releases/download/%{version}/%{name}-%{version}.tar.gz
+Source1:        %{name}.service
 Summary:        Centralized Power Control for Clusters
 License:        GPL-2.0+
 Group:          Productivity/Clustering/HA
 BuildRequires:  curl-devel
 BuildRequires:  ncurses-devel
 BuildRequires:  pkg-config
+BuildRequires:  systemd-rpm-macros
 BuildRequires:  tcpd-devel
-%if 0%{?enable_heartbeat}
-BuildRequires:  heartbeat
-%endif
 #BuildRequires:  genders
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-PreReq:         %insserv_prereq
+%{?systemd_requires}
 
 %description
 PowerMan is a tool for manipulating remote power control (RPC) devices from a 
@@ -65,8 +54,6 @@
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
 
 %build
 # --with-genders
@@ -78,25 +65,24 @@
 %install
 make install DESTDIR=$RPM_BUILD_ROOT
 rm $RPM_BUILD_ROOT%{_libdir}/*.la
-ln -s ../..%{_sysconfdir}/init.d/powerman $RPM_BUILD_ROOT%{_sbindir}/rcpowerman
+rm -rf %{buildroot}%{_sysconfdir}/init.d
+install -Dm 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
+ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
 mv $RPM_BUILD_ROOT%{_sysconfdir}/powerman/powerman.conf.example 
$RPM_BUILD_ROOT%{_sysconfdir}/powerman/powerman.conf
 # 
-%if ! 0%{?enable_heartbeat}
 rm -r $RPM_BUILD_ROOT%{_libdir}/stonith
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
 
-%preun
-%{stop_on_removal}
+%pre
+%service_add_pre %{name}.service
 
 %post
-%{fillup_and_insserv -f}
+%service_add_post %{name}.service
+
+%preun
+%service_del_preun %{name}.service
 
 %postun
-%{restart_on_update}
-%{insserv_cleanup}
+%service_del_postun %{name}.service
 
 %post -n libpowerman0 -p /sbin/ldconfig
 
@@ -106,15 +92,12 @@
 %defattr(-,root,root)
 %doc AUTHORS DISCLAIMER COPYING NEWS README TODO
 %{_bindir}/*
-%if 0%{?enable_heartbeat}
-%{_libdir}/stonith/plugins/external/powerman
-%endif
 %dir %attr(0755,daemon,root) %ghost /run/powerman
-%doc %{_mandir}/man?/*.*
-%exclude %doc %{_mandir}/man3/*.*
+%{_mandir}/man?/*.*
+%exclude %{_mandir}/man3/*.*
 %{_sbindir}/*
-%dir %config %{_sysconfdir}/powerman
-%{_sysconfdir}/init.d/powerman
+%dir %{_sysconfdir}/powerman
+%{_unitdir}/%{name}.service
 %config %{_sysconfdir}/powerman/powerman.conf
 %{_sysconfdir}/powerman/*.dev
 
@@ -123,7 +106,7 @@
 %{_includedir}/*
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/*.pc
-%doc %{_mandir}/man3/*.*
+%{_mandir}/man3/*.*
 
 %files -n libpowerman0
 %defattr(-,root,root)

++++++ powerman-2.3.16.tar.gz -> powerman-2.3.20.tar.gz ++++++
++++ 6590 lines of diff (skipped)

++++++ powerman.service ++++++
[Unit]
Description=Powerman Daemon
After=network.target

[Service]
Type=forking
PIDFile=/run/powerman.pid
ExecStart=/usr/sbin/powermand

[Install]
WantedBy=multi-user.target
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to