From 1c7fc14e889a5e89d16b87f20dc5f7b1c38bded3 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 23:44:03 +0100 Subject: [PATCH] automatic version update by autodist [release 1.0.2-1mamba;Sun Nov 11 2012] --- README.md | 3 +++ htop-0.9-libplpa.patch | 45 ++++++++++++++++++++++++++++++++ htop.spec | 59 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 htop-0.9-libplpa.patch create mode 100644 htop.spec diff --git a/README.md b/README.md index f14ed2a..653b68d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # htop +htop is an interactive process viewer for Linux. +It is a text-mode application (for console or X terminals) and requires ncurses. + diff --git a/htop-0.9-libplpa.patch b/htop-0.9-libplpa.patch new file mode 100644 index 0000000..7422cad --- /dev/null +++ b/htop-0.9-libplpa.patch @@ -0,0 +1,45 @@ +diff -up htop-0.8.3/acinclude.m4.noplpa htop-0.8.3/acinclude.m4 +--- htop-0.8.3/acinclude.m4.noplpa 2010-03-04 15:35:47.457908679 -0500 ++++ htop-0.8.3/acinclude.m4 2010-03-04 15:35:50.721919708 -0500 +@@ -1 +0,0 @@ +-m4_include(plpa-1.3.2/plpa.m4) +diff -up htop-0.8.3/Makefile.am.noplpa htop-0.8.3/Makefile.am +--- htop-0.8.3/Makefile.am.noplpa 2009-06-02 15:17:57.000000000 -0400 ++++ htop-0.8.3/Makefile.am 2010-03-04 15:34:41.579909477 -0500 +@@ -1,8 +1,4 @@ + +-if HAVE_PLPA +-SUBDIRS = plpa-1.3.2 +-endif +- + ACLOCAL_AMFLAGS=-I m4 + + bin_PROGRAMS = htop +@@ -35,9 +35,6 @@ + + BUILT_SOURCES = $(myhtopheaders) + htop_SOURCES = $(myhtopheaders) $(myhtopsources) config.h debug.h +-if HAVE_PLPA +-htop_LDADD = $(top_builddir)/plpa-1.3.2/src/libplpa/libplpa_included.la +-endif + + profile: + $(MAKE) all CFLAGS="-pg -O2" +--- htop-0.9/configure.ac.orig 2011-03-05 13:45:09.000000000 +0100 ++++ htop-0.9/configure.ac 2011-03-05 13:45:29.000000000 +0100 +@@ -104,14 +104,7 @@ + AC_CHECK_FILE($PROCDIR/stat,,AC_MSG_ERROR(Cannot find /proc/stat. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help.)) + AC_CHECK_FILE($PROCDIR/meminfo,,AC_MSG_ERROR(Cannot find /proc/meminfo. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help.)) + +-AC_ARG_ENABLE(plpa, [AC_HELP_STRING([--enable-plpa], [enable PLPA support for CPU affinity])], ,enable_plpa="yes") +-PLPA_INCLUDED +-PLPA_INIT([plpa-1.3.2], [plpa_happy=yes], [plpa_happy=no]) +-AM_CONDITIONAL([HAVE_PLPA], [test "$plpa_happy" = "yes" && test "$enable_plpa" = "yes"]) +-if test "$plpa_happy" = "yes" && test "$enable_plpa" = "yes" +-then +- AC_DEFINE([HAVE_PLPA], [1], [Have plpa]) +-fi ++AC_CHECK_LIB([plpa], [plpa_sched_getaffinity], [], [missing_libraries="$missing_libraries libplpa"]) + + AC_CONFIG_FILES([Makefile htop.1]) + AC_OUTPUT diff --git a/htop.spec b/htop.spec new file mode 100644 index 0000000..e366259 --- /dev/null +++ b/htop.spec @@ -0,0 +1,59 @@ +Name: htop +Version: 1.0.2 +Release: 1mamba +Summary: An interactive process viewer for Linux +Group: System/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://htop.sourceforge.net +Source: http://downloads.sourceforge.net/project/htop/htop/%{version}/htop-%{version}.tar.gz +Patch0: htop-0.9-libplpa.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libncurses-devel +BuildRequires: libplpa-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +htop is an interactive process viewer for Linux. +It is a text-mode application (for console or X terminals) and requires ncurses. + +%prep +%setup -q +#%patch0 -p1 + +%build +rm -rf plpa-*/ +autoreconf -isvf +%configure + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/htop +%{_datadir}/man/man1/* +%{_datadir}/applications/htop.desktop +%{_datadir}/pixmaps/htop.png +%doc AUTHORS COPYING +# ChangeLog NEWS README TODO + +%changelog +* Sun Nov 11 2012 Automatic Build System 1.0.2-1mamba +- automatic version update by autodist + +* Wed Jun 13 2012 Automatic Build System 1.0.1-1mamba +- automatic version update by autodist + +* Mon Apr 04 2011 Stefano Cotta Ramusino 0.9-1mamba +- package created by autospec