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