1file2pacDep(1rrp) rpmrebuild plugin file2pacDep(1rrp)
2
3
4
6 file2pacDep.plug - a plugin for rpmrebuild, to change file dependencies
7 into package dependencies
8
10 rpmrebuild --include file2pacDep.plug <packagename>
11 or
12 rpmrebuild --change-spec-requires="file2pacDep.sh [option]" <packageā
13 name>
14 the first form apply all changes
15 the second allow to choose which part to change, and plugin options
16
17
19 this plugin is to replace all package's files dependencies to package
20 dependencies.
21 For example, a dependency to /bin/bash will be changed to a dependency
22 to bash package, the same for libraries.
23
25 -f, --file
26 just apply changes on files with path (ex : /bin/bash)
27
28 -l, --lib
29 just apply changes on libraries file (ex : libc.so)
30
31 -h, --help
32 output help information about plugins option and exit.
33
34 -v, --version
35 print plugin version and exit
36
37 -V, --forceversion
38 add a dependency to current version (>=)
39
41 file2pacDep.plug
42 is the 'include file' for a quicker use
43
44 file2pacDep.sh
45 contains the code
46
47 file2pacDep.plug.1
48 is this man page
49
51 "normal" rpm dependencies are :
52
53 $ rpm -qR rpm
54 gawk
55 fileutils
56 textutils
57 mktemp
58 shadow-utils
59 popt = 1.6.4
60 /bin/sh
61 /bin/sh
62 /bin/sh
63 rpmlib(CompressedFileNames) <= 3.0.4-1
64 ld-linux.so.2
65 libbz2.so.1
66 libc.so.6
67 libpopt.so.0
68 libpthread.so.0
69 librpm-4.0.4.so
70 librpmbuild-4.0.4.so
71 librpmdb-4.0.4.so
72 librpmio-4.0.4.so
73 librt.so.1
74 libz.so.1
75 /bin/sh
76 libc.so.6(GLIBC_2.0)
77 libc.so.6(GLIBC_2.1)
78 libc.so.6(GLIBC_2.1.3)
79 libc.so.6(GLIBC_2.2)
80 libc.so.6(GLIBC_2.2.3)
81 libpthread.so.0(GLIBC_2.0)
82 librt.so.1(GLIBC_2.1)
83
84
85 now build a modified package:
86
87 rpmrebuild --include file2pacDep.plug rpm
88
89 and the result is :
90
91 $ rpm -qpR rpm-4.0.4-7x19.i386.rpm
92 rpmlib(VersionedDependencies) <= 3.0.3-1
93 popt = 1.6.4
94 bash
95 bzip2-libs
96 fileutils
97 gawk
98 glibc
99 mktemp
100 popt
101 rpm
102 shadow-utils
103 textutils
104 zlib
105 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
106 rpmlib(CompressedFileNames) <= 3.0.4-1
107
108
109
111 Eric Gerbier <gerbier@users.sourceforge.net>
112
113 See <URL:http://rpmrebuild.sourceforge.net/>.
114
116 this plugin is given as an example of what can be done
117
119 rpmrebuild is copyright (C) 2004 by Eric Gerbier.
120 this program is distributed under GNU General Public License
121 It is provided "as is", without any express or implied warranties. See
122 the file COPYING for details.
123
124
126 rpm(8), rpmbuild(8), rpmrebuild_plugins(1)
127 compat_digest.plug(1), demo.plug(1), demofiles.plug(1), nodoc.plug(1),
128 uniq.plug(1), file2pacDep.plug(1) set_tag.plug(1) unset_tag.plug(1)
129 man -k rrp for plugins specific manpages
130
131
132
133Eric Gerbier 2.15 file2pacDep(1rrp)