spec file, path problem
Michael Schwendt
bugs.michael at gmx.net
Mon Sep 5 09:38:50 UTC 2005
On Mon, 05 Sep 2005 11:19:32 +0200, Rakotomandimby Mihamina wrote:
> Hi,
>
> I'm trying to make RPM of the eq-xmms package.
> I took an SRC.RPM of mdk, then tried to deal with it.
>
> The binary package would be about just one file (libeq.so) to copy to
> the xmms effects plugins directory (/usr/lib/xmms/Effect)
>
> When building the rpm, I get:
>
> ========================================================
> + /usr/bin/make prefix=/var/tmp/xmms-eq-buildroot/usr
> exec_prefix=/var/tmp/xmms-eq-buildroot/usr
> bindir=/var/tmp/xmms-eq-buildroot/usr/bin
> sbindir=/var/tmp/xmms-eq-buildroot/usr/sbin
> sysconfdir=/var/tmp/xmms-eq-buildroot/etc
> datadir=/var/tmp/xmms-eq-buildroot/usr/share
> includedir=/var/tmp/xmms-eq-buildroot/usr/include
> libdir=/var/tmp/xmms-eq-buildroot/usr/lib
Watch above line closely!
> error: File not
> found: /var/tmp/xmms-eq-buildroot/usr/lib/xmms/Effect/libeq.so
Compare with your %build section!
> I cant see where is the problem. Toshio Kuratomi, at fedora-devel tells
> me that the configure script would be wrong because the thing will be
> install at /usr/lib. What should I do?
>
> Here is he specfile:
>
> ============================================================
> %define name xmms-eq
> %define version 0.6
> %define release fc4
>
> Summary: Equalizer plugin for XMMS
> Name: %{name}
> Version: %{version}
> Release: %{release}
> Group: Sound
> URL: http://equ.sourceforge.net/
> Source:http://prdownloads.sourceforge.net/equ/eq-xmms-%{version}.tar.bz2
> Patch: eq-xmms-0.6-no-autodetect.patch.bz2
> License: GPL
> Requires: xmms >= 1.0.1
> BuildRequires: xmms-devel
> BuildRequires: xmms
> BuildRoot: %{_tmppath}/%{name}-buildroot
>
> %description
> EQU is a realtime graphical equalizer effect plugin that will equalize
> almost everything that you play through XMMS, not just the MP3s.
>
> %prep
>
> %setup -q -n eq-xmms-%{version}/
> %patch -p1 -b .auto
> aclocal
> autoconf
> automake
> libtoolize --force
>
> %build
>
> %configure --libdir=%{_libdir}/xmms/Effect/
Here you override %_libdir, but you don't do the same with
%makeinstall.
> %{__make}
> libtool --finish %{_libdir}/xmms/Effect/
This is wrong for buildroot based installation.
> %install
> #%{__rm} -rf %{buildroot}
> %makeinstall
Bzzz! This installs into default %buildroot/%_libdir, but not
into %buildroot/%_libdir/xmms/Effect/
> %{__rm} -f %{buildroot}%{_libdir}/xmms/Effect/libeq.la
More information about the fedora-extras-list
mailing list