[svn] r6508 - in trunk/rpms: . mrepo psinfo python-utmp yum-arch

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Fri Oct 10 12:07:47 CEST 2008


Author: dag
Date: 2008-10-10 11:07:46 +0100 (Fri, 10 Oct 2008)
New Revision: 6508

Added:
   trunk/rpms/psinfo/
   trunk/rpms/psinfo/psinfo.spec
   trunk/rpms/yum-arch/
   trunk/rpms/yum-arch/yum-arch-2.2.2-folder.patch
   trunk/rpms/yum-arch/yum-arch-2.2.2-unwarn.patch
   trunk/rpms/yum-arch/yum-arch.spec
Modified:
   trunk/rpms/mrepo/mrepo.spec
   trunk/rpms/python-utmp/python-utmp.spec
Log:
Updates

Modified: trunk/rpms/mrepo/mrepo.spec
===================================================================
--- trunk/rpms/mrepo/mrepo.spec	2008-10-10 08:56:25 UTC (rev 6507)
+++ trunk/rpms/mrepo/mrepo.spec	2008-10-10 10:07:46 UTC (rev 6508)
@@ -15,7 +15,9 @@
 
 BuildArch: noarch
 BuildRequires: /usr/bin/python2
-Requires: python >= 2.0, createrepo
+Requires: createrepo
+Requires: python >= 2.0
+Requires: pyOpenSSL
 Obsoletes: yam <= %{version}-%{release}
 
 %description

Added: trunk/rpms/psinfo/psinfo.spec
===================================================================
--- trunk/rpms/psinfo/psinfo.spec	                        (rev 0)
+++ trunk/rpms/psinfo/psinfo.spec	2008-10-10 10:07:46 UTC (rev 6508)
@@ -0,0 +1,53 @@
+# $Id$
+# Authority: dag
+# Upstream: Ward van Wanrooij <ward$ward,nu>
+
+Summary: Shows process information and statistics
+Name: psinfo
+Version: 0.1
+Release: 1
+License: GPL
+Group: Applications/
+URL: http://www.ward.nu/computer/psinfo/
+
+Source: http://www.ward.nu/computer/psinfo/psinfo-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+%description
+psinfo shows process information and statistics using the kernel /proc
+interface. It includes:
+
+    Process state, environment, arguments and flags
+    CPU usage
+    Scheduling
+    I/O usage
+    Virtual memory status
+    Pagefaults
+    Capabilities
+    Signals
+
+psinfo is useful for providing a detailed view of the current state of an
+application when diagnosing issues or performance problems.
+
+%prep
+%setup
+
+%build
+%{__make} %{?_smp_mflags} CFLAGS="%{optflags}"
+
+%install
+%{__rm} -rf %{buildroot}
+#%{__make} install DESTDIR="%{buildroot}"
+%{__install} -Dp -m0755 psinfo %{buildroot}%{_bindir}/psinfo
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(-, root, root, 0755)
+%doc README
+%{_bindir}/psinfo
+
+%changelog
+* Fri Oct 10 2008 Dag Wieers <dag at wieers.com> - 1.0-1
+- Initial package. (using DAR)


Property changes on: trunk/rpms/psinfo/psinfo.spec
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Modified: trunk/rpms/python-utmp/python-utmp.spec
===================================================================
--- trunk/rpms/python-utmp/python-utmp.spec	2008-10-10 08:56:25 UTC (rev 6507)
+++ trunk/rpms/python-utmp/python-utmp.spec	2008-10-10 10:07:46 UTC (rev 6508)
@@ -29,14 +29,14 @@
 
 %build
 %{__make} -f Makefile.glibc \
-	PYTHONVER="%{python_version}" \
-	PYTHONDIR="%{python_sitearch}"
+    PYTHONVER="%{python_version}" \
+    PYTHONDIR="%{python_sitearch}"
 
 %install
 %{__rm} -rf %{buildroot}
 %makeinstall -f Makefile.glibc \
-	PYTHONVER="%{python_version}" \
-	PYTHONDIR="%{buildroot}%{python_sitearch}"
+    PYTHONVER="%{python_version}" \
+    PYTHONDIR="%{buildroot}%{python_sitearch}"
 
 %clean
 %{__rm} -rf %{buildroot}
