2 # fix static libname (libopal_s.a)
4 # checking PTLIB has expat... no
5 # checking PTLIB has vxml... no
6 # checking PTLIB has ipv6... no
7 # checking PTLIB has ldap... no
8 # ... and check plugin configuration:
16 # Quicknet xJACK support : no
18 # Don't touch this! strip removes all symbols from library
19 %define no_install_post_strip 1
21 Summary: Open Phone Abstraction Library (aka OpenH323 v2)
22 Summary(pl.UTF-8): Biblioteka Open Phone Abstraction Library (aka OpenH323 v2)
28 Source0: http://ftp.gnome.org/pub/gnome/sources/opal/3.4/%{name}-%{version}.tar.bz2
29 # Source0-md5: a1d11099fa00d77a79dcfe513872e8dc
30 #Source0: http://www.ekiga.org/admin/downloads/latest/sources/sources/%{name}-%{version}.tar.gz
31 Patch0: %{name}-libname.patch
32 Patch1: %{name}-mak_files.patch
33 Patch2: %{name}-ac.patch
34 Patch3: %{name}-build.patch
35 URL: http://www.openh323.org/
36 BuildRequires: SDL-devel
37 BuildRequires: automake
38 BuildRequires: autoconf
39 BuildRequires: libstdc++-devel
40 BuildRequires: openssl-devel
41 BuildRequires: pkgconfig
42 BuildRequires: ptlib-devel
43 BuildRequires: sed >= 4.0
44 BuildRequires: speex-devel >= 1:1.1.5
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 The OPAL project aims to create a full featured, interoperable,
50 Open Source implementation of the ITU H.323 teleconferencing protocol
51 that can be used by personal developers and commercial users without
54 %description -l pl.UTF-8
55 Celem projektu OPAL jest stworzenie w pełni funkcjonalnej i
56 wyposażonej implementacji protokołu telekonferencyjnego ITU H.323,
57 który może być używany przez użytkowników prywatnych i komercyjnych
61 Summary: Opal development files
62 Summary(pl.UTF-8): Pliki dla developerów Opal
63 Group: Development/Libraries
64 Requires: %{name} = %{version}-%{release}
65 Requires: libstdc++-devel
69 Header files and libraries for developing applications that use
72 %description devel -l pl.UTF-8
73 Pliki nagłówkowe i biblioteki konieczne do rozwoju aplikacji
77 Summary: OPAL static libraries
78 Summary(pl.UTF-8): Biblioteki statyczne OPAL
79 Group: Development/Libraries
80 Requires: %{name}-devel = %{version}-%{release}
83 OPAL static libraries.
85 %description static -l pl.UTF-8
86 Biblioteki statyczne OPAL.
96 PWLIBDIR=%{_prefix}; export PWLIBDIR
97 OPALDIR=`pwd`; export OPALDIR
98 OPAL_BUILD="yes"; export OPAL_BUILD
103 %{__make} %{?debug:debug}%{!?debug:opt} \
106 OPTCCFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}"
108 %{__cp} -a */libopal* .
109 %{__make} -C samples/simple %{?debug:debug}%{!?debug:opt} \
112 CFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG} -I`pwd`/include" \
113 LDFLAGS="%{rpmldflags} -L`pwd` -lpt -lopal"
116 rm -rf $RPM_BUILD_ROOT
117 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/opal,%{_bindir},%{_datadir}/%{name}}
120 DESTDIR=$RPM_BUILD_ROOT
122 # using cp as install won't preserve links
123 cp -d lib/lib*.a $RPM_BUILD_ROOT%{_libdir}
124 install version.h $RPM_BUILD_ROOT%{_includedir}/opal
125 install samples/simple/obj_*/simpleopal $RPM_BUILD_ROOT%{_bindir}
126 sed -i -e 's@\$(OPALDIR)/include@&/opal@' \
127 -e 's@\$(OPALDIR)/lib@\$(OPALDIR)/%{_lib}@' $RPM_BUILD_ROOT%{_datadir}/opal/opal_inc.mak
130 rm -rf $RPM_BUILD_ROOT
132 %post -p /sbin/ldconfig
133 %postun -p /sbin/ldconfig
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_bindir}/*
138 %attr(755,root,root) %{_libdir}/lib*.so.*.*
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/*.so
147 %defattr(644,root,root,755)