I've run into a snag building avidemux 2.3
here are the spec file (Below) & source I'm building with. source is here
http://jimlawrnc.mine.nu/mywiki/AvidemuxAvi
I did find a spidermonkey rpm and installed but same error
spidermonkey rpm here -->
http://packages.ccux-linux.de/index.php?pdetail=1027
Quote:
%define name avidemux
%define ver 2.3.0
%define rel 1
%define prefix /usr
Summary: A graphical multiplex/demultiplex tool using GTK.
Name: %name
Version: %ver
Release: %rel
License: GPL
Group: Applications/Multimedia
Packager: James Lawrence <jimlawrnc@gmail.com>
Source: %{name}-%{version}.tar.gz
URL: http://fixounet.free.fr/avidemux/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gcc >= 2.96
BuildRequires: glib-devel
BuildRequires: gtk+-devel >= 2.0.0
BuildRequires: nasm >= 0.98.22
Requires: glib
Requires: gtk+ >= 2.0.0
%description
Avidemux is a graphical tool to edit AVI. It allows you to multiplex and
demultiplex audio to/from video.
It is able to cut video, import BMP, MJPEG and MPEG video, and encode them.
You can also process video with included filters. It requires a DivX
compatible encoder and the Gimp Toolkit (GTK) libraries.
%prep
%setup
%build
LC_MESSAGES=C ; export LC_MESSAGES
if [ ! -f configure ]; then
CC=gcc CXX=g++ \
CFLAGS="$RPM_OPT_FLAGS" \
CXXFLAGS="$RPM_OPT_FLAGS" \
./autogen.sh \
--prefix=%{_prefix} \
--datadir=%{_datadir}/%{name} \
--sysconfdir=%{_sysconfdir}/%{name} \
--host=%{_target_platform} \
--disable-warnings
else
CC=gcc CXX=g++ \
CFLAGS="$RPM_OPT_FLAGS" \
CXXFLAGS="$RPM_OPT_FLAGS" \
./configure --with-jsapi-include=/usr/include/firefox-2.0.0.1/js/jsapi.h \
--prefix=%{_prefix} \
--datadir=%{_datadir}/%{name} \
--sysconfdir=%{_sysconfdir}/%{name} \
--host=%{_target_platform} \
--disable-warnings
fi
# if RPM_BUILD_NCPUS unset, set it
if [ -z "$RPM_BUILD_NCPUS" ] ; then
if [ -x /usr/bin/getconf ] ; then
RPM_BUILD_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN)
if [ $RPM_BUILD_NCPUS -eq 0 ]; then
RPM_BUILD_NCPUS=1
fi
else
RPM_BUILD_NCPUS=1
fi
fi
#make -j$RPM_BUILD_NCPUS
make
%install
rm -rf %{buildroot}
%makeinstall
%clean
rm -rf %{buildroot}
%files
%defattr(755, root, root)
%{_bindir}/%{name}
%changelog
* Tue Jan 02 2007 James Lawrence <jimlawrnc@gmail.com> 2.3.0
- built for 2.3 release
- configure with firefox 2.0
|
Error
Quote:
checking for jsapi.h... no
configure: WARNING: I did not find a working copy of jsapi.h and the associated library.
configure: WARNING: <1>- Not reachable : Make sure you have spidermonkey installed
configure: WARNING: Then use --with-jsapi-include=/path/to/jsapi.h/
configure: WARNING: <2>- Make sure the library is in your LD_LIBRARY_PATH and/or LDFLAGS
configure: WARNING: <3>- Make sure multithreading is enabled in your spidermonkey
configure: WARNING: The ones from mozilla-dev or firefox-dev are ok
configure: error: *** Working SPIDERMONKEY javascript engine not found !***
error: Bad exit status from /var/tmp/rpm-tmp.41459 (%build)
|
hence in the configure section of the spec file above highlighted in red