[meego-packaging] What's the expansion of macro %qmake_install
Luis Araujo
luis.araujo at collabora.co.uk
Tue Nov 16 23:06:33 PST 2010
%qmake_install just expands to:
make install INSTALL_ROOT=%{buildroot}
You need to install the qt-qmake package, and you should find
that macro in /etc/rpm/macros.qmake.
Regards,
On 11/17/2010 01:07 AM, Leaf John wrote:
> As the community stop armv5el build, I launch a armv5el build for
> meego 1.1 sources in our local obs server. And I've got some failed case,
> especially these use the macro %qmake_install.
>
> I want to know what did this macro 'qmake_install' stand for, and where to find
> its defination, I've check the file /usr/lib/rpm/macro in the server's
> build root, but
> didn't find this macro.
>
>
> This was the error information.
>
> """
> + GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
> + %qmake_install
> /var/tmp/rpm-tmp.Y71xyr: line 37: fg: no job control
> error: Bad exit status from /var/tmp/rpm-tmp.Y71xyr (%install)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.Y71xyr (%install)
> """
>
>
> Server is running opensuse 11.3, and obs version is 2.1.1
>
> This is the .sepc file for the error package:
>
> """
>
> #
> # Do NOT Edit the Auto-generated Part!
> # Generated by: spectacle version 0.19
> #
> #>> macros
> #<< macros
>
> Name: libmeegotouch
> Summary: MeeGo Touch Framework
> Version: 0.20.25
> Release: 7.2
> Group: System/Libraries
> License: LGPLv2.1
> URL: http://meego.gitorious.org/meegotouch/libmeegotouch
> Source0: %{name}-%{version}.tar.bz2
> Source100: libmeegotouch.yaml
> Patch0: libmeegotouch-0.20.1-Changes-Read-target-device-from-GConf.patch
> Patch1: libmeegotouch-0.20.1-Fix-Ensure-rowsRemoved-updates-visible-cells.patch
> Patch2: libmeegotouch-0.20.1-ARMv5-build-failure.patch
> Patch3: libmeegotouch-0.20.1-Add-various-devices-to-device-conf.patch
> Patch4: libmeegotouch-0.20.10-Workaround-icu-config-bug.patch
> Patch5: libmeegotouch-0.20.10-missing-Epoch-function.patch
> Patch6: libmeegotouch-0.20.15-Revert-c90025d6bde5184346d8bbe148effd47aef354af-Fixe.patch
> Patch7: libmeegotouch-0.20.15-ARM-QEMU-stall-fix.patch
> Patch8: fix_locale_build_issue.patch
> Patch9: fix_mbubble_build_issue.patch
> Patch10: re-enable_code_to_set_orientation.patch
> Patch11: include_order.patch
> Patch12: arm_ftbfs_egl.patch
> Patch13: hide_status_bar_for_vkb.patch
> Requires: meegotouch-theme>= 0.20.14
> Requires(pre): GConf2
> Requires(preun): GConf2
> Requires(post): /sbin/ldconfig
> Requires(post): GConf2
> Requires(postun): /sbin/ldconfig
> BuildRequires: pkgconfig(QtCore)>= 4.7.0
> BuildRequires: pkgconfig(QtDBus)
> BuildRequires: pkgconfig(QtOpenGL)
> BuildRequires: pkgconfig(QtNetwork)
> BuildRequires: pkgconfig(QtGui)
> BuildRequires: pkgconfig(gstreamer-0.10)
> BuildRequires: pkgconfig(gstreamer-base-0.10)
> BuildRequires: pkgconfig(gstreamer-plugins-base-0.10)
> BuildRequires: pkgconfig(dbus-1)
> BuildRequires: pkgconfig(xdamage)
> BuildRequires: pkgconfig(icu)
> BuildRequires: pkgconfig(x11)
> BuildRequires: pkgconfig(gconf-2.0)
> BuildRequires: pkgconfig(contextprovider-1.0)
> BuildRequires: icu
> BuildRequires: fdupes
> Provides: libdui>= 0.20.0
> Obsoletes: libdui< 0.20.0
>
>
> %description
> Qt based MeeGo Touch Framework for developing touch based user interfaces
>
>
>
> %package devel
> Summary: Development files for the MeeGo Touch Framework
> Group: Development/Libraries
> Requires: %{name} = %{version}-%{release}
> BuildRequires: desktop-file-utils
>
> %description devel
> This package contains the files necessary to develop
> applications using the touch framework.
>
>
> %package qtstyle
> Summary: QtStyle plugin for the MeeGo Touch Framework
> Group: System/Libraries
> Requires: %{name} = %{version}-%{release}
> BuildRequires: desktop-file-utils
>
> %description qtstyle
> This package contains the QtStyle plugin for the MeeGo Touch Framework
>
>
>
> %prep
> %setup -q -n %{name}-%{version}
>
> # libmeegotouch-0.20.1-Changes-Read-target-device-from-GConf.patch
> %patch0 -p1
> # libmeegotouch-0.20.1-Fix-Ensure-rowsRemoved-updates-visible-cells.patch
> %patch1 -p1
> # libmeegotouch-0.20.1-ARMv5-build-failure.patch
> %patch2 -p1
> # libmeegotouch-0.20.1-Add-various-devices-to-device-conf.patch
> %patch3 -p1
> # libmeegotouch-0.20.10-Workaround-icu-config-bug.patch
> %patch4 -p1
> # libmeegotouch-0.20.10-missing-Epoch-function.patch
> %patch5 -p1
> # libmeegotouch-0.20.15-Revert-c90025d6bde5184346d8bbe148effd47aef354af-Fixe.patch
> %patch6 -p1
> # libmeegotouch-0.20.15-ARM-QEMU-stall-fix.patch
> %patch7 -p1
> # fix_locale_build_issue.patch
> %patch8 -p1
> # fix_mbubble_build_issue.patch
> %patch9 -p1
> # re-enable_code_to_set_orientation.patch
> %patch10 -p1
> # include_order.patch
> %patch11 -p1
> # arm_ftbfs_egl.patch
> %patch12 -p1
> # hide_status_bar_for_vkb.patch
> %patch13 -p1
> #>> setup
> #<< setup
>
> %build
> #>> build pre
> #PlainQt plugin isn't rendering properly - disabling for now
> #./configure -prefix /usr -release -plainqt
> ./configure -prefix /usr -release
> make %{?jobs:-j%jobs}
> #<< build pre
>
>
>
> #>> build post
> #<< build post
> %install
> rm -rf %{buildroot}
> #>> install pre
> export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
> %qmake_install
> #<< install pre
>
> #>> install post
> mkdir -p %{buildroot}/etc/profile.d
> echo "export M_DECORATED=0"> %{buildroot}/etc/profile.d/libmeegotouch.sh
>
> %define GCONF_CONFIG_SOURCE `gconftool-2 --get-default-source`
> gconftool-2 --direct --config-source %{GCONF_CONFIG_SOURCE}
> --makefile-install-rule src/meegotouch.schemas
>
> #Fix rpmlint errors - some header files have invalid permissions
> chmod 644 %{buildroot}/usr/include/meegotouch/mrichtexteditstyle.h
> chmod 644 %{buildroot}/usr/include/meegotouch/mrichtextedit.h
>
> # Pre-create and chmod the mthemedaemon cache dir
> mkdir -p %{buildroot}/var/cache/meegotouch
>
> # Remove known zero-length files
> rm %{buildroot}/usr/share/qtstyleexample/themes/style/qtstyleexample.css
> rm %{buildroot}/usr/share/animatedlayout/themes/animatedlayout.conf
>
> rm %{buildroot}/usr/share/themes/base/meegotouch/widgetsgallery/feedbacks/press-babytoy/vibra.ivt
>
> rm %{buildroot}/usr/share/themes/base/meegotouch/widgetsgallery/feedbacks/release-space/vibra.ivt
>
> rm %{buildroot}/usr/share/themes/devel/meegotouch/widgetsgallery/style/widgetsgallery.css
>
> rm %{buildroot}/usr/share/themes/base/meegotouch/widgetsgallery/widgetsgallery.conf
>
> rm %{buildroot}/usr/share/themes/base/meegotouch/widgetsgallery/feedbacks/press-space/vibra.ivt
>
> rm %{buildroot}/usr/share/themes/base/meegotouch/widgetsgallery/feedbacks/release-babytoy/vibra.ivt
> #<< install post
> %fdupes %{buildroot}/%{_datadir}
>
> %pre
> if [ "$1" -gt 1 ]; then
> export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
> gconftool-2 --makefile-uninstall-rule \
> /etc/gconf/schemas/meegotouch.schemas \
> > /dev/null || :
> fi
>
> %preun
> if [ "$1" -eq 0 ]; then
> export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
> gconftool-2 --makefile-uninstall-rule \
> /etc/gconf/schemas/meegotouch.schemas \
> > /dev/null || :
> fi
>
> %post
> /sbin/ldconfig
> export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
> gconftool-2 --makefile-install-rule \
> /etc/gconf/schemas/meegotouch.schemas> /dev/null || :
>
> %postun -p /sbin/ldconfig
>
>
> """
> I skip the changes section& files section.
>
>
>
More information about the MeeGo-packaging
mailing list