On Monday 20 October 2003 08:32 pm, Michael Lothian wrote:
> Hi
>
> I was wondering if someone could package aMSN from sourceforge.
>
> It seems to be one of the only ones that have MSN protocol 9 working.
>
> Prreferably it would be nice if it already had the traydoc already
> compiled.
>
> I know older versions are packaged but that isn't very helpful since
> they are MSN9 compatable
>
> Thanks again
>
> Mike
i tried and failed miserably. spec file attached for anyone who wants to play
around
--
Every harlot was a virgin once.
-- William Blake
%define name amsn
%define version 0.83
%define release 1mdk
%define _applnk_cat Internet
%define _kde_applnk /usr/share/applnk
%define _gnome_applnk /etc/X11/applnk
Name: %{name}
Summary: Linux messenging client which works with msn protocol
Version: %{version}
Release: %{release}
Source: http://easynews.dl.sourceforge.net/sourceforge/amsn/amsn-0_83.tar.gz
Source1: %{name}-0_83.tar.gz
Source2: %{name}_icons.tar.bz2
URL: http://amsn.sourceforge.net/
Group: Networking/Instant messenging
BuildRoot: %{_tmppath}/%{name}-buildroot
License: GPL
Requires: tcl >= 8.3
Requires: tk >= 8.3
%description
AMSN (Alvaro\'s Messenger) is a MSN messenger clone for linux/unix/windows/mac. It
features multilanguage support, file transfers, new graphical interface, emoticons,
multiple profiles support, dock icon, sound events, email notification, url processing.
%prep
%setup -q -n "msn"
tar --bzip2 -xf %{SOURCE2}
%build
%install
%{__mkdir_p} "${RPM_BUILD_ROOT}%{_prefix}"
%{__make} \
proot="%{_prefix}" \
prefix="${RPM_BUILD_ROOT}%{_prefix}" \
version="%{_version}" \
gnomelinks="${RPM_BUILD_ROOT}%{_gnome_applnk}/%{_applnk_cat}" \
kdelinks="${RPM_BUILD_ROOT}%{_kde_applnk}/%{_applnk_cat}" \
install
%{__mkdir_p} "${RPM_BUILD_ROOT}%{_bindir}"
%{__ln_s} -f "%{_datadir}/amsn/amsn" "${RPM_BUILD_ROOT}%{_bindir}/amsn"
# manually copy the .desktop file for KDE, it's broken in the Makefile
%{__mkdir_p} "${RPM_BUILD_ROOT}%{_kde_applnk}/%{_applnk_cat}/"
%{__cp} "${RPM_BUILD_ROOT}%{_gnome_applnk}/%{_applnk_cat}"/*.desktop \
"${RPM_BUILD_ROOT}%{_kde_applnk}/%{_applnk_cat}/"
#icons
mkdir -p %buildroot/%_miconsdir \
%buildroot/%_liconsdir \
%buildroot/%_iconsdir
install -m 644 aMSN_32.png %buildroot/%{_iconsdir}/%{name}.png
install -m 644 aMSN_48.png %buildroot/%{_liconsdir}/%{name}.png
#skins
cp -r $RPM_BUILD_DIR/msn/skins/ %buildroot/%_datadir/amsn
# Menu
mkdir -p %buildroot/%_menudir
cat > %buildroot/%_menudir/%{name} <<EOF
?package(%{name}): command="%_bindir/%{name}" needs="X11" \
icon="%{name}.png" section="Networking/Instant messaging" \
title="aMSN" longtitle="Instant Messenger suporting new MSN protocol."
EOF
%clean
rm -rf $RPM_BUILD_ROOT
%post
%{update_menus}
%postun
%{clean_menus}
%files
%defattr(-,root,root,0755)
%{_bindir}/amsn
%{_datadir}/amsn/*
%{_gnome_applnk}/%{_applnk_cat}/*.desktop
%{_kde_applnk}/%{_applnk_cat}/*.desktop
%doc README
%{_menudir}/*
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%changelog
* Mon Oct 20 2003 illogic-al <[EMAIL PROTECTED]> 0.83-1mdk
- First package for some guy on cooker :)
- Mdk packagers'll take over later.
- ripped mostly from Pascal Bleser's <[EMAIL PROTECTED]> official
amsn specfile.