13658N/A#
13658N/A# spec file for package libotr
13658N/A#
13658N/A# Copyright (c) 2008 Sun Microsystems, Inc.
13658N/A# This file and all modifications and additions to the pristine
13658N/A# package are under the same license as the package itself.
13658N/A#
18030N/A%define owner hawklu
13658N/A# bugdb :
13658N/A#
17178N/A
17178N/A%define OSR 12724:3.2.0
17178N/A
13658N/AName: libotr
13658N/AVersion: 3.2.0
13658N/ARelease: 1
13658N/ALicense: GPL
13658N/AGroup: Applications/Internet
13658N/ADistribution: Java Desktop System
18616N/AVendor: Cypherpunks Canada
13658N/ASummary: Off-the-Record (OTR) Messaging plugin for GAIM
13658N/ASource: http://www.cypherpunks.ca/otr/libotr-%{version}.tar.gz
13658N/AURL: http://www.cypherpunks.ca/otr/
13658N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
13658N/ADocdir: %{_defaultdocdir}/pidgin
13658N/AAutoreqprov: on
13658N/A
13658N/A%description
13658N/AOff-the-Record (OTR) Messaging allows you to have private
13658N/Aconversations over instant messaging.
13658N/AThis is a plugin for pdgin which implements Off-the-Record
13658N/AMessaging over any IM network pidgin supports.
13658N/A
13658N/A%prep
13658N/A%setup -q
13658N/A
13658N/A%build
13658N/A%ifos linux
13658N/Aif [ -x /usr/bin/getconf ]; then
13658N/A CPUS=`getconf _NPROCESSORS_ONLN`
13658N/Afi
13658N/A%else
13658N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
13658N/A%endif
13658N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
13658N/A CPUS=1
13658N/Afi
13658N/A
13658N/A#build libotr
13658N/Acd ../libotr*
13658N/Aglib-gettextize -f
13658N/Alibtoolize --force
13658N/Aaclocal $ACLOCAL_FLAGS -I .
13658N/Aautoheader
13658N/Aautomake -a -c -f
13658N/Aautoconf
13658N/A
13658N/ACFLAGS="$RPM_OPT_FLAGS -DG_IMPLEMENT_INLINES -DG_HAVE_ISO_VARARGS" \
13658N/ALD_LIBRARY_PATH="%{_libdir}:$LD_LIBRARY_PATH"
13658N/A./configure \
13658N/A --prefix=%{_prefix} \
13658N/A --mandir=%{_mandir} \
13658N/A --sysconfdir=%{_sysconfdir}
13658N/Amake -j $CPUS
13658N/A
13658N/A# pidgin-otr looks for files like <libotr/message.h> so we must copy them to
13658N/A# my_build_tmp/libotr and point CFLAGS to my_build_tmp to be found.
13658N/Aif [ -d my_build_tmp ]; then rm -rf my_build_tmp; fi;
13658N/Amkdir my_build_tmp; mkdir my_build_tmp/libotr;
13658N/Acp src/*.h my_build_tmp/libotr
13658N/Acp toolkit/*.h my_build_tmp/libotr
13658N/A
13658N/A
13658N/A%install
13658N/Amake DESTDIR=$RPM_BUILD_ROOT install \
13658N/A SITEPREFIX=/dummy VENDORPREFIX=/dummy PERLPREFIX=/dummy
13658N/A
13658N/A
13658N/A%clean
13658N/Arm -r $RPM_BUILD_ROOT
13658N/A
13658N/A%changelog
18030N/A* Thu Jan 07 2009 - brian.lu@sun.com
18030N/A- Change the owner to hawklu
16104N/A* Wed Mar 11 2009 - elaine.xiong@sun.com
16104N/A- Change ownership to elaine.
16104N/A
13658N/A* Thu Jul 23 2008 - damien.carbery@sun.com
13658N/A- Move libotr from pidgin-otr.spec to libotr.spec. This makes is easier to
13658N/A track for ARC and Legal reviews.
13658N/A
13658N/A* Mon Jul 21 2008 - rick.ju@sun.com
13658N/A- Bump to 3.2.0.
13658N/A
13658N/A* Tue Nov 06 2007 - rick.ju@sun.com
13658N/A- bump to libotr 3.1.0 and pidgin-otr 3.1.0
13658N/A
13658N/A* Tue Jun 01 2007 - rick.ju@sun.com
13658N/A- fix the source0 url
13658N/A
13658N/A* Tue May 30 2007 - rick.ju@sun.com
13658N/A- bump to pidgin-otr 3.0.1
13658N/A
13658N/A* Tue Apr 03 2007 - rick.ju@sun.com
13658N/A- Add a gaim-otr-03-gtk-dialog.diff for bug#632728
13658N/A
13658N/A* Thu Jan 18 2007 - damien.carbery@sun.com
13658N/A- Remove the code from %install that deletes $RPM_BUILD_ROOT as it trashes the
13658N/A 'make install' of gaim when part of SUNWgnome-im-client build.
13658N/A
13658N/A* Thu Dec 21 2006 - damien.carbery@sun.com
13658N/A- Remove *.a and *.la files in %install.
13658N/A
13658N/A* Mon Dec 18 2006 - rick.ju@sun.com
13658N/A- Add this new spec for libotr and gaim-otr