]>
Commit | Line | Data |
---|---|---|
7ddbf382 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with fetch # fetch icons and package them | |
4 | # | |
413b91f1 | 5 | Summary: AutoMSN Emoticon Scraper |
c447e48e | 6 | Summary(pl.UTF-8): AutoMSN - narzędzie do wycinania emotikonów |
413b91f1 ER |
7 | Name: automsn |
8 | Version: 1.1.2 | |
9 | Release: 0.1 | |
10 | License: GPL | |
11 | Group: Applications | |
12 | Source0: http://www.kde-apps.org/content/files/28315-%{name} | |
13 | # Source0-md5: a54f65d6637eee58dc2817ac1d760010 | |
14 | Patch0: %{name}.patch | |
15 | URL: http://www.kde-apps.org/content/show.php?content=28315 | |
16 | BuildRequires: perl-base | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %define _themedir %{_datadir}/emoticons/AutoMSN | |
21 | ||
22 | %description | |
23 | This Perl script downloads the emoticons (smileys) from | |
24 | messenger.msn.com and sets them up for use in e.g. Kopete. | |
25 | ||
26 | No icons are included here. This simply automates the process of | |
27 | downloading each icon and setting up an appropriate emoticons.xml | |
28 | file. | |
29 | ||
c447e48e JR |
30 | %description -l pl.UTF-8 |
31 | Ten skrypt Perla ściąga emotikony (uśmieszki) z messenger.msn.com i | |
7ddbf382 JB |
32 | ustawia je do wykorzystania np. w Kopete. |
33 | ||
c447e48e JR |
34 | Nie zawiera on ikon. Po prostu automatyzuje proces ściągania każdej |
35 | ikony i właściwej konfiguracji pliku emoticons.xml. | |
7ddbf382 | 36 | |
413b91f1 ER |
37 | %package -n kde-emoticons-AutoMSN |
38 | Summary: MSN emoticons for KDE | |
c447e48e | 39 | Summary(pl.UTF-8): Emotikony MSN dla KDE |
413b91f1 ER |
40 | License: not distributable |
41 | Group: Themes | |
42 | URL: http://messenger.msn.com/resource/emoticons.aspx | |
43 | Requires: kdelibs | |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
45 | ||
46 | %description -n kde-emoticons-AutoMSN | |
47 | MSN emoticons for KDE applications. | |
48 | ||
c447e48e | 49 | %description -n kde-emoticons-AutoMSN -l pl.UTF-8 |
7ddbf382 JB |
50 | Emotikony MSN dla aplikacji KDE. |
51 | ||
413b91f1 ER |
52 | %prep |
53 | %setup -qcT | |
54 | install %{SOURCE0} automsn | |
55 | %patch0 -p1 | |
56 | ||
57 | %build | |
7ddbf382 | 58 | %if %{with fetch} |
413b91f1 | 59 | ./automsn theme < /dev/null |
7ddbf382 | 60 | %endif |
413b91f1 ER |
61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
413b91f1 | 64 | install -D automsn $RPM_BUILD_ROOT%{_bindir}/automsn |
7ddbf382 JB |
65 | |
66 | %if %{with fetch} | |
67 | install -d $RPM_BUILD_ROOT%{_themedir} | |
413b91f1 | 68 | cp -a theme/* $RPM_BUILD_ROOT%{_themedir} |
7ddbf382 | 69 | %endif |
413b91f1 ER |
70 | |
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %attr(755,root,root) %{_bindir}/automsn | |
77 | ||
7ddbf382 | 78 | %if %{with fetch} |
413b91f1 ER |
79 | %files -n kde-emoticons-AutoMSN |
80 | %defattr(644,root,root,755) | |
81 | %{_themedir} | |
7ddbf382 | 82 | %endif |