]> git.pld-linux.org Git - packages/emoticons.git/blame_incremental - emoticons.spec
- minor License unifications
[packages/emoticons.git] / emoticons.spec
... / ...
CommitLineData
1Summary: EmotIcons
2Summary(pl): EmotIkonki
3Name: emoticons
4Version: 0.1
5Release: 0.1
6License: GPL (?)
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
15EmoteIcons.
16
17%description -l pl
18EmotIkonki.
19
20%package kopete-gg
21Summary: Gadu-Gadu emoticons for kopete
22Summary(pl): Emotikonki Gadu-Gadu dla kopete
23Group: X11/Applications/Networking
24Requires: kdenetwork-kopete
25
26%description kopete-gg
27Gadu-Gadu emoticons for kopete.
28
29%description kopete-gg -l pl
30Emotikonki Gadu-Gadu dla kopete.
31
32%prep
33%setup -qc
34
35%build
36%{__cc} %{rpmldflags} %{rpmcflags} -o conv conv.c
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
65install -d $RPM_BUILD_ROOT%{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu
66
67cp out/* $RPM_BUILD_ROOT%{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu
68
69%clean
70rm -rf $RPM_BUILD_ROOT
71
72%files kopete-gg
73%defattr(644,root,root,755)
74%{_datadir}/apps/kopete/pics/emoticons/Gadu-Gadu
This page took 0.082772 seconds and 4 git commands to generate.