]>
Commit | Line | Data |
---|---|---|
5683c404 JR |
1 | # |
2 | # Don't touch this! strip removes all symbols from library | |
3 | %define no_install_post_strip 1 | |
4 | # | |
aaf12cf0 | 5 | Summary: Open Phone Abstraction Library (aka OpenH323 v2) |
075bc36b | 6 | Summary(pl.UTF-8): Biblioteka Open Phone Abstraction Library (aka OpenH323 v2) |
aaf12cf0 | 7 | Name: opal |
ae4cbc20 | 8 | Version: 2.2.5 |
5d8b1e18 | 9 | Release: 1 |
aaf12cf0 PG |
10 | License: MPL |
11 | Group: Libraries | |
8db2f0fb | 12 | Source0: http://www.ekiga.org/admin/downloads/latest/sources/sources/%{name}-%{version}.tar.gz |
ae4cbc20 | 13 | # Source0-md5: d85407085c391fecc89451fd5c132645 |
0a847dbc | 14 | Patch0: %{name}-libname.patch |
c1724659 | 15 | Patch1: %{name}-mak_files.patch |
a1d65832 | 16 | URL: http://www.openh323.org/ |
aaf12cf0 | 17 | BuildRequires: libstdc++-devel |
5d8b1e18 | 18 | BuildRequires: pwlib-devel >= 1.10.3 |
3ba5c27c | 19 | BuildRequires: sed >= 4.0 |
0b6b8659 | 20 | BuildRequires: speex-devel >= 1:1.1.5 |
aaf12cf0 | 21 | %requires_eq pwlib |
aaf12cf0 PG |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
296d779e | 25 | The OPAL project aims to create a full featured, interoperable, |
aaf12cf0 PG |
26 | Open Source implementation of the ITU H.323 teleconferencing protocol |
27 | that can be used by personal developers and commercial users without | |
28 | charge. | |
29 | ||
a2a27970 JR |
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 | |
34 | bez opłat. | |
aaf12cf0 PG |
35 | |
36 | %package devel | |
37 | Summary: Opal development files | |
075bc36b | 38 | Summary(pl.UTF-8): Pliki dla developerów Opal |
aaf12cf0 | 39 | Group: Development/Libraries |
5e9f9381 | 40 | Requires: %{name} = %{version}-%{release} |
aaf12cf0 PG |
41 | Requires: libstdc++-devel |
42 | Requires: pwlib-devel | |
aaf12cf0 PG |
43 | |
44 | %description devel | |
45 | Header files and libraries for developing applications that use | |
296d779e | 46 | OPAL. |
aaf12cf0 | 47 | |
a2a27970 JR |
48 | %description devel -l pl.UTF-8 |
49 | Pliki nagłówkowe i biblioteki konieczne do rozwoju aplikacji | |
50 | używających OPAL. | |
aaf12cf0 | 51 | |
0a847dbc | 52 | %package static |
296d779e | 53 | Summary: OPAL static libraries |
075bc36b | 54 | Summary(pl.UTF-8): Biblioteki statyczne OPAL |
0a847dbc | 55 | Group: Development/Libraries |
5e9f9381 | 56 | Requires: %{name}-devel = %{version}-%{release} |
aaf12cf0 | 57 | |
0a847dbc | 58 | %description static |
296d779e | 59 | OPAL static libraries. |
aaf12cf0 | 60 | |
a2a27970 | 61 | %description static -l pl.UTF-8 |
296d779e | 62 | Biblioteki statyczne OPAL. |
aaf12cf0 PG |
63 | |
64 | %prep | |
8db2f0fb | 65 | %setup -q |
0a847dbc | 66 | %patch0 -p1 |
c1724659 | 67 | %patch1 -p1 |
aaf12cf0 PG |
68 | |
69 | %build | |
b0b5ec3f | 70 | PWLIBDIR=%{_prefix}; export PWLIBDIR |
296d779e | 71 | OPALDIR=`pwd`; export OPALDIR |
c1724659 | 72 | OPAL_BUILD="yes"; export OPAL_BUILD |
6814c12b | 73 | %configure |
b0b5ec3f | 74 | |
c1724659 | 75 | %{__make} %{?debug:debug}%{!?debug:opt} \ |
296d779e JR |
76 | CC="%{__cc}" \ |
77 | CPLUS="%{__cxx}" \ | |
78 | OPTCCFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}" | |
b0b5ec3f | 79 | |
c1724659 | 80 | %{__make} -C samples/simple %{?debug:debug}%{!?debug:opt} \ |
296d779e JR |
81 | CC="%{__cc}" \ |
82 | CPLUS=%{__cxx} \ | |
83 | OPTCCFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}" | |
aaf12cf0 PG |
84 | |
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
c3da3372 | 87 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/opal,%{_bindir},%{_datadir}/%{name}} |
b0b5ec3f | 88 | |
89 | %{__make} install \ | |
90 | DESTDIR=$RPM_BUILD_ROOT | |
aaf12cf0 | 91 | |
296d779e | 92 | # using cp as install won't preserve links |
5e9f9381 | 93 | cp -d lib/lib*.a $RPM_BUILD_ROOT%{_libdir} |
296d779e JR |
94 | install version.h $RPM_BUILD_ROOT%{_includedir}/opal |
95 | install samples/simple/obj_*/simpleopal $RPM_BUILD_ROOT%{_bindir} | |
82373d33 JR |
96 | sed -i -e 's@\$(OPALDIR)/include@&/opal@' \ |
97 | -e 's@\$(OPALDIR)/lib@\$(OPALDIR)/%{_lib}@' $RPM_BUILD_ROOT%{_datadir}/opal/opal_inc.mak | |
aaf12cf0 PG |
98 | |
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
296d779e | 107 | %attr(755,root,root) %{_bindir}/* |
b0b5ec3f | 108 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
aaf12cf0 PG |
109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
aaf12cf0 PG |
112 | %attr(755,root,root) %{_libdir}/*.so |
113 | %{_includedir}/* | |
b0b5ec3f | 114 | %{_datadir}/%{name} |
aaf12cf0 | 115 | |
296d779e JR |
116 | %files static |
117 | %defattr(644,root,root,755) | |
118 | %{_libdir}/*.a |