]> git.pld-linux.org Git - packages/emoticons.git/blame - emoticons.spec
- tabs in preamble
[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
9URL: http://www.gadu.gnu.pl/
10BuildRequires: ImageMagick-coder-png
11BuildRequires: iconv
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%description
5000be37 15EmoteIcons.
e927064c 16
6ddcd1c0 17%description -l pl.UTF-8
5000be37
JB
18EmotIkonki.
19
20%package kopete-gg
e927064c 21Summary: Gadu-Gadu emoticons for kopete
382df711 22Summary(pl.UTF-8): Emotikonki Gadu-Gadu dla kopete
e927064c 23Group: X11/Applications/Networking
24Requires: kdenetwork-kopete
25
5000be37
JB
26%description kopete-gg
27Gadu-Gadu emoticons for kopete.
28
6ddcd1c0 29%description kopete-gg -l pl.UTF-8
5000be37 30Emotikonki 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
38rm -rf out; mkdir out
39# oryginal emots/2/emots.txt have some errors :(
40cat emots/2/emots.txt | \
41 sed 's/<soczek>,/<soczek>"/' | \
42 sed 's:("<marzyciel>","oczy.gif"):"<marzyciel>","oczy.gif":' \
43 > emots/2/emotsnew.txt
44rm -f emots/2/emots.txt
45
46FILES=`find emots -type f -iname "*.txt"`
47cat $FILES > emots.txt
48
49echo -e -n "<?xml version=\"1.0\"?>\n<messaging-emoticon-map>\n\n" > emoticons.xml.tmp
50./conv emots.txt >> emoticons.xml.tmp
51echo -e -n "</messaging-emoticon-map>\n" >> emoticons.xml.tmp
52
53cat emoticons.xml.tmp | iconv -f cp1250 -t utf-8 > out/emoticons.xml
54FILES=`find emots -type f -iname "*.gif"`
55for FILE in $FILES
56do
57 F=`basename $FILE | tr '[:upper:]' '[:lower:]'`
58 cp $FILE out/$F
59done
60convert out/wesoly_na.gif out/smile.png
61rm -f out/*_na.*
62
63%install
64rm -rf $RPM_BUILD_ROOT
5000be37 65install -d $RPM_BUILD_ROOT%{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu
e927064c 66
5000be37 67cp out/* $RPM_BUILD_ROOT%{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu
e927064c 68
69%clean
70rm -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
This page took 0.086277 seconds and 4 git commands to generate.