author | dermotm |
Mon, 01 Nov 2004 10:56:45 +0000 | |
changeset 4409 | 4fec71e58697 |
parent 4276 | 2a2c7f354601 |
child 4455 | aea26bce3124 |
permissions | -rw-r--r-- |
836 | 1 |
Name: openh323 |
2 |
License: MPL |
|
3 |
Group: System Environment/Libraries |
|
3941 | 4 |
Version: 1.13.4 |
4409 | 5 |
Release: 22 |
2069 | 6 |
Distribution: Cinnabar |
836 | 7 |
Vendor: Sun Microsystems, Inc. |
8 |
Summary: Library for H323 spec. |
|
9 |
URL: http://www.openh323.org/ |
|
10 |
Source0: %{name}-%{version}.tar.bz2 |
|
11 |
Source1: Speex-0.8.1.tar.bz2 |
|
12 |
Patch0: openh323-01-libname.diff |
|
13 |
BuildRoot: %{_tmppath}/%{name}-root |
|
14 |
Docdir: %{_defaultdocdir}/doc |
|
1080 | 15 |
Prereq: /sbin/ldconfig |
836 | 16 |
|
3941 | 17 |
%define pwlib_version 1.6.5 |
836 | 18 |
%define xfee86_version 4.3.0 |
19 |
||
20 |
Requires: pwlib >= %{pwlib_version} |
|
21 |
BuildRequires: pwlib-devel >= %{pwlib_version} |
|
22 |
BuildRequires: XFree86-devel >= %{xfree86_vresion} |
|
23 |
||
24 |
%description |
|
25 |
Implementation of the ITU H.323 teleconferencing protocol. |
|
26 |
||
27 |
%package devel |
|
28 |
Summary: Development package for openh323 |
|
29 |
Group: Development/Libraries |
|
30 |
Requires: openh323 = %{version} |
|
31 |
||
32 |
%description devel |
|
33 |
Static libraries and header files for development with openh323. |
|
34 |
||
35 |
%prep |
|
36 |
%setup -q -n %{name} |
|
37 |
%patch0 -p1 |
|
38 |
||
1522 | 39 |
bzcat %SOURCE1 | tar xf - |
836 | 40 |
ln -s Speex-0.8.1 speex |
41 |
||
42 |
||
43 |
%build |
|
3263 | 44 |
%ifos linux |
45 |
if [ -x /usr/bin/getconf ]; then |
|
46 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
47 |
fi |
|
48 |
%else |
|
3846 | 49 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 50 |
%endif |
51 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
52 |
CPUS=1 |
|
53 |
fi |
|
54 |
||
836 | 55 |
# First build static Speex libs |
56 |
cd speex |
|
57 |
./configure --enable-shared=no --enable-static=yes --with-pic=yes |
|
3263 | 58 |
make -j $CPUS |
836 | 59 |
cd .. |
60 |
||
61 |
(mkdir pwlibdir; cd pwlibdir; |
|
62 |
ln -s %{_datadir}/pwlib/make make |
|
63 |
ln -s %{_datadir} share |
|
64 |
ln -s %{_includedir} include |
|
65 |
ln -s %{_libdir} lib |
|
66 |
mkdir -p tools |
|
67 |
ln -s %{_bindir}/asnparser tools/asnparser |
|
68 |
ln -s %{_bindir} bin |
|
69 |
) |
|
70 |
||
2443 | 71 |
export PWLIBDIR=`pwd`/pwlibdir |
2066 | 72 |
export PWLIB_BUILD="yes" |
836 | 73 |
export PTLIB_CONFIG=`which ptlib-config` |
74 |
||
75 |
./configure --prefix=%{_prefix} \ |
|
76 |
--sysconfdir=%{_sysconfdir} |
|
77 |
||
78 |
||
79 |
make optshared |
|
80 |
||
81 |
%install |
|
82 |
mkdir -p $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/openh323,%{_bindir},%{_datadir}/misc} |
|
83 |
cp -d lib/lib*.so* $RPM_BUILD_ROOT%{_libdir} |
|
84 |
install include/*.h $RPM_BUILD_ROOT%{_includedir}/openh323 |
|
85 |
install speex/libspeex/speex.h speex/libspeex/speex_bits.h speex/libspeex/speex_header.h $RPM_BUILD_ROOT%{_includedir}/openh323 |
|
86 |
||
87 |
sed -e's@\$(OPENH323DIR)/include@&/openh323@' < openh323u.mak \ |
|
88 |
> $RPM_BUILD_ROOT%{_datadir}/misc/openh323u.mak |
|
89 |
||
90 |
%clean |
|
91 |
rm -rf $RPM_BUILD_ROOT |
|
92 |
||
93 |
%post |
|
1080 | 94 |
/sbin/ldconfig |
836 | 95 |
|
96 |
%postun |
|
1080 | 97 |
/sbin/ldconfig |
836 | 98 |
|
99 |
%files |
|
100 |
%defattr(-,root,root) |
|
101 |
%doc ReadMe.txt mpl-1.0.htm |
|
102 |
%{_libdir}/*.so.* |
|
103 |
||
104 |
%files devel |
|
105 |
%defattr(-,root,root) |
|
106 |
%{_libdir}/*.so |
|
107 |
%{_includedir}/* |
|
108 |
%{_datadir}/misc/* |
|
109 |
||
110 |
%changelog |
|
4005 | 111 |
* Mon Sep 20 2004 - [email protected] |
112 |
- fixed typo in changelog |
|
113 |
||
114 |
* Wed Sep 15 2004 - [email protected] |
|
3941 | 115 |
- Upreved to 1.13.4 and removed all the Solaris specific patches. |
116 |
so that it can be built for gm-1.0.2 |
|
117 |
||
3263 | 118 |
* Wed Jul 07 2004 - [email protected] |
119 |
- added "-j $CPUS" to make to speed up builds |
|
120 |
||
2441 | 121 |
* Fri Apr 09 2004 - [email protected] |
122 |
- Added needed Solaris patch 05. |
|
123 |
||
2434 | 124 |
* Thu Apr 06 2004 - [email protected] |
125 |
- Added needed Solaris patches 02, 03, 04. |
|
126 |
||
2074 | 127 |
* Fri Feb 27 2004 - [email protected] |
128 |
- Built tarball 1.13.2 for g-m 1.0 |
|
129 |
||
2070
14b553ed8655
Added Distro to automake-jds, changelog typo in openh323
mattk
parents:
2069
diff
changeset
|
130 |
* Fri Feb 27 2004 - [email protected] |
2069 | 131 |
- Update Distro |
132 |
||
2066 | 133 |
* Thu Feb 26 2004 - [email protected] |
134 |
- Updated tarballs to 1.12.2 |
|
135 |
||
836 | 136 |
* Wed Jul 16 2003 - [email protected] |
137 |
- Initial Sun Release |