[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gEDA: Re: gEDA installation / gerbv-0.0.6 rpms
Hi Wojciech and all,
I tried your instructions below.
After this the output of "rpm -qa|grep guile" looks like:
guile134-1.3.4-1
guile-1.4-5cl
guile-devel-1.4-5cl
You need to install guile-devel-1.4-5cl.i386.rpm as well, for instance
for compiling gerbv-0.0.6 .
This is indicated by the .configure script.
I have included this in the attached file: "gerbv-0.0.6.report".
------
If we take the gerbv-0.0.5-1.spec > gerbv-0.0.6-1.spec file you wrote
and we leave things to the "make install" command, the examples and
scheme files are not installed in the $RPM_BUILD_ROOT (and RPM).
The scheme files are put in /usr/share/gerbv/scheme regardless the
--prefix .
The examples files (if you would like to have them in
/usr/share/examples/gerbv-0.0.6/ for instance) are also not installed in
the $RPM_BUILD_ROOT.
I have still not mastered the art of getting the example files in
/usr/share/doc/gerbv-0.0.6/examples, so instead I put the in
/usr/share/examples/gerbv-0.0.6 .
I think this has to do with:
export DOCDIR
rm -rf /var/tmp/usr/share/doc/gerbv-0.0.6
during the execution of the %doc section in the spec file and before
putting all the (marked) documentation files in a newly made directory
(this is default behaviour of rpm scripts for whatever reason).
So if we want the scheme and example files in the rpm we have to change
the makefile (or install by hand and remove the /usr/share/gerbvv/scheme
files in the %clean section of the spec file.
See attached spec file: "gerbv-0.0.6-1.spec".
Kind regards and best wishes,
Bert Timmerman.
Wojciech Kazubski wrote:
>
> HI ALL!
>
> I also had a problem with guile. Gschem seems to compile with guile-1.3.4
> from RedHat 7.1 but gerbv needs 1.4.
> Recently I found that the gulie-1.4 from Conectiva Linux is quite compatible
> with RH 7.1 and can be installed using
> rpm -Uvh guile-1.4-5cl.i386.rpm --oldpackage
> (It is older than RedHat's)
> The rpm can be found at rpmfind.net.
> The guile 1.4 provides libguile.so.9.0.0 while the 1.3.4 contained
> libguile.so.6.0.0 and some packages may work no more. But it is possible to
> have both libraries simultaneusly.
>
> To do this I propose to make a compatibility package containing
> libgulie.so.6.0.0 to install with guile-1.4.
>
> The package can be made using the appended specfile (this does not compile
> anything but only packs some existing binaries and libraries) This MUST be
> done BEFORE upgrading guile!
>
> rpm -bb guile134.spec
>
> Then the package can be installed together with guile-1.4:
>
> rpm -Uvh guile134-1.3.4-1.i386.rpm guile-1.4-5cl.i386.rpm --oldpackage
>
> BTW: On my system (I use KDE) no other package uses guile.
>
> Wojciech Kazubski
>
> ---------------------------------------------------------------
>
> Name: guile134.spec
> Part 1.2 Type: Plain Text (text/plain)
> Encoding: base64
[root@hermes SPECS]# rpm -bb gerbv-0.0.6-1.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.68743
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf gerbv-0.0.6
+ /bin/gzip -dc /usr/src/redhat/SOURCES/gerbv-0.0.6.tar.gz
+ tar -xvvf -
drwxrwxr-x spe/spe 0 2001-12-15 12:50:23 gerbv-0.0.6/
-rw-rw-r-- spe/spe 768 2001-11-26 22:19:01 gerbv-0.0.6/CONTRIBUTORS
-rw-rw-r-- spe/spe 353 2001-10-27 11:13:24 gerbv-0.0.6/AUTHORS
-rw-rw-r-- spe/spe 10889 2001-12-15 00:23:39 gerbv-0.0.6/ChangeLog
-rw-rw-r-- spe/spe 17982 2001-08-30 22:26:43 gerbv-0.0.6/COPYING
<lot of stuff from the exploding tarball is deleted here>
-rwxr-xr-x spe/spe 5598 2001-12-15 12:50:23 gerbv-0.0.6/install-sh
-rwxr-xr-x spe/spe 722 2001-12-15 12:50:23 gerbv-0.0.6/mkinstalldirs
-rwxr-xr-x spe/spe 6283 2001-12-15 12:50:23 gerbv-0.0.6/missing
-rw-rw-r-- spe/spe 0 2001-12-15 12:50:23 gerbv-0.0.6/stamp-h.in
-rw-rw-r-- spe/spe 11620 2001-12-15 12:50:23 gerbv-0.0.6/Makefile.in
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd gerbv-0.0.6
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.77771
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd gerbv-0.0.6
+ ./configure --prefix=/usr --mandir=/usr/share/man
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether build environment is sane... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking for Guile... yes
checking for scm_make_real in -lguile... no
configure: error: **Upgrade Guile** At least version >= 1.4
Bad exit status from /var/tmp/rpm-tmp.77771 (%build)
# gerbv.spec
Summary: Gerber file viewer.
Name: gerbv
Version: 0.0.6
Release: 1
Source: %{name}-%{version}.tar.gz
Url: http://www.geda.seul.org
Packager: L.J.H. Timmerman <bert.timmerman@xs4all.nl>
Copyright: GPL
Group: Applications/Engineering
BuildRoot: /var/tmp/
%description
Gerbv is a viewer for Gerber files. Gerber files are generated from PCB CAD
system and sent to PCB manufacturers as basis for the manufacturing process.
%prep
%setup -n %{name}-%{version}
%build
./configure --prefix=/usr --mandir=/usr/share/man
make all
# install will be a bit complicated because we are not assured
# that the builder has root privileges
%install
make install prefix=$RPM_BUILD_ROOT/usr mandir=$RPM_BUILD_ROOT/usr/share/man datadir=$RPM_BUILD_ROOT/usr/share
strip $RPM_BUILD_ROOT/usr/bin/%{name}
# has to be done by hand since the makefile doesn't do this for us
install -d scheme $RPM_BUILD_ROOT/usr/share/gerbv/scheme
install -c -m 644 scheme/*.scm $RPM_BUILD_ROOT/usr/share/gerbv/scheme
install -d example/eaglecad1 $RPM_BUILD_ROOT/usr/share/examples/%{name}-%{version}/eaglecad1
install -c -m 644 example/eaglecad1/* $RPM_BUILD_ROOT/usr/share/examples/%{name}-%{version}/eaglecad1
install -d example/ekf $RPM_BUILD_ROOT/usr/share/examples/%{name}-%{version}/ekf
install -c -m 644 example/ekf/* $RPM_BUILD_ROOT/usr/share/examples/%{name}-%{version}/ekf
install -d example/ekf2 $RPM_BUILD_ROOT/usr/share/examples/%{name}-%{version}/ekf2
install -c -m 644 example/ekf2/* $RPM_BUILD_ROOT/usr/share/examples/%{name}-%{version}/ekf2
install -d example/nollezappare $RPM_BUILD_ROOT/usr/share/examples/%{name}-%{version}/nollezappare
install -c -m 644 example/nollezappare/* $RPM_BUILD_ROOT/usr/share/examples/%{name}-%{version}/nollezappare
install -d example/numpres $RPM_BUILD_ROOT/usr/share/examples/%{name}-%{version}/numpres
install -c -m 644 example/numpres/* $RPM_BUILD_ROOT/usr/share/examples/%{name}-%{version}/numpres
%clean
rm -Rf $RPM_BUILD_ROOT/%{name}-%{version}
# the following files have to be removed due to make install (they are just dumped there)
# rm /usr/share/gerbv/scheme/gerb-debug.scm have to be removed due to --prefix in make install
# rm /usr/share/gerbv/scheme/gerb-ps.scm have to be removed due to --prefix in make install
%files
%defattr(-,root,root)
%dir /usr/share/gerbv/scheme
%dir /usr/share/examples/%{name}-%{version}
/usr/bin/gerbv
/usr/share/man/man1/gerbv.*
/usr/share/gerbv/scheme/*.scm
/usr/share/examples/%{name}-%{version}/eaglecad1/*
/usr/share/examples/%{name}-%{version}/ekf/*
/usr/share/examples/%{name}-%{version}/ekf2/*
/usr/share/examples/%{name}-%{version}/nollezappare/*
/usr/share/examples/%{name}-%{version}/numpres/*
%doc AUTHORS
%doc ChangeLog
%doc CONTRIBUTORS
%doc COPYING
%doc NEWS
%doc README
%doc TODO
%changelog
* Sun Dec 16 2001 L.J.H. Timmerman <bert.timmerman@xs4all.nl>
- updated to version 0.0.6
- scheme files are put in /usr/share/gerbv/scheme ignoring --prefix
* Thu Nov 22 2001 W. Kazubski <wk@ire.pw.edu.pl>
- changed to build without root (datadir=... added)
* Wed Nov 21 2001 W. Kazubski <wk@ire.pw.edu.pl>
- initialization of spec file.
# end of file