i18n work in progress... desperately needs some housecleaning.
[barry.git] / rpm / README
blob9b2c317218dddf16fec93e20bb7cf0bac90c0be6
1 Notes on barry-bcharge.spec:
2 ----------------------------
4 This SPEC file, barry-bcharge.spec, will create a complete standalone RPM
5 for just the bcharge utility out of the official barry tarball.
7 Download the barry-0.7 tarball to /usr/src/redhat/SOURCES and this SPEC file
8 to /usr/src/redhat/SPECS, then build it like so:
10 cd /usr/src/redhat/SPECS/
11 rpmbuild -ba barry-bcharge.spec
13 (you do *not* have to be root to build - this RPM will build as a non-root
14 user, just make sure the permissions on /usr/src/redhat/* are OK for your
15 non-root user)
17 The resultant RPM will be called something akin to
18 barry-bcharge-0.7-1.i386.rpm; it will contain the binary, udev rules,
19 manpage and doc files. It must be installed as root.
21 If this is the first time installing it or the udev rules, a reboot is
22 recommended to get the udev rules working correctly. If you have already
23 installed the udev rules before, a reboot is not needed.
27 Notes on barry.spec:
28 --------------------
29 The attached spec, 'barry.spec', can be used to build a complete set of
30 installable binaries ("rpm files") for the Barry project.
32 NOTE: at this time (barry-0.6), patch #1673711 is required by this SPEC.
33 See step #3 below.
35 1) ensure you have the appropriate read/write permissions in
36 /usr/src/redhat/*; adjust as necessary.
38 2) place barry.spec in /usr/src/redhat/SPECS/
40 3) download and place barry-0.6.tar.gz and barry-0.6-udev.patch in
41 /usr/src/redhat/SOURCES/
43 As a non-root user (permissions from step #1), issue only one of the
44 following 2 choices:
46 4a) to build just the libraries and tools:
48 cd /usr/src/redhat/SPECS/
49 rpmbuild -ba barry.spec
51 4b) to build libraries, tools and GUI backup
53 cd /usr/src/redhat/SPECS/
54 rpmbuild -ba barry.spec --with gui
56 NOTE: there is also a third option, '--with opensync', to build the
57 opensync plugin. The opensync-plugin code is not ready at this time so
58 don't use it.
60 The build will create the installable set of files (adjust for version
61 updates if needed):
63 /usr/src/redhat/SRPMS/barry-0.6-1.src.rpm
64 /usr/src/redhat/RPMS/i386/barry-0.6-1.i386.rpm
65 /usr/src/redhat/RPMS/i386/libbarry-0.6-1.i386.rpm
66 /usr/src/redhat/RPMS/i386/libbarry-devel-0.6-1.i386.rpm
67 /usr/src/redhat/RPMS/i386/barry-util-0.6-1.i386.rpm
68 /usr/src/redhat/RPMS/i386/barry-gui-0.6-1.i386.rpm
69 /usr/src/redhat/RPMS/i386/barry-debuginfo-0.6-1.i386.rpm
71 At a minimum you must install barry, libbarry and barry-util in order to
72 get the commandline tools bcharge, btool and breset.
74 5) As root, do this:
76 cd /usr/src/redhat/RPMS/i386/
77 rpm -ihv barry-0.6-1.i386.rpm libbarry-0.6-1.i386.rpm
78 barry-util-0.6-1.i386.rpm
80 (the above 'rpm' command is all on one line). After installation it's
81 advised you wait a few minutes before plugging in your device; the udev
82 subsystem needs a chance to recognize the new hotplug scripts that were
83 just installed. Rebooting is also an option, but should be unnecessary.
85 NOTE: if you have installed 'barry-bcharge', the standalone package for
86 bcharge only, you will get a message that it conflicts with barry-util. You
87 *must* uninstall barry-bcharge first. This is by design, they should never
88 both be installed at once. Do not use any "rpm --force" type methods to try
89 and force them both on your system at once.
91 March 2007