12916
|
1 |
#
|
|
2 |
# spec file for package libotr
|
|
3 |
#
|
|
4 |
# Copyright (c) 2008 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
17279
|
8 |
%define owner hawklu
|
12916
|
9 |
# bugdb :
|
|
10 |
#
|
16427
|
11 |
|
|
12 |
%define OSR 12724:3.2.0
|
|
13 |
|
12916
|
14 |
Name: libotr
|
|
15 |
Version: 3.2.0
|
|
16 |
Release: 1
|
|
17 |
License: GPL
|
|
18 |
Group: Applications/Internet
|
|
19 |
Distribution: Java Desktop System
|
17865
|
20 |
Vendor: Cypherpunks Canada
|
12916
|
21 |
Summary: Off-the-Record (OTR) Messaging plugin for GAIM
|
|
22 |
Source: http://www.cypherpunks.ca/otr/libotr-%{version}.tar.gz
|
|
23 |
URL: http://www.cypherpunks.ca/otr/
|
|
24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
25 |
Docdir: %{_defaultdocdir}/pidgin
|
|
26 |
Autoreqprov: on
|
|
27 |
|
|
28 |
%description
|
|
29 |
Off-the-Record (OTR) Messaging allows you to have private
|
|
30 |
conversations over instant messaging.
|
|
31 |
This is a plugin for pdgin which implements Off-the-Record
|
|
32 |
Messaging over any IM network pidgin supports.
|
|
33 |
|
|
34 |
%prep
|
|
35 |
%setup -q
|
|
36 |
|
|
37 |
%build
|
|
38 |
%ifos linux
|
|
39 |
if [ -x /usr/bin/getconf ]; then
|
|
40 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
41 |
fi
|
|
42 |
%else
|
|
43 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
44 |
%endif
|
|
45 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
46 |
CPUS=1
|
|
47 |
fi
|
|
48 |
|
|
49 |
#build libotr
|
|
50 |
cd ../libotr*
|
|
51 |
glib-gettextize -f
|
|
52 |
libtoolize --force
|
|
53 |
aclocal $ACLOCAL_FLAGS -I .
|
|
54 |
autoheader
|
|
55 |
automake -a -c -f
|
|
56 |
autoconf
|
|
57 |
|
|
58 |
CFLAGS="$RPM_OPT_FLAGS -DG_IMPLEMENT_INLINES -DG_HAVE_ISO_VARARGS" \
|
|
59 |
LD_LIBRARY_PATH="%{_libdir}:$LD_LIBRARY_PATH"
|
|
60 |
./configure \
|
|
61 |
--prefix=%{_prefix} \
|
|
62 |
--mandir=%{_mandir} \
|
|
63 |
--sysconfdir=%{_sysconfdir}
|
|
64 |
make -j $CPUS
|
|
65 |
|
|
66 |
# pidgin-otr looks for files like <libotr/message.h> so we must copy them to
|
|
67 |
# my_build_tmp/libotr and point CFLAGS to my_build_tmp to be found.
|
|
68 |
if [ -d my_build_tmp ]; then rm -rf my_build_tmp; fi;
|
|
69 |
mkdir my_build_tmp; mkdir my_build_tmp/libotr;
|
|
70 |
cp src/*.h my_build_tmp/libotr
|
|
71 |
cp toolkit/*.h my_build_tmp/libotr
|
|
72 |
|
|
73 |
|
|
74 |
%install
|
|
75 |
make DESTDIR=$RPM_BUILD_ROOT install \
|
|
76 |
SITEPREFIX=/dummy VENDORPREFIX=/dummy PERLPREFIX=/dummy
|
|
77 |
|
|
78 |
|
|
79 |
%clean
|
|
80 |
rm -r $RPM_BUILD_ROOT
|
|
81 |
|
|
82 |
%changelog
|
17279
|
83 |
* Thu Jan 07 2009 - [email protected]
|
|
84 |
- Change the owner to hawklu
|
15353
|
85 |
* Wed Mar 11 2009 - [email protected]
|
|
86 |
- Change ownership to elaine.
|
|
87 |
|
12916
|
88 |
* Thu Jul 23 2008 - [email protected]
|
|
89 |
- Move libotr from pidgin-otr.spec to libotr.spec. This makes is easier to
|
|
90 |
track for ARC and Legal reviews.
|
|
91 |
|
|
92 |
* Mon Jul 21 2008 - [email protected]
|
|
93 |
- Bump to 3.2.0.
|
|
94 |
|
|
95 |
* Tue Nov 06 2007 - [email protected]
|
|
96 |
- bump to libotr 3.1.0 and pidgin-otr 3.1.0
|
|
97 |
|
|
98 |
* Tue Jun 01 2007 - [email protected]
|
|
99 |
- fix the source0 url
|
|
100 |
|
|
101 |
* Tue May 30 2007 - [email protected]
|
|
102 |
- bump to pidgin-otr 3.0.1
|
|
103 |
|
|
104 |
* Tue Apr 03 2007 - [email protected]
|
|
105 |
- Add a gaim-otr-03-gtk-dialog.diff for bug#632728
|
|
106 |
|
|
107 |
* Thu Jan 18 2007 - [email protected]
|
|
108 |
- Remove the code from %install that deletes $RPM_BUILD_ROOT as it trashes the
|
|
109 |
'make install' of gaim when part of SUNWgnome-im-client build.
|
|
110 |
|
|
111 |
* Thu Dec 21 2006 - [email protected]
|
|
112 |
- Remove *.a and *.la files in %install.
|
|
113 |
|
|
114 |
* Mon Dec 18 2006 - [email protected]
|
|
115 |
- Add this new spec for libotr and gaim-otr
|