]>
Commit | Line | Data |
---|---|---|
e927064c | 1 | Summary: EmotIcons |
382df711 | 2 | Summary(pl.UTF-8): EmotIkonki |
e927064c | 3 | Name: emoticons |
4 | Version: 0.1 | |
5 | Release: 0.1 | |
f463436f | 6 | License: GPL (?) |
e927064c | 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 | |
5000be37 | 15 | EmoteIcons. |
e927064c | 16 | |
6ddcd1c0 | 17 | %description -l pl.UTF-8 |
5000be37 JB |
18 | EmotIkonki. |
19 | ||
20 | %package kopete-gg | |
e927064c | 21 | Summary: Gadu-Gadu emoticons for kopete |
382df711 | 22 | Summary(pl.UTF-8): Emotikonki Gadu-Gadu dla kopete |
e927064c | 23 | Group: X11/Applications/Networking |
24 | Requires: kdenetwork-kopete | |
25 | ||
5000be37 JB |
26 | %description kopete-gg |
27 | Gadu-Gadu emoticons for kopete. | |
28 | ||
6ddcd1c0 | 29 | %description kopete-gg -l pl.UTF-8 |
5000be37 | 30 | Emotikonki Gadu-Gadu dla kopete. |
e927064c | 31 | |
32 | %prep | |
5000be37 | 33 | %setup -qc |
e927064c | 34 | |
35 | %build | |
5000be37 | 36 | %{__cc} %{rpmldflags} %{rpmcflags} -o conv conv.c |
e927064c | 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 | |
5000be37 | 65 | install -d $RPM_BUILD_ROOT%{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu |
e927064c | 66 | |
5000be37 | 67 | cp out/* $RPM_BUILD_ROOT%{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu |
e927064c | 68 | |
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
5000be37 | 72 | %files kopete-gg |
e927064c | 73 | %defattr(644,root,root,755) |
5000be37 | 74 | %{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu |