2 # Don't touch this! strip removes all symbols from library
3 %define no_install_post_strip 1
5 Summary: Open Phone Abstraction Library (aka OpenH323 v2)
6 Summary(pl.UTF-8): Biblioteka Open Phone Abstraction Library (aka OpenH323 v2)
12 Source0: http://www.ekiga.org/admin/downloads/latest/sources/sources/%{name}-%{version}.tar.gz
13 # Source0-md5: d85407085c391fecc89451fd5c132645
14 Patch0: %{name}-libname.patch
15 Patch1: %{name}-mak_files.patch
16 URL: http://www.openh323.org/
17 BuildRequires: libstdc++-devel
18 BuildRequires: pwlib-devel >= 1.10.3
19 BuildRequires: sed >= 4.0
20 BuildRequires: speex-devel >= 1:1.1.5
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The OPAL project aims to create a full featured, interoperable,
26 Open Source implementation of the ITU H.323 teleconferencing protocol
27 that can be used by personal developers and commercial users without
30 %description -l pl.UTF-8
31 Celem projektu OPAL jest stworzenie w pełni funkcjonalnej i
32 wyposażonej implementacji protokołu telekonferencyjnego ITU H.323,
33 który może być używany przez użytkowników prywatnych i komercyjnych
37 Summary: Opal development files
38 Summary(pl.UTF-8): Pliki dla developerów Opal
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
41 Requires: libstdc++-devel
45 Header files and libraries for developing applications that use
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe i biblioteki konieczne do rozwoju aplikacji
53 Summary: OPAL static libraries
54 Summary(pl.UTF-8): Biblioteki statyczne OPAL
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 OPAL static libraries.
61 %description static -l pl.UTF-8
62 Biblioteki statyczne OPAL.
70 PWLIBDIR=%{_prefix}; export PWLIBDIR
71 OPALDIR=`pwd`; export OPALDIR
72 OPAL_BUILD="yes"; export OPAL_BUILD
75 %{__make} %{?debug:debug}%{!?debug:opt} \
78 OPTCCFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}"
80 %{__make} -C samples/simple %{?debug:debug}%{!?debug:opt} \
83 OPTCCFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}"
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/opal,%{_bindir},%{_datadir}/%{name}}
90 DESTDIR=$RPM_BUILD_ROOT
92 # using cp as install won't preserve links
93 cp -d lib/lib*.a $RPM_BUILD_ROOT%{_libdir}
94 install version.h $RPM_BUILD_ROOT%{_includedir}/opal
95 install samples/simple/obj_*/simpleopal $RPM_BUILD_ROOT%{_bindir}
96 sed -i -e 's@\$(OPALDIR)/include@&/opal@' \
97 -e 's@\$(OPALDIR)/lib@\$(OPALDIR)/%{_lib}@' $RPM_BUILD_ROOT%{_datadir}/opal/opal_inc.mak
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_bindir}/*
108 %attr(755,root,root) %{_libdir}/lib*.so.*.*
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/*.so
117 %defattr(644,root,root,755)