Re: rpm packaging



Stephane Genaud <genaud icps u-strasbg fr> writes:

> BuildRoot: /var/tmp/%{name}-%{version}-root
> ...
> %{prefix}/share/gnome/apps/Applications/gquotes.desktop
> %{prefix}/share/locale/*/*/*
> 
> I then build my rpm with rpm -ta myapp.tar.gz, and then
> install the rpm.
> And when running the application i can see with strace,
> that the gmo files are searched in /var/tmp/

> open("/var/tmp/gquotes-0.2.26-root/usr/share/locale/fr_FR/LC_MESSAGES/gquotes.mo",
> O_RDONLY) = -1 ENOENT (No such file or directory)

Improper use of DESTDIR and/or use of an old or unpatched gettext
package by the one who made the tar ball.

Basically, spec files should go like this (if you don't use more rpm
marcos):

BuildRoot:  /var/tmp/%{name}-%{version}-root

%build
./configure --prefix=/usr ...                  # or /opt/gnome
make

%install
make DESTDIR=$RPM_BUILD_ROOT install

(Make sure po/Makefile.in is in a sane state.)

-- 
work : ke suse de                          |                   ,__o
     : http://www.suse.de/~ke/             |                 _-\_<,
home : keichwa gmx net                     |                (*)/'(*)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]