base-specs/pidgin-otr.spec
author gman
Thu, 30 Sep 2010 21:37:28 +0000
branchgnome-2-30
changeset 20130 c7dfc176dcbd
parent 17865 b7ff02e93f66
child 20026 2da80049f7bb
permissions -rw-r--r--
2010-10-01 Glynn Foster <[email protected]> * specs/SUNWos-welcome.spec: Bump to 1.0.6

#
# spec file for package pidgin-otr
#
# Copyright (c) 2008 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner hawklu 
# bugdb :
#

%define OSR 5300:3.x

Name:		pidgin-otr
Version:	3.2.0
Release:        1
License:	GPL
Group:		Applications/Internet
Distribution:	Java Desktop System
Vendor:		Cypherpunks Canada
Summary:	Off-the-Record (OTR) Messaging plugin for GAIM
Source0:        http://www.cypherpunks.ca/otr/%{name}-%{version}.tar.gz
# owner:elaine date:2007-03-07 type:bug bugster:6524858 state:upstream
Patch1:         pidgin-otr-01-gtk-ui.diff
URL:		http://www.cypherpunks.ca/otr/
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
Docdir:		%{_defaultdocdir}/pidgin
Autoreqprov:	on

BuildRequires:	pidgin-devel

%description
Off-the-Record (OTR) Messaging allows you to have private
conversations over instant messaging.
This is a plugin for pdgin which implements Off-the-Record
Messaging over any IM network pidgin supports. 

%package devel
Summary:      Off-the-Record (OTR) Messaging Plugin For GAIM
Group:        System/GUI/GNOME
Autoreqprov:  on
Requires:     %name = %version

%description devel
Off-the-Record (OTR) Messaging allows you to have private
conversations over instant messaging.
This is a plugin for pidgin which implements Off-the-Record
Messaging over any IM network pidgin supports. 

%prep
%setup -q
%patch1 -p1

%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
  CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
  CPUS=1
fi

libtoolize --force
aclocal $ACLOCAL_FLAGS -I .
autoheader
automake -a -c -f
autoconf

export CFLAGS="$RPM_OPT_FLAGS -DG_IMPLEMENT_INLINES -DG_HAVE_ISO_VARARGS"
export LD_LIBRARY_PATH="%{_libdir}:$LD_LIBRARY_PATH:$LIBOTR_BLD_DIR/src/.libs"
./configure 				\
	--prefix=%{_prefix} 		\
	--mandir=%{_mandir}		\
	--sysconfdir=%{_sysconfdir}     \
	--with-libotr-inc-prefix=$LIBOTR_BLD_DIR/my_build_tmp \
	--with-libotr-prefix=$LIBOTR_BLD_DIR/src/.libs
make -j $CPUS

%install
make DESTDIR=$RPM_BUILD_ROOT install \
    SITEPREFIX=/dummy VENDORPREFIX=/dummy PERLPREFIX=/dummy


%clean
rm -r $RPM_BUILD_ROOT

%changelog
* Thu Jan 07 2009 - [email protected]
- Change the owner to hawklu
* Wed Mar 11 2009 - [email protected]
- Change ownership to elaine.

* Thu Dec 25 2008 - [email protected]
- Remove glib-gettextize line to avoid build issue with intltool 0.40.5.
* Tue Aug 04 2008 - [email protected]
- 'export' CFLAGS AND LD_LIBRARY_PATH to fix build.

* Tue Jul 29 2008 - [email protected]
- Fix syntax in LD_LIBRARY_PATH (remove -L).

* Thu Jul 23 2008 - [email protected]
- Move libotr from pidgin-otr.spec to libotr.spec. This makes is easier to
  track for ARC and Legal reviews.

* Mon Jul 21 2008 - [email protected]
- Bump to 3.2.0.

* Tue Nov 06 2007 - [email protected]
- bump to libotr 3.1.0 and pidgin-otr 3.1.0

* Tue Jun 01 2007 - [email protected]
- fix the source0 url

* Tue May 30 2007 - [email protected]
- bump to pidgin-otr 3.0.1

* Tue Apr 03 2007 - [email protected]
- Add a gaim-otr-03-gtk-dialog.diff for bug#632728

* Thu Jan 18 2007 - [email protected]
- Remove the code from %install that deletes $RPM_BUILD_ROOT as it trashes the
  'make install' of gaim when part of SUNWgnome-im-client build.

* Thu Dec 21 2006 - [email protected]
- Remove *.a and *.la files in %install.

* Mon Dec 18 2006 - [email protected]
- Add this new spec for libotr and gaim-otr