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