diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1fd7e1d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/xrestop-0.4.tar.gz diff --git a/.xrestop.metadata b/.xrestop.metadata new file mode 100644 index 0000000..68bd4c3 --- /dev/null +++ b/.xrestop.metadata @@ -0,0 +1 @@ +040b0ac561f4de0a04e9db42a2cfab918801c452 SOURCES/xrestop-0.4.tar.gz diff --git a/SOURCES/0001-man-page-Change-dt-to-t.patch b/SOURCES/0001-man-page-Change-dt-to-t.patch new file mode 100644 index 0000000..2ac4bea --- /dev/null +++ b/SOURCES/0001-man-page-Change-dt-to-t.patch @@ -0,0 +1,26 @@ +From bd2a232212676cd2bbca49d2bdae9687c6dbd8a7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?S=C3=B8ren=20Sandmann=20Pedersen?= +Date: Thu, 26 Sep 2013 12:05:21 -0400 +Subject: [PATCH 1/2] man page: Change -dt to -t + +The option -dt doesn't exist in the code; it's called -t. +--- + doc/xrestop.1 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/doc/xrestop.1 b/doc/xrestop.1 +index 4cbaf2f..5eb2565 100644 +--- a/doc/xrestop.1 ++++ b/doc/xrestop.1 +@@ -20,7 +20,7 @@ Show usage. + \fB\-\-display, \-d\fP + Specify X11 display to monitor. + .TP +-\fB\-\-delay-time, \-dt\fP ++\fB\-\-delay-time, \-t\fP + Time in seconds between taking samples. Default is 2 seconds. + .TP + \fB\-\-batch, \-b\fP +-- +1.8.3.1 + diff --git a/SOURCES/0002-More-man-page-fixes.patch b/SOURCES/0002-More-man-page-fixes.patch new file mode 100644 index 0000000..102c126 --- /dev/null +++ b/SOURCES/0002-More-man-page-fixes.patch @@ -0,0 +1,33 @@ +From 59017f0bb0acdc5ab86cc5b40accf5f1e9c35b53 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?S=C3=B8ren=20Sandmann=20Pedersen?= +Date: Thu, 26 Sep 2013 12:20:29 -0400 +Subject: [PATCH 2/2] More man page fixes + +* Write --help, not -help. + +* Add --max-samples to synopsis +--- + doc/xrestop.1 | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/doc/xrestop.1 b/doc/xrestop.1 +index 5eb2565..f9c6d77 100644 +--- a/doc/xrestop.1 ++++ b/doc/xrestop.1 +@@ -2,11 +2,10 @@ + .SH NAME + xrestop \- monitor server resources used by X11 clients + .SH SYNOPSIS +-.B xrestop +-\-help ++.B xrestop \-\-help + .br + .B xrestop +-[ \fB\-display\fP display ] [ \fB\-\-batch\fP ] [ \fB\-\-delay\-time\fP seconds ] ++[ \fB\-\-display\fP display ] [ \fB\-\-batch\fP ] [ \fB\-\-delay\-time\fP seconds ] [ \fB\-\-max-samples\fP count ] + .SH DESCRIPTION + Xrestop uses the X\-Resource extension to provide 'top'\-like statistics of + each connected X11 client's server\-side resource usage. It is intended +-- +1.8.3.1 + diff --git a/SPECS/xrestop.spec b/SPECS/xrestop.spec new file mode 100644 index 0000000..8b009cc --- /dev/null +++ b/SPECS/xrestop.spec @@ -0,0 +1,119 @@ +Summary: X Resource Monitor +Name: xrestop +Version: 0.4 +Release: 14%{?dist} +License: GPLv2+ +Group: Development/Tools +URL: http://www.freedesktop.org/Software/xrestop +Source0: %{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +BuildRequires: ncurses-devel libXres-devel libXext-devel libX11-devel +BuildRequires: libXau-devel +Patch0: 0001-man-page-Change-dt-to-t.patch +Patch1: 0002-More-man-page-fixes.patch + +%description +A utility to monitor application usage of X resources in the X Server, and +display them in a manner similar to 'top'. This is a very useful utility +for tracking down application X resource usage leaks. + +%prep +%setup -q +%patch0 -p1 -b .man-pages0 +%patch1 -p1 -b .man-pages1 + +%build +%configure +make +# SUBDIRS= + +%install +rm -rf "$RPM_BUILD_ROOT" +make DESTDIR="$RPM_BUILD_ROOT" install +#SUBDIRS= + +%clean +rm -rf "$RPM_BUILD_ROOT" + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING NEWS README +%{_bindir}/xrestop +%{_mandir}/man1/xrestop.1* + +%changelog +* Fri Jan 24 2014 Daniel Mach - 0.4-14 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 0.4-13 +- Mass rebuild 2013-12-27 + +* Tue Dec 17 2013 Soren Sandmann - 0.4-12 +- Man page fixes (#948901) + +* Fri Feb 15 2013 Fedora Release Engineering - 0.4-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jul 22 2012 Fedora Release Engineering - 0.4-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 0.4-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jul 27 2009 Fedora Release Engineering - 0.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 0.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Aug 11 2008 Jason L Tibbitts III - 0.4-5 +- Fix license tag. + +* Tue Feb 19 2008 Fedora Release Engineering - 0.4-4 +- Autorebuild for GCC 4.3 + +* Tue Aug 21 2007 Adam Jackson - 0.4-3 +- Rebuild for build id + +* Sat Apr 21 2007 Matthias Clasen 0.4-2 +- Don't install INSTALL + +* Tue Feb 13 2007 Adam Jackson 0.4-1 +- Update to 0.4 + +* Wed Jul 12 2006 Jesse Keating - 0.2-6.2.2 +- rebuild + +* Fri Feb 10 2006 Jesse Keating - 0.2-6.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 0.2-6.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Thu Dec 01 2005 Karsten Hopp 0.2-6 +- fix build requirements + +* Thu Mar 3 2005 Mike A. Harris 0.2-5 +- Rebuilt with gcc 4 for FC4. + +* Thu Oct 14 2004 Mike A. Harris 0.2-4 +- Added "BuildRequires: xorg-x11-devel, ncurses-devel" (#125029) + +* Tue Jun 15 2004 Elliot Lee 0.2-3 +- rebuilt + +* Wed Apr 14 2004 Mike A. Harris 0.2-2 +- Add missing documentation +- Add xrestop-manpage-fix.patch to fix bug (#118038) + +* Tue Mar 9 2004 Mike A. Harris 0.2-1 +- Initial Red Hat RPM package. + +