Hello community,

here is the log from the commit of package dstat for openSUSE:Factory checked 
in at 2017-12-14 11:02:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dstat (Old)
 and      /work/SRC/openSUSE:Factory/.dstat.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dstat"

Thu Dec 14 11:02:55 2017 rev:6 rq:556669 version:0.7.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/dstat/dstat.changes      2017-06-13 
16:09:34.418261481 +0200
+++ /work/SRC/openSUSE:Factory/.dstat.new/dstat.changes 2017-12-14 
11:03:14.898916516 +0100
@@ -1,0 +2,8 @@
+Wed Dec 13 12:41:56 UTC 2017 - mvet...@suse.com
+
+- bsc#1071428: Port to python3
+- Use docs-install instead of copying manpage manually
+- Only run desktop_database_post if needed
+- Drop Recommends on python-utmp (not in Factory anymore)
+
+-------------------------------------------------------------------

Old:
----
  0.7.3.tar.gz

New:
----
  0.7.3py3.tar.gz

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

Other differences:
------------------
++++++ dstat.spec ++++++
--- /var/tmp/diff_new_pack.TyCMGL/_old  2017-12-14 11:03:15.406891994 +0100
+++ /var/tmp/diff_new_pack.TyCMGL/_new  2017-12-14 11:03:15.406891994 +0100
@@ -23,16 +23,16 @@
 License:        GPL-2.0
 Group:          System/Monitoring
 Url:            http://dag.wieers.com/home-made/dstat/
-Source:         https://github.com/dagwieers/dstat/archive/%{version}.tar.gz
+#Source:         https://github.com/dagwieers/dstat/archive/#{version}.tar.gz
+Source:         https://github.com/eshizhan/dstat/archive/%{version}py3.tar.gz
 Source1:        dstat.desktop
 BuildRequires:  make
-Requires:       python
+Requires:       python3
 BuildArch:      noarch
 %if 0%{?suse_version}
 BuildRequires:  fdupes
 BuildRequires:  update-desktop-files
-Requires:       python-curses
-Recommends:     python-utmp
+Requires:       python3-curses
 %endif
 
 %description
@@ -51,7 +51,9 @@
 confusion, less mistakes.
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{version}py3
+# repalce env by python
+sed -i 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/' dstat
 
 %build
 
@@ -62,20 +64,21 @@
 rm examples/dstat.py
 ln -s %{_bindir}/dstat examples/dstat.py
 
-make %{?_smp_mflags} DESTDIR=%{buildroot} install
+make %{?_smp_mflags} DESTDIR=%{buildroot} install docs-install
 
-install -D -m 0644 docs/dstat.1 "%{buildroot}%{_mandir}/man1/dstat.1"
 install -D -m 0644 "%{SOURCE1}" 
"%{buildroot}%{_datadir}/applications/%{name}.desktop"
+
 %if 0%{?suse_update_desktop_file:1}
 %suse_update_desktop_file -r "%{name}" System Monitor
 %endif
 
 rm docs/Makefile
+
 %if 0%{?suse_version}
 %fdupes "%{buildroot}%{_datadir}/%{name}"
 %endif
 
-%if 0%{?suse_version}
+%if 0%{?suse_version} < 1330
 %post
 %desktop_database_post
 
@@ -85,7 +88,7 @@
 
 %files
 %defattr(-,root,root)
-%doc AUTHORS ChangeLog COPYING README.md TODO
+%doc AUTHORS ChangeLog COPYING README.adoc TODO
 %doc docs/*.html docs/*.adoc examples/ proc/
 %{_bindir}/dstat
 %dir %{_datadir}/dstat


Reply via email to