2 Summary(pl.UTF-8): EmotIkonki
7 Group: Applications/Communications
8 Source0: %{name}-gg-031212.tgz
9 # Source0-md5: eb824103b01d2fb4bd376b0540ba176d
10 URL: http://www.gadu.gnu.pl/
11 BuildRequires: ImageMagick-coder-png
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %description -l pl.UTF-8
22 Summary: Gadu-Gadu emoticons for kopete
23 Summary(pl.UTF-8): Emotikonki Gadu-Gadu dla kopete
24 Group: X11/Applications/Networking
25 Requires: kdenetwork-kopete
27 %description kopete-gg
28 Gadu-Gadu emoticons for kopete.
30 %description kopete-gg -l pl.UTF-8
31 Emotikonki Gadu-Gadu dla kopete.
37 %{__cc} %{rpmldflags} %{rpmcflags} -o conv conv.c
40 # oryginal emots/2/emots.txt have some errors :(
41 cat emots/2/emots.txt | \
42 sed 's/<soczek>,/<soczek>"/' | \
43 sed 's:("<marzyciel>","oczy.gif"):"<marzyciel>","oczy.gif":' \
44 > emots/2/emotsnew.txt
45 rm -f emots/2/emots.txt
47 FILES=`find emots -type f -iname "*.txt"`
48 cat $FILES > emots.txt
50 echo -e -n "<?xml version=\"1.0\"?>\n<messaging-emoticon-map>\n\n" > emoticons.xml.tmp
51 ./conv emots.txt >> emoticons.xml.tmp
52 echo -e -n "</messaging-emoticon-map>\n" >> emoticons.xml.tmp
54 cat emoticons.xml.tmp | iconv -f cp1250 -t utf-8 > out/emoticons.xml
55 FILES=`find emots -type f -iname "*.gif"`
58 F=`basename $FILE | tr '[:upper:]' '[:lower:]'`
61 convert out/wesoly_na.gif out/smile.png
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu
68 cp out/* $RPM_BUILD_ROOT%{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
75 %{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu