# $Id: psi.spec 3946 2006-01-11 21:56:38Z dries $ # Authority: dries # Screenshot: http://psi.affinix.com/gfx/screenshots/iceram-roster.png # ScreenshotURL: http://psi.affinix.com/?page=screenshots %{?dist: %{expand: %%define %dist 1}} %{?rh7:%define _without_freedesktop 1} %{?el2:%define _without_freedesktop 1} %{?rh6:%define _without_freedesktop 1} %{?fc1:%define _without_xorg 1} %{?el3:%define _without_xorg 1} %{?rh9:%define _without_xorg 1} %{?rh8:%define _without_xorg 1} %{?rh7:%define _without_xorg 1} %{?el2:%define _without_xorg 1} %{?rh6:%define _without_xorg 1} %define desktop_vendor rpmforge %define qca qca-1.0 %define tls_plugin qca-tls-1.0 %define sasl_plugin qca-sasl-1.0 %define qtdir %(echo ${QTDIR}) %define jingle 1 Summary: Client application for the Jabber network %if %{jingle} Name: psi-jingle %else Name: psi %endif Version: 0.10 Release: 1.df License: GPL Group: Applications/Communications URL: http://psi.affinix.com/ # Packager: Dries Verachtert Packager: David Fraser # Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Vendor: David Fraser Psi test builds, http://davidf.sjsoft.com/files/psi/ %if %{jingle} Source0: http://davidf.sjsoft.com/files/psi-jingle-%{version}.tar.bz2 %else Source0: http://dl.sf.net/psi/psi-%{version}.tar.bz2 %endif Source1: http://psi.affinix.com/beta/%{tls_plugin}.tar.bz2 Source2: http://delta.affinix.com/qca/%{qca}.tar.bz2 Source3: http://delta.affinix.com/qca/%{sasl_plugin}.tar.bz2 # Source20: psi_ca.qm Source21: psi_cs.qm Source22: psi_de.qm Source23: psi_el.qm Source24: psi_es.qm Source25: psi_fr.qm # Source26: psi_it.qm Source27: psi_mk.qm Source28: psi_nl.qm Source29: psi_pl.qm # Source30: psi_se.qm Source31: psi_sk.qm Source32: psi_zh.qm Source33: psi_et.qm Source34: psi_vi.qm Source35: psi_ru.qm BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %if %{jingle} Requires: ortp, speex >= 1.1 BuildRequires: ortp-devel, speex-devel >= 1.1 Conflicts: psi %endif BuildRequires: kdelibs-devel, openssl-devel, gcc-c++ %{?_without_xorg:BuildRequires: XFree86-devel} %{!?_without_xorg:BuildRequires: xorg-x11-devel} %{!?_without_freedesktop:BuildRequires: desktop-file-utils} Obsoletes: psi-iconsets < 0.9.1 %description Psi is a client program for the Jabber messaging network. It supports multiple accounts, group chat, Unicode and SSL encryption. %package languagepack Summary: Translations for the Psi jabber client Group: Applications/Communications Requires: %{name} = %{version} %description languagepack This package contains the necessairy files for using the jabber client Psi in other languages than English. %prep %setup -a 1 -a 2 -a 3 #%{__cat} <psi.desktop #[Desktop Entry] #Name=Psi Jabber Client #Comment=Connect and chat on the Jabber network #Icon=psi.png #Exec=psi -caption "%%c" %%i %%m #Terminal=false #Type=Application #Encoding=UTF-8 #StartupNotify=true #Categories=Application;Network; #EOF %build # We need to build QCA-1.0 first pushd %{qca} ./configure \ --prefix="${PWD}%{_prefix}" %{__perl} -pi.orig -e "s|${PWD}/src||g" Makefile %{__make} popd source %{_sysconfdir}/profile.d/qt.sh # It's not an autoconf generated script... # The PWD thing is an ugly hack since relative paths mess everything up... # --libdir="${PWD}/src%{_datadir}/%{name}" \ ./configure \ %if %{jingle} --enable-jingle \ %endif --prefix="${PWD}/src%{_prefix}" \ --bindir="${PWD}/src%{_bindir}" \ --with-qca-inc="${PWD}/%{qca}/src" \ --with-qca-lib="${PWD}/%{qca}" %{__perl} -pi.orig -e "s|${PWD}/src||g" Makefile src/config.h %{__make} %{?_smp_mflags} # Transport Layer Security plugin # Again, impossible to get the prefix right easily (see install below)... pushd %{tls_plugin} ./configure %{__make} popd %install %{__rm} -rf %{buildroot} source %{_sysconfdir}/profile.d/qt.sh # That trailing "/" is mandatory because of "$(INSTALL_ROOT)usr" type of lines # Install QCA-1.0 pushd %{qca} %{__make} install INSTALL_ROOT="%{buildroot}/" popd %{__make} install INSTALL_ROOT="%{buildroot}/" # Transport Layer Security plugin %{__install} -Dp -m0755 %{tls_plugin}/libqca-tls.so \ %{buildroot}%{qtdir}/plugins/crypto/libqca-tls.so # Install the pixmap for the menu entry %{__install} -Dp -m0644 iconsets/system/default/icon_32.png \ %{buildroot}%{_datadir}/pixmaps/psi.png #### Cleanup buildroot #%{__rm} -f %{buildroot}%{_datadir}/applnk/Internet/psi.desktop \ # %{buildroot}%{_datadir}/icons/hicolor/*/apps/psi.png #%if %{!?_without_freedesktop:1}0 #%{__mkdir_p} %{buildroot}%{_datadir}/applications #desktop-file-install \ # --vendor %{desktop_vendor} \ # --dir %{buildroot}%{_datadir}/applications \ # psi.desktop #%else #%{__install} -Dp -m0644 psi.desktop \ # %{buildroot}%{_sysconfdir}/X11/applnk/Internet/psi.desktop #%endif # Install the languagepack files %{__install} -p -m0644 \ %{SOURCE21} %{SOURCE22} %{SOURCE23} %{SOURCE24} \ %{SOURCE25} %{SOURCE27} %{SOURCE28} %{SOURCE29} \ %{SOURCE31} %{SOURCE32} %{SOURCE33} %{SOURCE34} %{SOURCE35} \ %{buildroot}%{_datadir}/psi/ %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc COPYING README TODO %{_libdir}/libqca.so* %{_includedir}/qca.h %{_bindir}/psi %exclude %{_datadir}/psi/COPYING %exclude %{_datadir}/psi/README %exclude %{_datadir}/psi/*.qm %{_datadir}/psi/ %{qtdir}/plugins/crypto/libqca-tls.so %{_datadir}/pixmaps/psi.png %{_datadir}/applications/psi.desktop #%{!?_without_freedesktop:%{_datadir}/applications/%{desktop_vendor}-psi.desktop} #%{?_without_freedesktop:%{_sysconfdir}/X11/applnk/Internet/psi.desktop} %files languagepack %defattr(-, root, root, 0755) # %lang(ca) %{_datadir}/psi/psi_ca.qm %lang(cs) %{_datadir}/psi/psi_cs.qm %lang(de) %{_datadir}/psi/psi_de.qm %lang(el) %{_datadir}/psi/psi_el.qm %lang(es) %{_datadir}/psi/psi_es.qm %lang(fr) %{_datadir}/psi/psi_fr.qm # %lang(it) %{_datadir}/psi/psi_it.qm %lang(mk) %{_datadir}/psi/psi_mk.qm %lang(nl) %{_datadir}/psi/psi_nl.qm %lang(pl) %{_datadir}/psi/psi_pl.qm # %lang(se) %{_datadir}/psi/psi_se.qm %lang(sk) %{_datadir}/psi/psi_sk.qm %lang(zh) %{_datadir}/psi/psi_zh.qm %lang(et) %{_datadir}/psi/psi_et.qm %lang(vi) %{_datadir}/psi/psi_vi.qm %lang(ru) %{_datadir}/psi/psi_ru.qm %changelog * Thu Jan 26 2006 David Fraser - 0.10-2 - Experimental Jingle support (unofficial package, changed name to psi-jingle) * Wed Jan 11 2006 Dries Verachtert - 0.10-1 - 3946/dries - Updated to release 0.10. * Thu Jan 20 2005 Derek Atkins 0.9.3-2 - Changes for QCA 1.0 support. * Sun Jan 09 2005 Dries Verachtert 0.9.3-1 - Updated to release 0.9.3. * Mon Jun 14 2004 Matthias Saou 0.9.2-3 - Real fix for mach builds. * Sat Jun 12 2004 Dries Verachtert 0.9.2-2 - fix so iconsets and language files work again * Fri Jun 11 2004 Matthias Saou 0.9.2-1 - Update to 0.9.2 (not the language files yet, not available for now). - Major spec file cleanup, leaning towards a rewrite :-). * Thu May 27 2004 Dries Verachtert 0.9.1-2 - small changes in spec file * Fri Jan 2 2004 Dries Verachtert 0.9.1-1 - great, i finish uploading the 0.9 rpms to the webserver and 0.9.1 is released (spike tells so on irc). Ok upgrade.. - add ssl plugin - all the iconsets seems to be contained within the 0.9.1 now * Fri Jan 2 2004 Dries Verachtert 0.9-2 - further packaging, added iconsets and language packs * Thu Jan 1 2004 Dries Verachtert 0.9-1 - first packaging for Fedora Core 1