Résumé du test : plasmoid : one-line calculator
http://www.kde-look.org/content/show.php/One-Line+Calculator?content=89524
Résumé de la description :
Pas mal de problème ont pu être résolu grâce à Eponyme, mais il en reste un dernier ('fin j'espére :hammer:) :
Le fichier spec :
Name: onelinecalc
Version: 0.1
Release: 0.1%{?dist}
Summary: One-line Calculator plasmoid for KDE4
Group: User Interface/Desktop
License: GPL
URL: http://www.kde-look.org/content/show.php/One-Line+Calculator?content=89524
Source0: http://www.kde-look.org/CONTENT/content-files/89524-onelinecalc.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: cmake
Requires: kdebase=>4.1
%description
Plasmoid that provides a one-line Calculator.
%prep
%setup -q -n %{name}
%build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$RPM_BUILD_ROOT/kde4-config --prefix" ..
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
cd build
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc
Lorsque je le lance :
[builder@teatime SPECS]$ rpmbuild -bi onelinecalc.spec
Exécution_de(%prep): /bin/sh -e /var/tmp/rpm-tmp.EO7oX5
+ umask 022
+ cd /home/builder/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/builder/rpmbuild/BUILD
+ rm -rf onelinecalc
+ /usr/bin/gzip -dc /home/builder/rpmbuild/SOURCES/89524-onelinecalc.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd onelinecalc
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Exécution_de(%build): /bin/sh -e /var/tmp/rpm-tmp.XRKTBY
+ umask 022
+ cd /home/builder/rpmbuild/BUILD
+ cd onelinecalc
+ LANG=C
+ export LANG
+ unset DISPLAY
+ mkdir build
+ cd build
+ cmake '-DCMAKE_INSTALL_PREFIX=/home/builder/rpmbuild/BUILDROOT/onelinecalc-0.1-0.1.fc10.x86_64/kde4-config --prefix' ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib64/ccache/gcc
-- Check for working C compiler: /usr/lib64/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.4.3 (using /usr/bin/qmake-qt4)
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found Phonon: /usr/lib64/libphonon.so
-- Found Phonon Includes: /usr/include/KDE;/usr/include
-- Found KDE 4.1 include dir: /usr/include/kde4
-- Found KDE 4.1 library dir: /usr/lib64/kde4/devel
-- Found KDE4 kconfig_compiler4 preprocessor: /usr/bin/kconfig_compiler4
-- Found automoc4: /usr/bin/automoc4
-- Found Plasma: /usr/lib64/libplasma.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/builder/rpmbuild/BUILD/onelinecalc/build
+ make -j3
Generating moc_onelinecalc.cpp
Scanning dependencies of target plasma_onelinecalc
Generating moc_onelinecalc.cpp
[ 50%] Building CXX object CMakeFiles/plasma_onelinecalc.dir/onelinecalc.o
[100%] Building CXX object CMakeFiles/plasma_onelinecalc.dir/plasma_onelinecalc_automoc.o
Linking CXX shared module lib/plasma_onelinecalc.so
[100%] Built target plasma_onelinecalc
+ exit 0
Exécution_de(%install): /bin/sh -e /var/tmp/rpm-tmp.Am1hc6
+ umask 022
+ cd /home/builder/rpmbuild/BUILD
+ cd onelinecalc
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /home/builder/rpmbuild/BUILDROOT/onelinecalc-0.1-0.1.fc10.x86_64
+ cd build
+ make install DESTDIR=/home/builder/rpmbuild/BUILDROOT/onelinecalc-0.1-0.1.fc10.x86_64
[100%] Built target plasma_onelinecalc
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /home/builder/rpmbuild/BUILDROOT/onelinecalc-0.1-0.1.fc10.x86_64/home/builder/rpmbuild/BUILDROOT/onelinecalc-0.1-0.1.fc10.x86_64/kde4-config --prefix/lib/kde4/plasma_onelinecalc.so
-- Set runtime path of "/home/builder/rpmbuild/BUILDROOT/onelinecalc-0.1-0.1.fc10.x86_64/home/builder/rpmbuild/BUILDROOT/onelinecalc-0.1-0.1.fc10.x86_64/kde4-config --prefix/lib/kde4/plasma_onelinecalc.so" to "/home/builder/rpmbuild/BUILDROOT/onelinecalc-0.1-0.1.fc10.x86_64/kde4-config --prefix/lib:/usr/lib64/kde4/devel"
-- Installing: /home/builder/rpmbuild/BUILDROOT/onelinecalc-0.1-0.1.fc10.x86_64/home/builder/rpmbuild/BUILDROOT/onelinecalc-0.1-0.1.fc10.x86_64/kde4-config --prefix/share/kde4/services/plasma-onelinecalc.desktop
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id /home/builder/rpmbuild/BUILD/onelinecalc
stat: unrecognized option '--prefix/lib/kde4/plasma_onelinecalc.so'
Try `stat --help' for more information.
erreur: Mauvais status de sortie pour /var/tmp/rpm-tmp.Am1hc6 (%install)
Erreur de construction de RPM:
Mauvais status de sortie pour /var/tmp/rpm-tmp.Am1hc6 (%install)
Il n'aime pas le --prefix/lib/kde4/plasma_onelinecalc.so qui découle me semble-t-il de l'option passé à cmake. Cependant cette option est obligatoire
(
http://www.kde-look.org/help/index.php?type=70)
Il faut aussi régler le problème des dépendances, mais je en me rappelle plus où j'ai noté la librairie en question ... je regarderai ça plus tard.
Merci 🙂