aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorshnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-03-07 15:11:48 +0000
committershnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8>2007-03-07 15:11:48 +0000
commitf9dfbdf7476362e1aaf755e8563434e37167407d (patch)
treee59b4b8c07341151edee8f7a799e3ec21a53b2d6 /src
parentd46378c14b7e30738c66ca0c85becbc7fef68411 (diff)
downloadsos-f9dfbdf7476362e1aaf755e8563434e37167407d.tar.gz
Implemented work-around against bug in bdist_rpm:
http://sourceforge.net/tracker/index.php?func=detail&aid=644744&group_id=5470&atid=105470 git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@89 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src')
-rw-r--r--src/MANIFEST.in2
-rwxr-xr-xsrc/install-rpm.sh3
-rw-r--r--src/setup.cfg1
3 files changed, 5 insertions, 1 deletions
diff --git a/src/MANIFEST.in b/src/MANIFEST.in
index 11193668..8c858b64 100644
--- a/src/MANIFEST.in
+++ b/src/MANIFEST.in
@@ -1,4 +1,4 @@
# NOTE: Including sosreport here is a hack. This
# is done because the data_files handling from setup.py
# is broken for building dists (at least in Python 2.3)
-include README TODO sosreport MANIFEST.in
+include README TODO sosreport sosreport.1 MANIFEST.in
diff --git a/src/install-rpm.sh b/src/install-rpm.sh
new file mode 100755
index 00000000..a9c9e1ef
--- /dev/null
+++ b/src/install-rpm.sh
@@ -0,0 +1,3 @@
+python setup.py install --optimize 1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
+# 'brp-compress' gzips the man pages without distutils knowing... fix this
+sed -i -e 's@man/man\([[:digit:]]\)/\(.\+\.[[:digit:]]\)$@man/man\1/\2.gz@g' INSTALLED_FILES
diff --git a/src/setup.cfg b/src/setup.cfg
index 5005a84b..ad1e9487 100644
--- a/src/setup.cfg
+++ b/src/setup.cfg
@@ -10,3 +10,4 @@ requires = python >= 0:2.3
release = 1
packager = Steve Conklin <sconklin@redhat.com>
doc_files = README TODO
+install_script = install-rpm.sh