Code

Ticket #3338: build_rpm.diff

File build_rpm.diff, 1.0 KB (added by Dirk Datzert <dummy@…>, 7 years ago)

rpm_install script and setup.cfg update

Line 
1Index: setup.cfg
2===================================================================
3--- setup.cfg   (Revision 4368)
4+++ setup.cfg   (Arbeitskopie)
5@@ -1,3 +1,4 @@
6 [bdist_rpm]
7 doc_files = docs/*.txt
8+install-script = scripts/rpm-install.sh
9 
10Index: scripts/rpm-install.sh
11===================================================================
12--- scripts/rpm-install.sh      (Revision 0)
13+++ scripts/rpm-install.sh      (Revision 0)
14@@ -0,0 +1,19 @@
15+#! /bin/sh
16+#
17+# this file is *inserted* into the install section of the generated
18+# spec file
19+#
20+
21+# this is, what dist.py normally does
22+python setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES"
23+
24+for i in `cat INSTALLED_FILES`; do
25+  if [ -f ${RPM_BUILD_ROOT}/$i ]; then
26+    echo $i >>FILES
27+  fi
28+  if [ -d ${RPM_BUILD_ROOT}/$i ]; then
29+    echo %dir $i >>DIRS
30+  fi
31+done
32+
33+cat DIRS FILES >INSTALLED_FILES
34
35Eigenschaftsänderungen: scripts/rpm-install.sh
36___________________________________________________________________
37Name: svn:executable
38   + *
39Name: svn:eol-style
40   + native
41