]>
Commit | Line | Data |
---|---|---|
b7424434 ER |
1 | # TODO |
2 | # - check that the killed precompiled libraries are not needed (use some system ones) | |
3 | # - probable -L poisoning: | |
4 | # /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm | |
5 | # /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc | |
98f56983 | 6 | Summary: MSN Messenger clone for Linux |
865e6169 ER |
7 | Summary(de.UTF-8): MSN Messenger-Klon für Linux |
8 | Summary(fr.UTF-8): Clône MSN Messenger pour Linux | |
9 | Summary(pl.UTF-8): Klon MSN Messengera dla Linuksa | |
98f56983 | 10 | Name: amsn |
d70cd476 | 11 | Version: 0.96 |
b7424434 | 12 | Release: 0.2 |
98f56983 ER |
13 | Epoch: 0 |
14 | License: GPL | |
15 | Group: Applications/Communications | |
9c5577c9 | 16 | Source0: http://dl.sourceforge.net/amsn/%{name}-%{version}.tar.gz |
d70cd476 | 17 | # Source0-md5: e0e9d304c8221048de4d1c3723d7d38a |
9c5577c9 | 18 | Patch0: %{name}-desktop.patch |
19 | Patch1: %{name}-libng_plugin_init.patch | |
98f56983 | 20 | URL: http://amsn.sourceforge.net/ |
98f56983 ER |
21 | BuildRequires: libpng-devel |
22 | BuildRequires: libtiff-devel | |
5ec3038f | 23 | BuildRequires: sed >= 4.0 |
98f56983 ER |
24 | BuildRequires: tcl-devel >= 8.3 |
25 | BuildRequires: tk-devel >= 8.3 | |
5ec3038f JB |
26 | # IM's convert is needed to display pictures (buddy icons). |
27 | Requires: ImageMagick | |
98f56983 ER |
28 | Requires: tcl >= 8.3 |
29 | # MSN Protocol 9 won't let you in without SSL anymore. | |
30 | Requires: tcl-tls | |
5ec3038f | 31 | Requires: tk >= 8.3 |
98f56983 ER |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | This is Tcl/Tk clone that implements the Microsoft Messenger (MSN) for | |
5ec3038f | 36 | Unix, Windows, or Macintosh platforms. It supports file transfers, |
98f56983 ER |
37 | groups, and many more features. Visit http://amsn.sourceforge.net/ for |
38 | details. This is an ongoing project, and it is already going pretty | |
39 | well. | |
40 | ||
2325d4d0 JR |
41 | %description -l de.UTF-8 |
42 | amsn ist ein Microsoft Messenger (MSN) Client für UNIX, Windows und | |
43 | Macintosh, der in Tcl/Tk geschrieben ist. Es unterstützt | |
44 | Dateiübertragungen, Gruppen uvm. Begeben Sie sich auf | |
45 | http://amsn.sourceforge.net/ um mehr über dieses Projekt zu erfahren. | |
98f56983 | 46 | |
2325d4d0 | 47 | %description -l fr.UTF-8 |
5ec3038f | 48 | amsn est un client Microsoft Messenger (MSN) pour UNIX, Windows et |
2325d4d0 JR |
49 | Macintosh écrit en Tcl/Tk. Il supporte les tranferts de fichiers, les |
50 | groupes et beaucoup d'autres possibilités. Visitez | |
51 | http://amsn.sourceforge.net/ pour de plus amples détails. | |
5ec3038f | 52 | |
2325d4d0 JR |
53 | %description -l pl.UTF-8 |
54 | amsn to klient Microsoft Messengera (MSN) dla Uniksów, Windows i | |
55 | Macintosha napisany w Tcl/Tk. Obsługuje przesyłanie plików, grupy i | |
56 | wiele więcej możliwości - szczegóły pod adresem | |
57 | <http://amsn.sourceforge.net/>. Projekt jest nadal rozwijany i już | |
58 | działa całkiem dobrze. | |
5ec3038f | 59 | |
98f56983 | 60 | %prep |
b26c21a0 | 61 | %setup -q |
f8c1865f ER |
62 | |
63 | # undos some source files | |
64 | find -name '*.tcl' -print0 | xargs -0 sed -i -e 's,\r$,,' | |
65 | ||
39ce701a | 66 | %patch0 -p1 |
7c29cbea | 67 | %patch1 -p1 |
98f56983 | 68 | |
f0701e96 ER |
69 | # precompiled ELF 32 library |
70 | rm -f utils/Tclxml/libTclxml3.1.so | |
3dd450f2 ER |
71 | # Mach-O executable ppc |
72 | rm -f sndplay | |
73 | ||
74 | # MS-DOS executable PE for MS Windows (DLL) (GUI) Intel 80386 32-bit | |
75 | rm -f utils/*/*.dll utils/*/*/*.dll | |
76 | # MS-DOS executable PE for MS Windows (GUI) Intel 80386 32-bit | |
77 | rm -f utils/*/*.exe utils/*/*/*.exe | |
f0701e96 | 78 | |
8cb0e84a | 79 | %build |
9c5577c9 | 80 | %configure \ |
81 | CFLAGS="%{rpmcflags}" | |
5ec3038f | 82 | %{__make} |
98f56983 ER |
83 | |
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
9c5577c9 | 86 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name} |
98f56983 | 87 | |
98f56983 | 88 | # FIXME: FHS? |
9c5577c9 | 89 | %{__make} install \ |
90 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
91 | exec_prefix=$RPM_BUILD_ROOT%{_bindir} \ | |
92 | dstdir=$RPM_BUILD_ROOT%{_libdir} \ | |
93 | slnkdir=$RPM_BUILD_ROOT%{_bindir} | |
98f56983 ER |
94 | |
95 | install -d $RPM_BUILD_ROOT%{_desktopdir} | |
96 | install %{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
449997da | 97 | rm -f $RPM_BUILD_ROOT%{_libdir}/applications/amsn.desktop |
98f56983 | 98 | |
9c5577c9 | 99 | for f in amsn{,-remote{,-CLI}}; do |
100 | rm $RPM_BUILD_ROOT%{_bindir}/$f | |
101 | ln -s ../%{_lib}/%{name}/$f $RPM_BUILD_ROOT%{_bindir} | |
102 | done | |
103 | ||
98f56983 | 104 | # remove junk |
9c5577c9 | 105 | rm -rf $RPM_BUILD_ROOT%{_libdir}/doc/amsn-0.91 |
106 | rm -rf $RPM_BUILD_ROOT%{_libdir}/amsn/amsn.{desktop,spec,debianmenu} | |
98f56983 | 107 | # docs in docs |
9c5577c9 | 108 | rm -rf $RPM_BUILD_ROOT%{_libdir}/amsn/docs |
109 | rm -rf $RPM_BUILD_ROOT%{_libdir}/amsn/{AGREEMENT,CREDITS,GNUGPL,INSTALL,README,HELP,FAQ,TODO,Makefile,cvs_date} | |
110 | rm -rf $RPM_BUILD_ROOT%{_libdir}/amsn/utils/*/test.tcl | |
98f56983 | 111 | # random binary for PPC |
9c5577c9 | 112 | rm -rf $RPM_BUILD_ROOT%{_libdir}/amsn/sndplay |
113 | ||
114 | mv $RPM_BUILD_ROOT%{_libdir}/icons $RPM_BUILD_ROOT%{_iconsdir} | |
98f56983 ER |
115 | |
116 | %clean | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %files | |
120 | %defattr(644,root,root,755) | |
121 | %doc FAQ GNUGPL HELP README TODO CREDITS | |
b26c21a0 | 122 | %attr(755,root,root) %{_bindir}/* |
f8c1865f | 123 | %dir %{_libdir}/%{name} |
9c5577c9 | 124 | %{_libdir}/%{name}/a[!m]* |
125 | %{_libdir}/%{name}/[!a]* | |
126 | %attr(755,root,root) %{_libdir}/%{name}/amsn* | |
98f56983 | 127 | |
9c5577c9 | 128 | %{_iconsdir}/hicolor/*/*.png |
98f56983 | 129 | %{_desktopdir}/%{name}.desktop |