Hi!
> > I'm about to upload an NMU for smartpm, fixing #389630 and #389633. The
> > NMU is based on the patch by Luis Rodrigo Gallardo Cruz.
> > Full diff is attached.
>
> It turned out that the patch had a small error: the rm in the bianry
> target removed a bit too much of /usr/lib. The attached patch is the
> one I've just uploaded.
Ok, I think I need coffee. The previous patch still had a missing
versioned build-dep on python-support. That's fixed in this final
patch...
--
+--------------------------------------------------------------------+
| Bas Zoetekouw | GPG key: 0644fab7 |
|----------------------------| Fingerprint: c1f5 f24c d514 3fec 8bf6 |
| [EMAIL PROTECTED] | a2b1 2bae e41f 0644 fab7 |
+--------------------------------------------------------------------+
diff -Nabur smart-0.41+svn727.eerst/debian/changelog
smart-0.41+svn727/debian/changelog
--- smart-0.41+svn727.eerst/debian/changelog 2006-10-18 18:13:39.000000000
+0200
+++ smart-0.41+svn727/debian/changelog 2006-10-18 18:31:41.687659346 +0200
@@ -1,3 +1,12 @@
+smart (0.41+svn727-1.1) unstable; urgency=medium
+
+ * NMU. Based on patch by Mario Iseli <[EMAIL PROTECTED]>
+ * Added a debian/pycompat file, build-depend now on debhelper 5.
+ * Upgraded to new python policy (Closes: #389630)
+ * Added python-rpm dependency (Closes: #389633)
+
+ -- Bas Zoetekouw <[EMAIL PROTECTED]> Wed, 18 Oct 2006 18:30:57 +0200
+
smart (0.41+svn727-1) unstable; urgency=low
* new svn snapshot
diff -Nabur smart-0.41+svn727.eerst/debian/control
smart-0.41+svn727/debian/control
--- smart-0.41+svn727.eerst/debian/control 2006-10-18 18:13:39.000000000
+0200
+++ smart-0.41+svn727/debian/control 2006-10-18 20:07:03.586632453 +0200
@@ -2,12 +2,14 @@
Section: admin
Priority: optional
Maintainer: Michael Vogt <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.0.0), python, python-dev, dpatch
+Build-Depends: debhelper (>= 5.0.37.2), python-all-dev, python-support
(>=0.3), dpatch
Standards-Version: 3.7.2
+XS-Python-Version: all
Package: smartpm
Architecture: any
-Depends: python, ${shlibs:Depends}, python2.3-pycurl, python2.3-gtk2,
python2.3-pexpect
+Depends: ${python:Depends}, ${shlibs:Depends}, python-pycurl, python-gtk2,
python-pexpect, python-rpm
+XB-Python-Version: all
Description: An alternative package manager that works with dpkg/rpm
The Smart Package Manager project has the ambitious objective of
creating smart and portable algorithms for solving adequately the
diff -Nabur smart-0.41+svn727.eerst/debian/rules smart-0.41+svn727/debian/rules
--- smart-0.41+svn727.eerst/debian/rules 2006-10-18 18:13:39.000000000
+0200
+++ smart-0.41+svn727/debian/rules 2006-10-18 19:52:59.682070436 +0200
@@ -6,7 +6,7 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-
+PYVERS=$(shell pyversions -r)
CFLAGS = -Wall -g
@@ -35,7 +35,10 @@
# Add here commands to compile the package.
#$(MAKE)
- ./setup.py build
+ set -e; \
+ for python in $(PYVERS); do \
+ $$python setup.py build; \
+ done
#/usr/bin/docbook-to-man debian/smart.sgml > smart.1
touch build-stamp
@@ -47,7 +50,11 @@
# Add here commands to clean up after the build process.
#-$(MAKE) clean
- ./setup.py clean --all
+ set -e; \
+ for python in $(PYVERS); do \
+ $$python setup.py clean --all; \
+ done
+
find . -name "*.so" -exec rm {} \;
find . -name "*.o" -exec rm {} \;
find . -name "*.pyc" -exec rm {} \;
@@ -61,7 +68,11 @@
dh_installdirs
# Add here commands to install the package into debian/smart.
- ./setup.py install --prefix=$(CURDIR)/debian/smartpm/usr
+ set -e; \
+ for python in $(PYVERS); do \
+ $$python setup.py install --prefix=$(CURDIR)/debian/smartpm/usr; \
+ done
+
install -p -m644 debian/distro.py
$(CURDIR)/debian/smartpm/usr/lib/smart/distro.py
@@ -91,7 +102,8 @@
dh_strip
dh_compress
dh_fixperms
- dh_python
+ dh_pysupport
+ rm -rf $(CURDIR)/debian/smartpm/usr/lib/python2*
dh_installdeb
dh_shlibdeps
dh_gencontrol