]> git.pld-linux.org Git - packages/opal.git/blame - opal.spec
- up to 2.2.5
[packages/opal.git] / opal.spec
CommitLineData
5683c404
JR
1#
2# Don't touch this! strip removes all symbols from library
3%define no_install_post_strip 1
4#
aaf12cf0 5Summary: Open Phone Abstraction Library (aka OpenH323 v2)
075bc36b 6Summary(pl.UTF-8): Biblioteka Open Phone Abstraction Library (aka OpenH323 v2)
aaf12cf0 7Name: opal
ae4cbc20 8Version: 2.2.5
5d8b1e18 9Release: 1
aaf12cf0
PG
10License: MPL
11Group: Libraries
8db2f0fb 12Source0: http://www.ekiga.org/admin/downloads/latest/sources/sources/%{name}-%{version}.tar.gz
ae4cbc20 13# Source0-md5: d85407085c391fecc89451fd5c132645
0a847dbc 14Patch0: %{name}-libname.patch
c1724659 15Patch1: %{name}-mak_files.patch
a1d65832 16URL: http://www.openh323.org/
aaf12cf0 17BuildRequires: libstdc++-devel
5d8b1e18 18BuildRequires: pwlib-devel >= 1.10.3
3ba5c27c 19BuildRequires: sed >= 4.0
0b6b8659 20BuildRequires: speex-devel >= 1:1.1.5
aaf12cf0 21%requires_eq pwlib
aaf12cf0
PG
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
296d779e 25The OPAL project aims to create a full featured, interoperable,
aaf12cf0
PG
26Open Source implementation of the ITU H.323 teleconferencing protocol
27that can be used by personal developers and commercial users without
28charge.
29
a2a27970
JR
30%description -l pl.UTF-8
31Celem projektu OPAL jest stworzenie w pełni funkcjonalnej i
32wyposażonej implementacji protokołu telekonferencyjnego ITU H.323,
33który może być używany przez użytkowników prywatnych i komercyjnych
34bez opłat.
aaf12cf0
PG
35
36%package devel
37Summary: Opal development files
075bc36b 38Summary(pl.UTF-8): Pliki dla developerów Opal
aaf12cf0 39Group: Development/Libraries
5e9f9381 40Requires: %{name} = %{version}-%{release}
aaf12cf0
PG
41Requires: libstdc++-devel
42Requires: pwlib-devel
aaf12cf0
PG
43
44%description devel
45Header files and libraries for developing applications that use
296d779e 46OPAL.
aaf12cf0 47
a2a27970
JR
48%description devel -l pl.UTF-8
49Pliki nagłówkowe i biblioteki konieczne do rozwoju aplikacji
50używających OPAL.
aaf12cf0 51
0a847dbc 52%package static
296d779e 53Summary: OPAL static libraries
075bc36b 54Summary(pl.UTF-8): Biblioteki statyczne OPAL
0a847dbc 55Group: Development/Libraries
5e9f9381 56Requires: %{name}-devel = %{version}-%{release}
aaf12cf0 57
0a847dbc 58%description static
296d779e 59OPAL static libraries.
aaf12cf0 60
a2a27970 61%description static -l pl.UTF-8
296d779e 62Biblioteki 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 70PWLIBDIR=%{_prefix}; export PWLIBDIR
296d779e 71OPALDIR=`pwd`; export OPALDIR
c1724659 72OPAL_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
86rm -rf $RPM_BUILD_ROOT
c3da3372 87install -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 93cp -d lib/lib*.a $RPM_BUILD_ROOT%{_libdir}
296d779e
JR
94install version.h $RPM_BUILD_ROOT%{_includedir}/opal
95install samples/simple/obj_*/simpleopal $RPM_BUILD_ROOT%{_bindir}
82373d33
JR
96sed -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
100rm -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
This page took 0.590679 seconds and 4 git commands to generate.