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