Mailinglist Archive: opensuse-commit (1093 mails)

< Previous Next >
commit moblin-branding-tools for openSUSE:Factory
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Thu, 11 Mar 2010 01:46:58 +0100
  • Message-id: <20100311004658.515BD2020F@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package moblin-branding-tools for
openSUSE:Factory
checked in at Thu Mar 11 01:46:58 CET 2010.



--------
New Changes file:

--- /dev/null 2009-09-30 08:50:26.000000000 +0200
+++
/mounts/work_src_done/STABLE/moblin-branding-tools/moblin-branding-tools.changes
2010-01-19 18:47:05.000000000 +0100
@@ -0,0 +1,7 @@
+-------------------------------------------------------------------
+Tue Jan 19 17:33:27 GMT 2010 - michael.meeks@xxxxxxxxxx
+
+- create set of helper tools, primarily to share ImageMagick magic
+ across different branding sets, but also to ensure we don't forget
+ to drop the alpha channel in artwork - for performance reasons
+

calling whatdependson for head-i586


New:
----
black-overlay.png
moblin-branding-tools.changes
moblin-branding-tools.spec
moblin-install-artwork
shutdown-label.png

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ moblin-branding-tools.spec ++++++
#
# spec file for package moblin-branding-tools (Version 0.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name: moblin-branding-tools
Summary: Tools for building moblin artwork
Group: System/GUI/Other
Version: 0.1
Release: 1
License: Other uncritical OpenSource License
Url: http://www.moblin.org
Requires: ImageMagick
Source0: moblin-install-artwork
Source1: black-overlay.png
Source2: shutdown-label.png
BuildRoot: %{_tmppath}/%{name}-%{version}-build

%description
Set of tools for moblin to make branding easy to manage.



%build

%install
rm -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{_datadir}/moblin
%{__mkdir_p} %{buildroot}/%{_bindir}
install -m 0644 %{SOURCE1} %{buildroot}/%{_datadir}/moblin
install -m 0644 %{SOURCE2} %{buildroot}/%{_datadir}/moblin
install -m 0755 %{SOURCE0} %{buildroot}/%{_bindir}/moblin-install-artwork

%files
%defattr(-,root,root,-)
%dir %{_datadir}/moblin
%{_datadir}/moblin/*
%{_bindir}/moblin-install-artwork

%changelog
++++++ moblin-install-artwork ++++++
#!/usr/bin/perl -w

use strict;

my $desktopbg;
my $destdir;
# defaults
my $local_datadir = '/usr/share/moblin';
my $black_overlay = $local_datadir . '/black_overlay.png';
my $center_label = $local_datadir . '/shutdown_label.png';
my $myzone_tile;

sub usage()
{
print 'moblin-install-artwork desktop-background.[png|jpg]
$RPMBUILDDIR/%{_datadir}'."\n";
print " [--myzone-tile myzone-background.png]\n";
print " [--suspend-overlay black-overlay.png]\n";
print " [--center-label shutdown-label.png]\n";
print " [--help]\n";
exit 1;
}

while (my $arg = shift @ARGV) {
if ($arg eq '--help' || $arg eq '-h') {
usage();
} elsif (!defined $desktopbg) {
$desktopbg = $arg;
} elsif (!defined $destdir) {
$destdir = $arg;
} elsif ($arg =~ m/--myzone[_-]tile/) {
$myzone_tile = shift @ARGV;
} elsif ($arg =~ m/--black[_-]overlay/) {
$black_overlay = shift @ARGV;
} elsif ($arg =~ m/--center[_-]label/) {
$center_label = shift @ARGV;
}
}

usage() if (!defined $desktopbg);

print "creating directories:\n";
system ("mkdir -p $destdir/mutter-moblin/theme/panel") && die "failed to create
dir: $!";
system ("mkdir -p $destdir/plymouth") && die "failed to create dir: $!";

my $workdir = `mktemp -d /tmp/mobinst.XXXXXXXX`;
chomp ($workdir);
print "building images into $workdir\n";

die "no file $desktopbg" if (! -f $desktopbg);

print "converting base image to png / de-alpha-izing\n";
system ("convert -alpha off $desktopbg $destdir/plymouth/splash-vendor.png") &&
die "failed to install splash";
system ("ln -sf ../../../plymouth/splash-vendor.png
$destdir/mutter-moblin/theme/panel/mzone-background.png") && die "failed to
link desktop background: $!";

print "building shutdown overlay from $black_overlay and $center_label\n";
system ("convert -format png $desktopbg $workdir/splash-vendor.png") && die
"failed to convert $desktopbg: $!";
system ("composite $workdir/splash-vendor.png -compose darken $black_overlay
$workdir/intermediate.png") && die "failed to darken: $!";
system ("composite -gravity Center $center_label -compose over
$workdir/intermediate.png $workdir/intermediate-rgba.png") && die "failed to
compose: $!";
system ("convert -alpha off $workdir/intermediate-rgba.png
$destdir/plymouth/shutdown-vendor.png") && die "failed to install shutdown";

print "installing myzone background\n";
if (defined $myzone_tile) {
system ("convert -alpha off $myzone_tile.png
$destdir/mutter-moblin/theme/panel/background-tile-vendor.png") && die "failed
to install mzone-tile";
} else {
system ("ln -sf ../../../plymouth/splash-vendor.png
$destdir/mutter-moblin/theme/panel/background-tile-vendor.png") && die "failed
to link mzone-tile: $!";
}


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages