Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > by-pkgid > 59b15543cb41f1b528666c579c18724f > files > 2

sim-0.9.4-0.20041105.2mdk.src.rpm

%define name	sim
%define version	0.9.4
%define release	2mdk
%define snapshot 20041105

%define major 0
%define libname %mklibname %name %major
%define libnamedev %mklibname %name %major -d

Name:		%name
Summary:	A QT/KDE ICQ instant messaging client
Version:	%version
Release:	0.%{snapshot}.%{release}
Source:		%{name}-%{snapshot}.tar.bz2
License:	GPL
Group:		Networking/Instant messaging
Url:		http://sim-icq.sourceforge.net/
BuildRoot:	%{_tmppath}/%{name}-buildroot
Requires:	libqt3 > 3.0.4, kdelibs > 3.0
Requires:	libsim0 = %{version}
BuildRequires:	kdelibs-devel > 3.0
BuildRequires:  autoconf2.5, automake1.7
BuildRequires:	libgamin-devel
BuildRequires:	flex
BuildRequires:  libxslt-devel
BuildRequires:	ImageMagick 

%description
Sim is a QT icq client with enhanced features and special support for KDE2/3. 
The icq v8 protocol (2001) is supported. It also can connect to MSN, Jabber 
and Yahoo.

Features:
- receiving and sending SMS
- server-side contact list
- receiving and the sending messages in RTF-format
- phone directory support 
- file transfers
- chat
- user search
- non-ICQ contacts
- support Miranda icon themes
- Floating
- Spam filter
- user encoding
- secure direct connection with SIM and Licq
- message or chat mode for user window
- On-Screen display notification about messages and user status
- keyboard shortcuts
- Message forwarding
- Sending of the messages to several users 

%package -n %libname
Summary:	Sim libraries
Group:		System/Libraries
Provides:	libsim

%description -n %libname
Sim is a QT icq client with enhanced features and special support for KDE2/3.
The icq v8 protocol (2001) is supported. It also supports MSN and Jabber.

Libraries

%package -n %libnamedev
Summary:        Sim libraries
Group:          System/Libraries
Requires:	%libname = %version
Provides:	libsim-devel

%description -n %libnamedev
Sim is a QT icq client with enhanced features and special support for KDE2/3.
The icq v8 protocol (2001) is supported. It also supports MSN and Jabber.

Devel files.

%prep
rm -rf $RPM_BUILD_ROOT

%if %{snapshot}
%setup -q -n %name-%{snapshot}
%else
%setup -q -n %name-%version
%endif

%build

WANT_AUTOCONF_2_5=1 gmake -f admin/Makefile.common

%configure --disable-rpath
%make

%install
%makeinstall

# Icons
mkdir -p $RPM_BUILD_ROOT{%_miconsdir,%_liconsdir}
convert -geometry 48x48 sim/png/hi64-app-sim.png $RPM_BUILD_ROOT%{_liconsdir}/%name.png
convert -geometry 32x32 sim/png/hi64-app-sim.png $RPM_BUILD_ROOT%{_iconsdir}/%name.png
convert -geometry 16x16 sim/png/hi64-app-sim.png $RPM_BUILD_ROOT%{_miconsdir}/%name.png

# Menu
mkdir -p %buildroot/%_menudir
cat > %buildroot/%_menudir/%name  <<EOF
?package(%name): command="%_bindir/%name" needs="X11" \
icon="%name.png" section="Internet/Instant Messaging" \
startup_notify="true" \
title="SIM" longtitle="Simple Instant Messenger."
EOF

# rename sim-kde menu file
mv %buildroot/%_menudir/sim-kde.menu %buildroot/%_menudir/sim-kde

%{find_lang} %{name}

%post
%{update_menus}

%post -n %libname -p /sbin/ldconfig

%postun
%{clean_menus}

%postun -n %libname -p /sbin/ldconfig

%files -f %name.lang
%defattr(-,root,root,0755)
%{_bindir}/sim
%{_bindir}/simctrl
%{_libdir}/%{name}/*.so
%{_datadir}/apps/%name
%{_datadir}/applnk/Internet/sim.desktop
%{_datadir}/mimelnk/application/x-icq.desktop
%{_datadir}/services/simctrl.desktop
%{_iconsdir}/hicolor/*/*/*
%{_iconsdir}/locolor/*/*/*
%doc ChangeLog README
%{_menudir}/*
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

%files -n %libname
%defattr(-,root,root,0755)
%{_libdir}/libsim*.so.*

%files -n %libnamedev
%defattr(-,root,root,0755)
%{_libdir}/libsim*.so
%{_libdir}/libsim*.la

%clean
rm -r $RPM_BUILD_ROOT

%changelog
* Thu Jan 13 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.9.4-0.20041105.2mdk
- buildrequires on libgamin-devel rather on libfam

* Thu Nov 04 2004 Matthias Debus <psic4t@netbands.de> 0.9.4-0.20041105.1mdk
- new snapshot

* Tue Aug 31 2004 Matthias Debus <psic4t@netbands.de> 0.9.4-0.20040831-1mdk
- new snapshot
- fix menu
- fix icons
- reenable libtoolize
- fix package name

* Fri Jul 02 2004 Matthias Debus <psic4t@netbands.de> 0.9.4-0.20040702-1mdk
- new snapshot
- rebuild for gcc-3.4.1

* Tue May 18 2004 Matthias Debus <psic4t@netbands.de> 0.9.3-2mdk
- rebuild

* Tue Mar 31 2004 Matthias Debus <psic4t@netbands.de> 0.9.3-1mdk
- new version

* Tue Mar 23 2004 Matthias Debus <psic4t@netbands.de> 0.9.2-4.20040322.1mdk
- adjust file list (changed)

* Tue Mar 16 2004 Matthias Debus <psic4t@netbands.de> 0.9.2-4.20040316.1mdk
- adjust buildrequires
- new cvs snapshot (2004-03-16)
- use libtoolize
- drop patch0: merged
- adjust menu

* Mon Feb 02 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.9.2-3.20040128.3mdk
- really apply patch !

* Mon Feb 02 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.9.2-3.20040128.2mdk
- Patch0: fix UIN length problem (from .cpp file on Sim-icq-man ML)

* Wed Jan 28 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.9.2-3.20040128.1mdk
- update to 20040128 cvs

* Thu Jan 15 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.9.2-2mdk
- rebuild

* Tue Jan 06 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.9.2-1mdk
- from Matthias Debus <psic4t@netbands.de> :
	- 0.9.2
	- drop patch1: merged

* Fri Dec 05 2003 Franck Villaume <fvill@freesurf.fr> 0.9.1-3mdk
- add BuildRequires : flex

* Wed Nov 19 2003 Matthias Debus <psic4t@netbands.de> 0.9.1-2mdk
- patch1: fix msn message sending

* Sun Nov 09 2003 Matthias Debus <psic4t@netbands.de> 0.9.1-1mdk
- new version
- back out patch1: merged

* Wed Nov 05 2003 Matthias Debus <psic4t@netbands.de> 0.9-2mdk

- patch1: fix icq login sequence
- requires

* Mon Nov 03 2003 Matthias Debus <psic4t@netbands.de> 0.9-1mdk
- new version

* Tue Oct 07 2003 Matthias Debus <psic4t@netbands.de> 0.9-0.1mdk
- new cvs snapshot with msn and jabber connectors
- back out patch1: merged
- don't call libtool with --tag option  

* Tue Aug 12 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.8.3-2mdk
- rebuild

* Mon Aug 04 2003 Matthias Debus <psic4t@netbands.de> 0.8.3-1mdk 
- new version

* Fri May 09 2003 Matthias Debus <psic4t@netbands.de> 0.8.2-1mdk 
- build requires
- new version
- patch1: don't hardcode applnk path

* Wed Jan 08 2003 Matthias Debus <psic4t@netbands.de> 0.8.1-2mdk 
- rebuild

* Wed Dec 18 2002 Matthias Debus <psic4t@netbands.de> 0.8.1-1mdk
- new version

* Mon Nov 25 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.8.1-0.2mdk
- don't hardcore arch in binary name

* Wed Nov 21 2002 Matthias Debus <psic4t@netbands.de> 0.8.1-0.1mdk
- new cvs snapshot (20021121), because 0.8 does not compile with qt3.1
- rebuild with qt 3.1

* Wed Oct 23 2002 Matthias Debus <psic4t@netbands.de> 0.8-1mdk
- 0.8 final

* Sun Oct 06 2002 Matthias Debus <psic4t@netbands.de> 0.8-0.6mdk
- Spec file cleanup
- First contrib package

* Mon Sep 22 2002 Oded Arbel <oded@geek.co.il> 0.8-0.5mdk
- New CVS version
- new numbering scheme, assuming that this is not 0.8 but a pre
  release (not very clear)

* Mon Sep 22 2002 Oded Arbel <oded@geek.co.il> 0.8-4mdk
- New CVS version

* Thu Sep 12 2002 Oded Arbel <oded@geek.co.il> 0.8-3mdk
- New CVS version

* Thu Sep  9 2002 Oded Arbel <oded@geek.co.il> 0.8-2mdk
- Make menu entry work (stolen from GAIM)

* Thu Sep  9 2002 Oded Arbel <oded@geek.co.il> 0.8-1mdk
- release 0.8
- Added menu entry

* Thu Aug 25 2002 Oded Arbel <oded@geek.co.il> 0.7-1mdk
- release 0.7

* Thu Aug 24 2002 Oded Arbel <oded@geek.co.il> 0.7-0.20020824mdk
- New CVS snapshot

* Thu Aug 23 2002 Oded Arbel <oded@geek.co.il> 0.7-0.20020823mdk
- New CVS snapshot

* Thu Aug 20 2002 Oded Arbel <oded@geek.co.il> 0.7-0.20020820mdk
- New CVS snapshot

* Thu Aug 15 2002 Oded Arbel <oded@geek.co.il> 0.7-0.20020815mdk
- First Mandrake 9 package for SIM by me