Mercurial > pidgin
view gaim2blt.pl @ 4030:a3466240218c
[gaim-migrate @ 4235]
"The most important chaange is the inclusion of
%{_datadir}/sounds/*, where "*" ends up being just
"gaim". Without this line, the default alert sound
files are not included in the RPM package.
While I was making that fix, I cleaned up a few other
small bits. I've replaced "%{_mandir}/man1/gaim.1.*"
with "%{_mandir}/man1/*", just in case a second man
page is added at some point in the future. Right now,
there is just one, so these both do the same thing.
Similarly, I've changed
"%{_datadir}/applications/gaim.desktop" to
"%{_datadir}/applications/*" in case we ever add a
second desktop launcher.
Lastly, RPM automatically picks up the entire contents
of any listed directory. So if "%{_datadir}/pixmaps/*"
is already listed, there's no need to list
"%{_datadir}/pixmaps/gaim/*" and other subdirectories
as well. I've removed the redundant lines."
-- Ben Liblit (liblit)
its ironic that a guy using debian is committing spec file fixes but Paco-Paco
says these should be fine.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 02 Dec 2002 16:17:58 +0000 |
parents | 66bf7ecefedd |
children |
line wrap: on
line source
#!/usr/bin/perl -w # Original by Andy Harrison, # Rewrite by Decklin Foster, # Available under the GPL. package Gaim2Blt; use strict; use Getopt::Std; use vars qw(%opts $in_group); getopts('s:', \%opts); die "usage: $0 -s 'screen name' gaim.buddy\n" unless $opts{s}; print <<"EOF"; Config { version 1 } User { screenname "$opts{s}" } Buddy { list { EOF while (<>) { chomp; my ($type, $args) = split ' ', $_, 2; next unless $type; if ($type eq 'g') { print " }\n" if ($in_group); print qq( "$args" {\n); $in_group = 1; } elsif ($type eq 'b') { my ($buddy, $alias) = split /:/, $args; print qq( "$buddy"\n); } } print <<"EOF"; } } } EOF