[packman] [PM] mediatomb 0.11.0-3.pm.4.1 (openSUSE 11.2/i586)

frank.heil at heil-level.de frank.heil at heil-level.de
Sun Jan 17 08:08:55 CET 2010


Hallo Toni,

ich habe den svn-checkout nach mediatomb-0.12.2056 gelegt und ein tar namens
mediatomb-0.12.2056.tar.gz erstellt. Dann gemäß Deiner letzten E-Mail von
gestern nach SOURCES kopiert.

Ich habe libxul disabled, brauchte ich bisher für den build nicht und auch die
beiden patches, waren ja für Version 0.11.

rpmbuild meckert aber das fehlende ./configure an, ich habe mal ein autorefonf
-i im entsp. Verz. aufgerufen, aber das nützt ja nichts, weil beim build das
Verz. gelöscht wird (habe ich erst danach gesehen). Nach dem aufruf hatte ich
ein ./configure file!

Hier mein build-log:
--------------------------
$> /usr/src/packages/SPECS # rpmbuild -bb mediatomb.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.JBBqad
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf mediatomb-0.12.2056
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/mediatomb-0.12.2056.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mediatomb-0.12.2056
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /bin/cp /usr/src/packages/SOURCES/config.xml.tmp .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Qp79C3
+ umask 022
+ cd /usr/src/packages/BUILD
+ /bin/rm -rf /usr/src/packages/BUILDROOT/mediatomb-0.12.2056-3.pm.4.1.x86_64
++ dirname /usr/src/packages/BUILDROOT/mediatomb-0.12.2056-3.pm.4.1.x86_64
+ /bin/mkdir -p /usr/src/packages/BUILDROOT
+ /bin/mkdir /usr/src/packages/BUILDROOT/mediatomb-0.12.2056-3.pm.4.1.x86_64
+ cd mediatomb-0.12.2056
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.1wkz7T
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd mediatomb-0.12.2056
+ CFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables'
+ export FFLAGS
+ ./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu
--target=x86_64-suse-linux --program-prefix= --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib
--localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --prefix=/usr --enable-sqlite3 --enable-mysql
--enable-curl --enable-ffmpeg --enable-libmagic --enable-libexif
--enable-inotify --enable-libjs --enable-taglib
/var/tmp/rpm-tmp.1wkz7T: Zeile 36: ./configure: Datei oder Verzeichnis nicht
gefunden
error: Bad exit status from /var/tmp/rpm-tmp.1wkz7T (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.1wkz7T (%install)
--------------------------

Meine spec sieht so aus:
--------------------------
# Copyright (c) 2007-2010 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni at links2linux.de

# norootforbuild

%define _with_js    1

Name:            mediatomb
Summary:        UPnP AV MediaServer
Version:        0.12.2056
Release:        3.pm.4.1
License:        GPL
Group:            Productivity/Multimedia/Other
Source0:        %{name}-%{version}.tar.gz
Source1:        rcmediatomb
Source2:        config.xml.tmp
Source90:        %{name}-rpmlintrc
#Patch0:            %{name}-ffmpeg.patch
#Patch1:            %{name}_fedora11.patch
URL:            http://mediatomb.cc
BuildRoot:        %{_tmppath}/%{name}-%{version}-buildroot
PreReq:            %insserv_prereq
PreReq:            coreutils
PreReq:            grep
PreReq:            pwdutils
BuildRequires:    file-devel
BuildRequires:    gcc-c++
BuildRequires:    curl-devel
BuildRequires:    id3lib-devel
BuildRequires:    libexif-devel
#BuildRequires:    libextractor-devel
BuildRequires:    libexpat-devel
BuildRequires:    libffmpeg-devel
BuildRequires:    libjack-devel
BuildRequires:    mDNSResponder-lib
%if %suse_version > 1110
BuildRequires:    libmysqlclient-devel
%else
BuildRequires:    mysql-devel
%endif
BuildRequires:    pwdutils
BuildRequires:    sqlite-devel
BuildRequires:    taglib-devel taglib

BuildRequires:    mozilla-nspr

%if "%{_with_js}" == "1"
BuildRequires:    libjs-devel
#%if %suse_version > 1110
#BuildRequires:  mozilla-xulrunner191-devel
#%else
#BuildRequires:  mozilla-xulrunner190-devel
#%endif
%endif

Requires:        %{name}-dbbackend
Requires:        logrotate

%description
MediaTomb - UPnP AV Mediaserver for Linux.
[...]
addionally one db backend: mediatom-sqlite or mediatomb-mysql

%package mysql
Summary:    UPnP AV MediaServer mysql
Group:        Productivity/Multimedia/Other
PreReq:        coreutils
Requires:    mysql
Requires:    %{name} = %{version}
Conflicts:    %{name}-sqlite
Provides:    %{name}-dbbackend

%description mysql
MediaTomb - UPnP AV Mediaserver for Linux.
[...]
This package contains a mysql AND sqlite enabled binary.

%package sqlite
Summary:    UPnP AV MediaServer sqlite
Group:        Productivity/Multimedia/Other
PreReq:        coreutils
Requires:    sqlite
Requires:    %{name} = %{version}
Conflicts:    %{name}-mysql
Provides:    %{name}-dbbackend

%description sqlite
MediaTomb - UPnP AV Mediaserver for Linux.

[...]
This package contains a sqlite enabled binary.

%debug_package

%prep
%setup -q %{name}-%{version}
#%patch0 -p1
#%patch1 -p1

%__cp %{SOURCE2} .

%build
# otherwise rpmlint is yelling:
#... rpm-buildroot-usage ...

%install
#%if "%{_with_js}" == "1"
#jsincludedir=`grep "includedir=" %{_libdir}/pkgconfig/libxul.pc  | awk -F =
'{print $2}'`
#jslibdir=`grep "sdkdir=" %{_libdir}/pkgconfig/libxul.pc  | awk -F = '{print
$2}'`
#%endif

#-enable-libjs --with-js-h=%{_includedir}/xulrunner-sdk-1.9.1/js/

###################
# build the sqlite/mysql enabled mediatomb
%configure \
--------------------------

Hast Du einen Tipp für mich?

Ich vermute mal, dass ich das autoreconf -i in das SPEC einbauen muss?!?

Gruß Frank


More information about the Packman mailing list