Hello community,

here is the log from the commit of package latencytop for openSUSE:Factory 
checked in at 2017-11-27 22:17:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/latencytop (Old)
 and      /work/SRC/openSUSE:Factory/.latencytop.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "latencytop"

Mon Nov 27 22:17:40 2017 rev:17 rq:545698 version:0.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/latencytop/latencytop.changes    2012-09-14 
12:44:27.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.latencytop.new/latencytop.changes       
2017-11-27 22:17:41.328207742 +0100
@@ -1,0 +2,6 @@
+Sun Nov 26 10:58:47 UTC 2017 - [email protected]
+
+- Cleanup spec file with spec-clenaer
+- Split graphical version of package
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ latencytop.spec ++++++
--- /var/tmp/diff_new_pack.amQ2fj/_old  2017-11-27 22:17:41.936185675 +0100
+++ /var/tmp/diff_new_pack.amQ2fj/_new  2017-11-27 22:17:41.936185675 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package latencytop
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,20 +17,19 @@
 
 
 Name:           latencytop
-BuildRequires:  gtk2-devel
-BuildRequires:  ncurses-devel
-BuildRequires:  pkgconfig
+Version:        0.5
+Release:        0
 Summary:        Kernel latency measuring tool
 License:        GPL-2.0
 Group:          System/Monitoring
-Version:        0.5
-Release:        0
+Url:            http://www.latencytop.org/
 Source:         latencytop-%{version}.tar.bz2
-Patch:          latencytop-warning-fixes.diff
+Patch0:         latencytop-warning-fixes.diff
 Patch1:         latencytop-incremental-output.patch
 Patch2:         latencytop-incremental-man.patch
-Url:            http://www.latencytop.org/
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  gtk2-devel
+BuildRequires:  ncurses-devel
+BuildRequires:  pkgconfig
 
 %description
 LatencyTOP is a Linux* tool for software developers (both kernel and
@@ -39,34 +38,48 @@
 happen so that the code can be changed to avoid the worst latency
 hiccups. A version with graphic interface is available as xlatencytop.
 
+%package -n xlatencytop
+Summary:        Kernel latency measuring tool
+Group:          System/Monitoring
+Requires:       %{name} = %{version}
+Conflicts:      %{name} < %{version}-%{release}
+
+%description -n xlatencytop
+LatencyTOP is a Linux* tool for software developers (both kernel and
+userspace), aimed at identifying where in the system latency is
+happening, and what kind of operation/action is causing the latency to
+happen so that the code can be changed to avoid the worst latency
+hiccups. This package contains version with graphic interface.
+
 %prep
 %setup -q
-%patch -p1
+%patch0 -p1
 %patch1 -p2
 %patch2 -p1
 
 %build
-export CFLAGS="$RPM_OPT_FLAGS"
-make %{?jobs:-j %jobs}
+export CFLAGS="%{optflags}"
+make %{?_smp_mflags}
 mv latencytop xlatencytop
-make clean
+make %{?_smp_mflags} clean
 sed -i 's|HAS_GTK_GUI = 1|#HAS_GTK_GUI = 1|' Makefile
-make %{?jobs:-j %jobs}
+make %{?_smp_mflags}
 
 %install
-mkdir -p $RPM_BUILD_ROOT%{_sbindir}
-make DESTDIR=$RPM_BUILD_ROOT install
-install -m 0755 xlatencytop $RPM_BUILD_ROOT%{_sbindir}
-mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
-install -c -m 0644 *.8 $RPM_BUILD_ROOT%{_mandir}/man8
-
-%clean
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+install -d %{buildroot}%{_sbindir}
+%make_install
+install -Dpm 0755 xlatencytop \
+  %{buildroot}%{_sbindir}/xlatencytop
+install -Dpm 0644 latencytop.8 \
+  %{buildroot}%{_mandir}/man8/latencytop.8
 
 %files
-%defattr(-, root, root)
-%doc %{_mandir}/man*/*
-%{_sbindir}/*
+%{_sbindir}/latencytop
 %{_datadir}/latencytop
+%{_mandir}/man8/latencytop.8%{ext_man}
+%{_datadir}/latencytop
+
+%files -n xlatencytop
+%{_sbindir}/xlatencytop
 
 %changelog


Reply via email to