Name: kadu
Version: 0.5.0
Release: 0.19.rc1%{?dist}
Summary: An Gadu-Gadu client for online messaging
Group: Applications/Internet
License: GPL
URL: http://www.kadu.net
Source0: http://www.kadu.net/download/stable/kadu-0.5.0-rc1.tar.bz2
Source3: kadu.desktop
# Sources 100-149 are external modules
Source100: http://scripts.one.pl/xmms/devel/0.5.0/xmms-1.32.tar.gz
Source101: http://scripts.one.pl/amarok/devel/0.5.0/amarok-1.19.tar.gz
Source102: http://scripts.one.pl/filedesc/devel/0.5.0/filedesc-1.12.tar.gz
Source103: http://www.kadu.net/download/modules_mirror/mail-current.tar.gz
Source104: http://scripts.one.pl/spellchecker/devel/0.5.0/spellchecker-0.18.tar.gz
Source105: http://kadu.net/~blysk/weather-3.03.tar.bz2
Source106: http://www.kadu.net/~dzwiedziu/pub/ext_info-2.0beta9.tar.bz2
Source107: http://alan.umcs.lublin.pl/~pinkworm/dcopexport/dcopexport-0.11.1-20060320-0.5.0-svn.tar.bz2
Source108: http://kadu.net/~patryk/miastoplusa_sms/miastoplusa_sms-0.5-1.3.5.tar.gz
Source109: http://www.kadu.net/download/modules_mirror/tabs-current.tar.gz
Source110: http://kadu.net/~blysk/led_notify-0.9.tar.bz2
Source111: http://www.kadu.net/~pan_wojtas/iwait4u/download/kadu-iwait4u-1.3.tar.gz
Source112: http://www.kadu.net/~joi/exec_notify/packages/exec_notify-20060424.tar.bz2
Source113: http://www.kadu.net/~patryk/powerkadu/powerkadu-20061026.tar.gz
Source114: http://www.kadu.net/~dorr/kadu-profiles-0.1.tar.gz
Source115: http://alan.umcs.lublin.pl/~pinkworm/filtering/filtering-0.3.2-20060727-0.5.0.tar.bz2
Source116: http://www.kadu.net/~pan_wojtas/firewall/download/kadu-firewall-0.6.3.tar.gz
Patch0: kadu-0.5.0-tabs_patch.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libpng-devel qt-devel libsndfile-devel openssl-devel libgadu-devel
%define _kadudir %{_datadir}/kadu
%define _kadulib %{_libdir}/kadu
%define _modlib %{_kadulib}/modules
%define _moddata %{_kadudir}/modules
%define _modtrans %{_moddata}/translations
%define _themesdir %{_datadir}/%{name}/themes
%define _translationsdir %{_kadudir}/translations
%define mod_files() %files %1 \
%defattr(-,root,root,-) \
%{_moddata}/%1.desc \
%{_modlib}/%1.so \
%{_modtrans}/%{1}*.qm \
#
%define mod_files2() %files %1 \
%defattr(-,root,root,-) \
%{_moddata}/%1.desc \
%{_modlib}/%1.so \
%{_modtrans}/%{1}*.qm \
%{_moddata}/data/%1 \
#above is two macros to make easier creating files section of modules
%description
Kadu is client of Gadu-Gadu 6.1 protocol. It's an Internet Messager for Linux
and UN*X or Mac OS X.
%package devel
Summary: Development headers for Kadu
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: qt-devel
%description devel
Develpoment headers for Kadu.
%package arts_sound
Summary: Arts module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
BuildRequires: arts-devel
%description arts_sound
aRts module for Kadu.
%package esd_sound
Summary: ESD module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
BuildRequires: esound-devel
%description esd_sound
ESD module for Kadu.
%package alsa_sound
Summary: ALSA module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
BuildRequires: alsa-lib-devel
%description alsa_sound
ALSA module for Kadu.
%package xmms
Summary: Xmms module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
Requires: xmms
BuildRequires: xmms-devel
%description xmms
xmms player support.
%package amarok
Summary: Amarok module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
Requires: kdelibs amarok
BuildRequires: kdelibs-devel
%description amarok
amaroK player support.
%package filedesc
Summary: Filedesc module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description filedesc
Description from file module.
%package weather
Summary: Weather module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description weather
Weather checking.
%package mail
Summary: mail module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description mail
Mail checker module.
%package spellchecker
Summary: Spellchecker module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
Requires: aspell
BuildRequires: aspell-devel
%description spellchecker
Spellchecking in chat window.
%package ext_info
Summary: Ext_info module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description ext_info
Additional contact info, birthday and name-day notifier.
%package dcopexport
Summary: Dcopexport module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
Requires: kdelibs
BuildRequires: kdelibs-devel
%description dcopexport
Export some functions via DCOP.
%package miastoplusa_sms
Summary: Miastoplusa_sms module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
Requires: curl openssl
BuildRequires: curl-devel openssl-devel
%description miastoplusa_sms
Miasto Plusa SMS Gateway support.
%package tabs
Summary: Tabs module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
Requires: curl openssl
BuildRequires: curl-devel
%description tabs
Tabbed chat dialog module.
%package led_notify
Summary: Led_notify module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description led_notify
Notification by Scroll Lock LED.
%package iwait4u
Summary: Iwait4u module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description iwait4u
Shows message, when user you're waiting for is online.
%package exec_notify
Summary: Exec_notify module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description exec_notify
Notification by external commands module.
%package powerkadu
Summary: Powerkadu module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description powerkadu
Improvement of Kadu capabilities.
%package profiles
Summary: Profiles module for kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description profiles
Profiles support
%package filtering
Summary: Filtering module for kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description filtering
User list filtering
%package firewall
Summary: Firewall module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description firewall
Protection against unwanted chats
%package wmaker_docking
Summary: Wmaker_docking module for Kadu
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description wmaker_docking
WindowMaker docking module
%prep
%setup -q -n kadu
%setup -q -D -T -a 100 -a 101 -a 102 -a 103 -a 104 -a 105 -a 106 -a 107 -a 108 -a 109 -a 110 -a 111 -a 112 -a 113 -a 114 -a 115 -a 116 -n kadu/modules
%setup -q -D -T -n kadu
%patch0 -p1 -b tabs_patch
##==some changes in .config file
#1. compile something as shared...
# module_mail \
SHARED_CHANGES="module_alsa_sound \
module_arts_sound \
module_esd_sound \
module_xmms \
module_amarok \
module_filedesc \
module_spellchecker \
module_weather \
module_ext_info \
module_dcopexport \
module_miastoplusa_sms \
module_tabs\
module_led_notify \
module_iwait4u\
module_powerkadu \
module_filtering \
module_profiles \
module_mail \
module_exec_notify \
module_firewall
module_wmaker_docking"
for change in $SHARED_CHANGES; do
sed s/^$change=.$/$change=m/ -i .config
done
##==add shellbang to beginning of file
sed 1i\#\!/bin/sh -i modules/dcopexport/bin/install-konqueror-setAsKaduDesc.sh
#+
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
%configure --enable-debug --disable-dependency-tracking --with-existing-libgadu
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
##==change permissions of .so files:
for binary in `find $RPM_BUILD_ROOT -type f -name *.so`; do
chmod a+x $binary
done
#+
desktop-file-install --vendor fedora \
--dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
--add-category X-Fedora \
--add-category Application \
%{SOURCE3}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING
%{_bindir}/kadu
%{_bindir}/kadu-mozilla
%{_datadir}/applications/fedora-kadu.desktop
%dir %{_kadulib}
%dir %{_modlib}
%{_modlib}/account_management.so
%{_modlib}/arts_sound.so
%{_modlib}/autoaway.so
%{_modlib}/autoresponder.so
%{_modlib}/config_wizard.so
%{_modlib}/dcc.so
%{_modlib}/default_sms.so
%{_modlib}/dsp_sound.so
%{_modlib}/encryption.so
%{_modlib}/ext_sound.so
%{_modlib}/hints.so
%{_modlib}/migration.so
%{_modlib}/sms.so
%{_modlib}/voice.so
%{_modlib}/window_notify.so
%{_modlib}/x11_docking.so
%dir %{_modlib}/bin
%ghost %{_datadir}/applnk/Internet/kadu.desktop
%dir %{_kadudir}
%{_kadudir}/AUTHORS
%{_kadudir}/ChangeLog
%{_kadudir}/COPYING
%{_kadudir}/HISTORY
%{_kadudir}/README
%{_kadudir}/THANKS
%dir %{_moddata}
%{_moddata}/account_management.desc
%{_moddata}/arts_sound.desc
%{_moddata}/autoaway.desc
%{_moddata}/autoresponder.desc
%{_moddata}/config_wizard.desc
%{_moddata}/dcc.desc
%{_moddata}/default_sms.desc
%{_moddata}/dsp_sound.desc
%{_moddata}/encryption.desc
%{_moddata}/ext_sound.desc
%{_moddata}/hints.desc
%{_moddata}/migration.desc
%{_moddata}/sms.desc
%{_moddata}/voice.desc
%{_moddata}/window_notify.desc
%{_moddata}/x11_docking.desc
%{_moddata}/docking.desc
%{_moddata}/notify.desc
%{_moddata}/sound.desc
%{_moddata}/data/config_wizard
%dir %{_modtrans}
%{_modtrans}/account_management_*.qm
%{_modtrans}/autoaway_*.qm
%{_modtrans}/autoresponder_*.qm
%{_modtrans}/config_wizard_*.qm
%{_modtrans}/dcc_*.qm
%{_modtrans}/default_sms_*.qm
%{_modtrans}/dsp_sound_*.qm
%{_modtrans}/encryption_*.qm
%{_modtrans}/ext_sound_*.qm
%{_modtrans}/hints_*.qm
%{_modtrans}/migration_*.qm
%{_modtrans}/sms_*.qm
%{_modtrans}/voice_*.qm
%{_modtrans}/window_notify_*.qm
%{_modtrans}/x11_docking_*.qm
%{_modtrans}/docking_*.qm
%{_modtrans}/notify_*.qm
%{_modtrans}/sound_*.qm
%dir %{_themesdir}
%dir %{_themesdir}/emoticons
%{_themesdir}/emoticons/penguins
%dir %{_themesdir}/icons
%{_themesdir}/icons/default
%dir %{_themesdir}/sounds
%{_themesdir}/sounds/default
%{_translationsdir}
%{_datadir}/pixmaps/kadu*.png
%files devel
%defattr(-,root,root,-)
%{_bindir}/kadu-config
%{_includedir}/kadu
%files arts_sound
%defattr(-,root,root,-)
%{_moddata}/arts_sound.desc
%{_modlib}/arts_sound.so
%{_modlib}/bin/arts_sound
%files esd_sound
%defattr(-,root,root,-)
%{_moddata}/esd_sound.desc
%{_modlib}/esd_sound.so
%files wmaker_docking
%defattr(-,root,root,-)
%{_moddata}/wmaker_docking.desc
%{_modlib}/wmaker_docking.so
%files alsa_sound
%defattr(-,root,root,-)
%{_moddata}/alsa_sound.desc
%{_modlib}/alsa_sound.so
%{_modtrans}/alsa_sound_*.qm
%mod_files2 xmms
%mod_files2 amarok
%mod_files2 filedesc
%mod_files2 spellchecker
%mod_files2 ext_info
%mod_files2 dcopexport
%{_modlib}/bin/dcopexport
%mod_files2 miastoplusa_sms
%mod_files2 tabs
%mod_files2 powerkadu
%{_modlib}/bin/powerkadu
%mod_files2 filtering
%mod_files2 firewall
%mod_files profiles
%mod_files led_notify
%mod_files iwait4u
%mod_files exec_notify
%mod_files mail
%files weather
%defattr(-,root,root,-)
%{_modlib}/weather.so
%{_moddata}/weather.desc
%{_moddata}/data/weather
%changelog
* Wed Nov 08 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.19.rc1
- Update kadu to RC1
- Update ext_info module to 2.0beta9
- Update powerkadu module to 20061026
- Update xmms module to 1.32
- Update amarok module to 1.19
- Amarok builds on all architectures again
- Add tabs patch
* Thu Nov 02 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.18.20060915svn
- Come back to 20060915
* Sun Oct 29 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.17.20061029svn
- Disabling kadu-amarok on ppc arch
* Sun Oct 29 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.16.20061029svn
- Bump cvs snapshot to 20061029
* Tue Oct 10 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.15.20060915svn
- Another fix to not rebuilding kadu-amarok
* Sat Oct 07 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.14.20060915svn
- It really shoud work now
* Sat Oct 07 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.13.20060915svn
- It should work now
* Fri Oct 06 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.12.20060915svn
- Yet another fix...
* Fri Oct 06 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.11.20060915svn
- Rpmbuild build error workaround.
* Fri Oct 06 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.10.20060915svn
- Not rebuilding kadu-amarok on some archs
* Sat Sep 16 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.9.20060915svn
- Update upstream to 20060915
- Move themes to external spec file
- Link to existing libgadu
* Mon Sep 04 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.8.20006808svn
- FC6 rebuild
* Fri Aug 11 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.7.20060808svn
- Update upstream to 20060808
- Add firewall and wmaker_docking modules
* Sun Jul 30 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.6.20060730svn
- Update upstream do 20060730, with fixed x64 bugs
- Add mail module and emots theme
* Thu Jul 27 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.5.20060727svn
- Delete qt dependency
- Exclude libgadu.a file
- Add powerkadu, filtering and profiles modules
* Mon Jul 24 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.4.20060716svn
- Add COPYING file to doc
* Sun Jul 23 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.3.20060716svn
- Yet another fix permissions of .so files
* Sun Jul 23 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.2.20060716svn
- Fix Source0 address
- Fix permissions of .so files
- Remove libsndfile require
- Fix some descriptions of subpackages
- Add --enable-debug and --disable-dependency-tracking options to configure
* Thu Jul 20 2006 Michał Bentkowski <mr.ecik at gmail.com> - 0.5.0-0.1.20060716svn
- Another first release