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