@@ -45,7 +45,11 @@
 %defattr(-, root, root, 0755)
 %doc README TODO examples/*
 %{python_sitearch}/UTMPCONST.py
+%ghost %{python_sitearch}/UTMPCONST.pyc
+%ghost %{python_sitearch}/UTMPCONST.pyo
 %{python_sitearch}/utmp.py
+%ghost %{python_sitearch}/utmp.pyc
+%ghost %{python_sitearch}/utmp.pyo
 %{python_sitearch}/utmpaccessmodule.so
 
 %changelog

Added: trunk/rpms/yum-arch/yum-arch-2.2.2-folder.patch
===================================================================
--- trunk/rpms/yum-arch/yum-arch-2.2.2-folder.patch	                        (rev 0)
+++ trunk/rpms/yum-arch/yum-arch-2.2.2-folder.patch	2008-10-10 10:07:46 UTC (rev 6508)
@@ -0,0 +1,91 @@
+--- ./docs/Makefile.remi	2004-10-13 07:36:58.000000000 +0200
++++ ./docs/Makefile	2007-02-16 17:11:37.000000000 +0100
+@@ -5,7 +5,5 @@
+ 	rm -f *.pyc *.pyo *~
+ 
+ install:
+-	mkdir -p $(DESTDIR)/usr/share/man/man{5,8}
+-	install -m 644 yum.8 $(DESTDIR)/usr/share/man/man8/yum.8
++	mkdir -p $(DESTDIR)/usr/share/man/man8
+ 	install -m 644 yum-arch.8 $(DESTDIR)/usr/share/man/man8/yum-arch.8
+-	install -m 644 yum.conf.5 $(DESTDIR)/usr/share/man/man5/yum.conf.5
+--- ./yum/Makefile.remi	2004-08-31 06:20:04.000000000 +0200
++++ ./yum/Makefile	2007-02-16 17:11:37.000000000 +0100
+@@ -3,7 +3,7 @@
+ PYVER := $(shell python -c 'import sys; print "%.3s" %(sys.version)')
+ PYSYSDIR := $(shell python -c 'import sys; print sys.prefix')
+ PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
+-PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)
++PKGDIR = /usr/share/yum-arch/$(PACKAGE)
+ 
+ all: 
+ 	echo "Nothing to do"
+--- ./repomd/Makefile.remi	2004-08-31 06:20:03.000000000 +0200
++++ ./repomd/Makefile	2007-02-16 17:11:37.000000000 +0100
+@@ -3,7 +3,7 @@
+ PYVER := $(shell python -c 'import sys; print "%.3s" %(sys.version)')
+ PYSYSDIR := $(shell python -c 'import sys; print sys.prefix')
+ PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
+-PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)
++PKGDIR = /usr/share/yum-arch/$(PACKAGE)
+ 
+ all: 
+ 	echo "Nothing to do"
+--- ./bin/yum-arch.remi	2004-10-13 07:57:34.000000000 +0200
++++ ./bin/yum-arch	2007-02-16 17:11:37.000000000 +0100
+@@ -18,6 +18,6 @@
+ 
+ import sys
+ 
+-sys.path.insert(1,'/usr/share/yum-cli')
++sys.path.insert(0,'/usr/share/yum-arch')
+ import pullheaders
+ pullheaders.main(sys.argv[1:])
+--- ./Makefile.remi	2005-01-25 06:56:43.000000000 +0100
++++ ./Makefile	2007-02-16 17:13:59.000000000 +0100
+@@ -1,4 +1,4 @@
+-SUBDIRS = repomd rpmUtils urlgrabber yum etc docs
++SUBDIRS = repomd rpmUtils urlgrabber yum docs
+ PYFILES = $(wildcard *.py)
+ 
+ PKGNAME = yum
+@@ -17,14 +17,13 @@
+ 	for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1 ; done
+ 
+ install:
+-	mkdir -p $(DESTDIR)/usr/share/yum-cli
++	mkdir -p $(DESTDIR)/usr/share/yum-arch
+ 	for p in $(PYFILES) ; do \
+-		install -m 644 $$p $(DESTDIR)/usr/share/yum-cli/$$p; \
++		install -m 644 $$p $(DESTDIR)/usr/share/yum-arch/$$p; \
+ 	done
+-	$(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/usr/share/yum-cli', 1, '$(PYDIR)', 1)"
++	$(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/usr/share/yum-arch', 1, '$(PYDIR)', 1)"
+ 
+ 	mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/bin
+-	install -m 755 bin/yum.py $(DESTDIR)/usr/bin/yum
+ 	install -m 755 bin/yum-arch $(DESTDIR)/usr/bin/yum-arch
+ 
+ 	mkdir -p $(DESTDIR)/var/cache/yum
+--- ./urlgrabber/Makefile.remi	2004-08-31 06:20:04.000000000 +0200
++++ ./urlgrabber/Makefile	2007-02-16 17:11:37.000000000 +0100
+@@ -3,7 +3,7 @@
+ PYVER := $(shell python -c 'import sys; print "%.3s" %(sys.version)')
+ PYSYSDIR := $(shell python -c 'import sys; print sys.prefix')
+ PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
+-PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)
++PKGDIR = /usr/share/yum-arch/$(PACKAGE)
+ 
+ all: 
+ 	echo "Nothing to do"
+--- ./rpmUtils/Makefile.remi	2004-08-31 06:20:03.000000000 +0200
++++ ./rpmUtils/Makefile	2007-02-16 17:11:37.000000000 +0100
+@@ -3,7 +3,7 @@
+ PYVER := $(shell python -c 'import sys; print "%.3s" %(sys.version)')
+ PYSYSDIR := $(shell python -c 'import sys; print sys.prefix')
+ PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
+-PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)
++PKGDIR = /usr/share/yum-arch/$(PACKAGE)
+ 
+ all: 
+ 	echo "Nothing to do"

Added: trunk/rpms/yum-arch/yum-arch-2.2.2-unwarn.patch
===================================================================
--- trunk/rpms/yum-arch/yum-arch-2.2.2-unwarn.patch	                        (rev 0)
+++ trunk/rpms/yum-arch/yum-arch-2.2.2-unwarn.patch	2008-10-10 10:07:46 UTC (rev 6508)
@@ -0,0 +1,12 @@
+--- yum-2.2.2/pullheaders.py.orig	2008-10-10 10:47:08.000000000 +0200
++++ yum-2.2.2/pullheaders.py	2008-10-10 10:47:22.000000000 +0200
+@@ -115,9 +115,6 @@
+     return rpms
+     
+ def main(args):
+-    log(0, '\n\n\nTHIS PROGRAM IS DEPRECATED!')
+-    log(0, 'You should be generating xml metadata instead.')
+-    log(0, 'Please see http://linux.duke.edu/metadata\n\n\n')
+     tempheaderdir = '.newheaders'
+     tempheaderinfo = tempheaderdir + '/' + 'header.info'
+     tempsrcheaderinfo = tempheaderdir + '/' + 'header.src.info'

Added: trunk/rpms/yum-arch/yum-arch.spec
===================================================================
--- trunk/rpms/yum-arch/yum-arch.spec	                        (rev 0)
+++ trunk/rpms/yum-arch/yum-arch.spec	2008-10-10 10:07:46 UTC (rev 6508)
@@ -0,0 +1,56 @@
+# $Id$
+# Authority: dag
+
+Summary: Extract headers from rpm in a old yum repository
+Name: yum-arch
+Version: 2.2.2
+Release: 1
+License: GPL
+Group: System Environment/Base
+URL:  http://linux.duke.edu/yum/
+
+Source: http://linux.duke.edu/projects/yum/download/2.2/yum-%{version}.tar.gz
+Patch0: yum-arch-2.2.2-folder.patch
+Patch1: yum-arch-2.2.2-unwarn.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildArch: noarch
+BuildRequires: gettext
+BuildRequires: python
+Requires: libxml2-python
+Requires: python
+Requires: rpm >= 0:4.1.1
+Requires: rpm-python
+
+%description
+Extract headers from rpm in a old yum repository.
+
+This package only provides the old yum-arch command from yum-%{version}
+It should be used to generate repository informations for Fedora Core  < 3
+and RedHat Enterprise Linux < 4.
+
+%prep
+%setup -n yum-%{version}
+%patch0 -p0 -b .folder
+%patch1 -p1 -b .unwarn
+
+%build
+%{__make}
+
+%install
+%{__rm} -rf %{buildroot}
+%{__make} install DESTDIR="%{buildroot}"
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(-, root, root, 0755)
+%doc AUTHORS ChangeLog COPYING INSTALL README TODO
+%doc %{_mandir}/man8/yum-arch.8*
+%{_datadir}/yum-arch/
+%{_bindir}/yum-arch
+
+%changelog
+* Thu Oct 09 2008 Dag Wieers <dag at wieers.com> - 2.2.2-1
+- Initial package. (based on Fedora)


Property changes on: trunk/rpms/yum-arch/yum-arch.spec
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native




More information about the commits mailing list