]>
Commit | Line | Data |
---|---|---|
1 | Summary: EmotIcons | |
2 | Summary(pl.UTF-8): EmotIkonki | |
3 | Name: emoticons | |
4 | Version: 0.1 | |
5 | Release: 0.1 | |
6 | License: GPL (?) | |
7 | Group: Applications/Communications | |
8 | Source0: %{name}-gg-031212.tgz | |
9 | URL: http://www.gadu.gnu.pl/ | |
10 | BuildRequires: ImageMagick-coder-png | |
11 | BuildRequires: iconv | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | EmoteIcons. | |
16 | ||
17 | %description -l pl.UTF-8 | |
18 | EmotIkonki. | |
19 | ||
20 | %package kopete-gg | |
21 | Summary: Gadu-Gadu emoticons for kopete | |
22 | Summary(pl.UTF-8): Emotikonki Gadu-Gadu dla kopete | |
23 | Group: X11/Applications/Networking | |
24 | Requires: kdenetwork-kopete | |
25 | ||
26 | %description kopete-gg | |
27 | Gadu-Gadu emoticons for kopete. | |
28 | ||
29 | %description kopete-gg -l pl.UTF-8 | |
30 | Emotikonki Gadu-Gadu dla kopete. | |
31 | ||
32 | %prep | |
33 | %setup -qc | |
34 | ||
35 | %build | |
36 | %{__cc} %{rpmldflags} %{rpmcflags} -o conv conv.c | |
37 | ||
38 | rm -rf out; mkdir out | |
39 | # oryginal emots/2/emots.txt have some errors :( | |
40 | cat emots/2/emots.txt | \ | |
41 | sed 's/<soczek>,/<soczek>"/' | \ | |
42 | sed 's:("<marzyciel>","oczy.gif"):"<marzyciel>","oczy.gif":' \ | |
43 | > emots/2/emotsnew.txt | |
44 | rm -f emots/2/emots.txt | |
45 | ||
46 | FILES=`find emots -type f -iname "*.txt"` | |
47 | cat $FILES > emots.txt | |
48 | ||
49 | echo -e -n "<?xml version=\"1.0\"?>\n<messaging-emoticon-map>\n\n" > emoticons.xml.tmp | |
50 | ./conv emots.txt >> emoticons.xml.tmp | |
51 | echo -e -n "</messaging-emoticon-map>\n" >> emoticons.xml.tmp | |
52 | ||
53 | cat emoticons.xml.tmp | iconv -f cp1250 -t utf-8 > out/emoticons.xml | |
54 | FILES=`find emots -type f -iname "*.gif"` | |
55 | for FILE in $FILES | |
56 | do | |
57 | F=`basename $FILE | tr '[:upper:]' '[:lower:]'` | |
58 | cp $FILE out/$F | |
59 | done | |
60 | convert out/wesoly_na.gif out/smile.png | |
61 | rm -f out/*_na.* | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | install -d $RPM_BUILD_ROOT%{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu | |
66 | ||
67 | cp out/* $RPM_BUILD_ROOT%{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files kopete-gg | |
73 | %defattr(644,root,root,755) | |
74 | %{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu |