Summary: XMPP client Name: swift Version: 1.0 Release: 0.3.beta5%{?dist} Group: Applications/Internet License: GPLv3 # The source for this package was pulled from upstream's vcs. Use the # following commands to generate the tarball: # git clone git://gitorious.org/swift/swift.git # cd swift # git archive --format=tar --prefix=swift-1.0beta5/ swift-1.0beta5 \ # | gzip > swift-1.0beta5.tar.gz Source0: %{name}-1.0beta5.tar.gz Source1: %{name}.desktop URL: http://swift.im/ BuildRequires: scons BuildRequires: qt-devel BuildRequires: qt-webkit-devel BuildRequires: openssl-devel BuildRequires: expat-devel BuildRequires: boost-devel BuildRequires: libxslt BuildRequires: zlib-devel BuildRequires: docbook-dtds BuildRequires: libidn-devel BuildRequires: desktop-file-utils BuildRequires: cppunit-devel %description Swift is an easy to setup and use Jabber/XMPP instant messaging chat application. %prep %setup -q -n %{name}-1.0beta5 # Remove 3rd party libraries. find 3rdParty/Boost -delete find 3rdParty/SCons -delete find 3rdParty/Expat -delete find 3rdParty/LibIDN -delete find 3rdParty/SQLite -delete find 3rdParty/ZLib -delete find 3rdParty/CAres -delete find 3rdParty/CppUnit -delete find 3rdParty/LCov -delete rm 3rdParty/hippomocks.h # Swift fails to build with our docbook, but it's used only to generate # documentation at compile time, so it's not problem. #find 3rdParty/DocBook -delete echo 'qt="/usr"' > config.py echo 'linkflags="-lpthread -lX11"' >> config.py # ccflags have to be a list, not string echo 'ccflags="%{optflags}".split(" ")' >> config.py %build scons V=1 %install install -p -D -m 755 Swift/QtUI/swift \ %{buildroot}%{_bindir}/swift install -p -m 644 -D Swift/resources/logo/logo-icon-32.xpm \ %{buildroot}%{_datadir}/pixmaps/%{name}.xpm # menu desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ %{SOURCE1} %files %defattr(-, root, root,-) %doc COPYING %{_bindir}/swift %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.xpm %changelog * Wed Aug 04 2010 Jan Kaluza - 1.0-0.3.beta5 - build with optflags - preserve swift.xpm timestamp - fixed license and install COPYING file - fixed Changelog entries * Wed Jul 28 2010 Jan Kaluza - 1.0-0.2.beta5 - delete all unused bundled libraries - don't use deprecated BuildRoot tag - swift.xpm replaced by icon from swift tarball * Wed Jul 28 2010 Jan Kaluza - 1.0-0.1.beta5 - created this SPEC file