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