Commit a3bb6e24 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

generate gnome-platform.tar.gz

parent dcd91454
......@@ -12,4 +12,6 @@ packages/SRPMS/
packages/rpmdb/
gnome-sdk.tar.xz
gnome-sdk-rpmdb.tar.xz
gnome-platform.tar.xz
gnome-sdk-rpmdb.tar.xz
packages/SOURCES/gnomeos-contents-platform-x86_64.tar.gz
......@@ -59,13 +59,13 @@ packages/RPMS/x86_64/gnome-platform-base-0.1-1.x86_64.rpm: packages/SPECS/gnome-
gnome-sdk-base: packages/RPMS/x86_64/gnome-sdk-base-0.1-1.x86_64.rpm
gnome-platform.tar.gz: packages/RPMS/x86_64/gnome-platform-base-0.1-1.x86_64.rpm packages/RPMS/noarch/gnome-platform-0.1-1.noarch.rpm setup.sh build.sh
gnome-platform.tar.xz: packages/RPMS/x86_64/gnome-platform-base-0.1-1.x86_64.rpm packages/RPMS/noarch/gnome-platform-0.1-1.noarch.rpm setup.sh build.sh
echo building gnome-platform
rm -rf packages/gnome-platform
mkdir -p packages/gnome-platform/var/lib/rpm
./setup.sh root-sdk var-sdk yocto-build/x86_64/images/gnomeos-contents-sdk-x86_64.tar.gz
(./build.sh root-sdk var-sdk packages smart install --urls gnome-platform) 2> package.list
./build.sh root-sdk var-sdk packages rpm --root /self/gnome-platform --initdb
./build.sh root-sdk var-sdk packages rpm --root /self/gnome-platform -Uvh `cat package.list | grep -v "warning:"`
./build.sh root-sdk var-sdk packages ./install_rpms.sh gnome-platform
./build.sh packages/gnome-platform packages/gnome-platform/var packages /bin/sh /self/gnome-platform/post_install.sh
tar --transform 's,^packages/gnome-platform/usr/,,S' -cJvf gnome-platform.tar.xz packages/gnome-platform/usr --owner=root
-include rpm-dependencies.P
#!/bin/sh
for i in $@; do
PROG=`rpm -qp --qf '%{POSTINPROG}' $i`
if [ $PROG == '(none)' -o $PROG == '/sbin/ldconfig' ]; then
true;
elif [ $PROG == '/bin/sh' ]; then
echo "#from `basename $i`";
rpm -qp --qf '%{POSTIN}\n' $i
else
echo $PROG not supported
exit 1
fi
done
for i in $@; do
PROG=`rpm -qp --qf '%{POSTTRANSPROG}' $i`
if [ $PROG == '(none)' -o $PROG == '/sbin/ldconfig' ]; then
true;
elif [ $PROG == '/bin/sh' ]; then
echo "#from `basename $i`";
rpm -qp --qf '%{POSTTRANS}\n' $i
else
echo $PROG not supported
exit 1
fi
done
echo "#always"
echo /sbin/ldconfig
#!/bin/sh
set -x
smart install --urls $@ 2> package.list
FILES=
for i in `cat package.list | grep -v "warning:" | sed "s#file:///#/#"`; do
FILES="$FILES $i"
rpm2cpio $i | (cd /self/gnome-platform; cpio -id)
done
./generate_script.sh $FILES > /self/gnome-platform/post_install.sh
mv /self/gnome-platform/etc/* /self/gnome-platform/usr/etc/
mv /self/gnome-platform/lib/* /self/gnome-platform/usr/lib/
mv /self/gnome-platform/bin/* /self/gnome-platform/usr/bin/
......@@ -8,10 +8,14 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
Requires: gnome-platform-base
Requires: gtk3
Requires: gtk3 gtk3-immodules
Requires: hicolor-icon-theme
Requires: adwaita-icon-theme
Requires: dejavu-fonts
Requires: dbus-libs
Requires: librsvg2
Requires: dbus-glib
Requires: gobject-introspection
%description
Meta package for Gnome SDK dependencies
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment