packages: pacgraph/pacgraph-pld.patch (NEW), pacgraph/pacgraph.spec (NEW) -...
caleb
caleb at pld-linux.org
Sat Jul 23 10:35:26 CEST 2011
Author: caleb Date: Sat Jul 23 08:35:26 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- Initial add
---- Files affected:
packages/pacgraph:
pacgraph-pld.patch (NONE -> 1.1) (NEW), pacgraph.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/pacgraph/pacgraph-pld.patch
diff -u /dev/null packages/pacgraph/pacgraph-pld.patch:1.1
--- /dev/null Sat Jul 23 10:35:26 2011
+++ packages/pacgraph/pacgraph-pld.patch Sat Jul 23 10:35:21 2011
@@ -0,0 +1,21 @@
+--- pacgraph~ 2011-07-18 03:36:21.000000000 +0300
++++ pacgraph 2011-07-23 11:13:13.000000000 +0300
+@@ -935,7 +935,7 @@
+ return subp.communicate()[0].decode().split('\n')
+
+ def parse():
+- default_action = 'autodetect'
++ default_action = 'redhat'
+ parser = optparse.OptionParser(description='Produces two files, pacgraph.svg and pacgraph.png. Colors should be entered as hex values like "#ffffff". SVG named colors may also work, see http://en.wikipedia.org/wiki/Web_colors . Packages listed in the args are highlighted.')
+ parser.add_option('-s', '--svg', dest='svg_only', action='store_true', default=False,
+ help='Produce the SVG but do not attempt to rasterize it.')
+@@ -1026,6 +1026,9 @@
+ if exists('ipkg'):
+ print ('Autodetected ipkg.')
+ return 'ipkg'
++ if exists('poldek'):
++ print('Autodetected PLD.')
++ return 'redhat'
+ if any(map(exists, 'dpkg apt aptitude'.split())):
+ print ('Autodetected deb.')
+ return 'debian'
================================================================
Index: packages/pacgraph/pacgraph.spec
diff -u /dev/null packages/pacgraph/pacgraph.spec:1.1
--- /dev/null Sat Jul 23 10:35:26 2011
+++ packages/pacgraph/pacgraph.spec Sat Jul 23 10:35:21 2011
@@ -0,0 +1,65 @@
+# $Revision$, $Date$
+%define commit e495c03
+Summary: Draws a graph of installed packages
+Name: pacgraph
+Version: 20110717
+Release: 0.1
+License: GPL
+Group: Applications
+Source0: https://download.github.com/keenerd-%{name}-%{commit}.tar.gz
+# Source0-md5: fdf09c8cdea9c9e58c6fc2acc79a0528
+Patch0: %{name}-pld.patch
+URL: http://kmkeen.com/pacgraph/
+Requires: python3
+Requires: python3-modules
+Suggests: ImageMagick
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Render a graph of installed packages to console, svn or png image.
+Good for finding bloat.
+
+%package tk
+Summary: Interactive tk based GUI for %{name}
+Group: Applications
+Requires: python3-tkinter
+
+%description tk
+Interactive tk based GUI for %{name}
+
+%prep
+%setup -qn keenerd-%{name}-%{commit}
+%patch0 -p0
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -D pacgraph $RPM_BUILD_ROOT/%{_bindir}/%{name}
+install -D pacgraph-tk $RPM_BUILD_ROOT/%{_bindir}/%{name}-tk
+install -D %{name}.1 $RPM_BUILD_ROOT/%{_mandir}/man1/%{name}.1
+
+find $RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}
+%{_mandir}/man1/%{name}.1*
+
+%files tk
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}-tk
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/07/23 08:35:21 caleb
+- Initial add
+
================================================================
More information about the pld-cvs-commit
mailing list