]> git.pld-linux.org Git - packages/ptlib.git/blame - ptlib.spec
- make sure it's build against modern gstreamer, rel 3
[packages/ptlib.git] / ptlib.spec
CommitLineData
9eabec1b 1#
93cbf8d4 2# WARNING: keep compatible with Ekiga releases.
5fa46637 3# Recommended versions of ptlib and opal can be found at:
93cbf8d4 4# http://wiki.ekiga.org/index.php/Download_Ekiga_sources
ae9cfba7 5# (for Ekiga 4.0.x it's ptlib 2.10.x + opal 3.10.x)
5fa46637 6#
91616ca7 7# Conditional build:
34e60ae8
JB
8%bcond_without http # HTTP support
9%bcond_without ipv6 # IPv6 support
10%bcond_without ldap # LDAP support
e0f7132c 11%bcond_without lua # Lua script support
df56f391 12%bcond_with odbc # ODBC support
34e60ae8
JB
13%bcond_without openssl # openssl support
14%bcond_without plugins # plugins support
15%bcond_without resolver # resolver support
e0f7132c 16%bcond_without sasl # SASL support
34e60ae8
JB
17%bcond_without video # video support
18%bcond_with esd # EsounD audio support (obsolete)
19%bcond_with avc1394 # AVC1394 video input plugin [requires old libraw1394]
20%bcond_with dc1394 # DC1394 video input plugin [requires old libdc1394]
91616ca7 21#
9eabec1b 22Summary: Portable Tools Library
8a20fb6a 23Summary(pl.UTF-8): Przenośna biblioteka narzędziowa
9eabec1b 24Name: ptlib
f2f74e95 25Version: 2.18.6
66b02ea2 26Release: 3
5fa46637 27Epoch: 1
0154cba6
JB
28License: MPL v1.0
29Group: Libraries
d912cb99 30Source0: http://downloads.sourceforge.net/opalvoip/%{name}-%{version}.tar.bz2
f2f74e95 31# Source0-md5: b0eeaef41e0bf8da8d046c22d9dd0c8d
0154cba6 32URL: http://www.opalvoip.org/
91616ca7 33%{?with_video:BuildRequires: SDL-devel}
93cbf8d4
JB
34BuildRequires: autoconf >= 2.50
35BuildRequires: automake
91616ca7 36BuildRequires: bison
e0f7132c 37%{?with_sasl:BuildRequires: cyrus-sasl-devel}
34e60ae8 38%{?with_esd:BuildRequires: esound-devel}
2da6e90a 39BuildRequires: expat-devel
9eabec1b 40BuildRequires: flex
66b02ea2 41BuildRequires: gstreamer-devel
34e60ae8
JB
42%{?with_avc1394:BuildRequires: libavc1394-devel}
43%{?with_dc1394:BuildRequires: libdc1394-devel < 2.0.0}
bb06b19d 44BuildRequires: libstdc++-devel
f2f74e95 45%{?with_lua:BuildRequires: lua-devel >= 5.4}
34e60ae8 46%{?with_ldap:BuildRequires: openldap-devel}
1c7c1657 47%{?with_openssl:BuildRequires: openssl-devel}
2da6e90a 48BuildRequires: pkgconfig
91616ca7 49%{?with_odbc:BuildRequires: unixODBC-devel}
34e60ae8
JB
50%if %{with plugins}
51BuildRequires: alsa-lib-devel
52BuildRequires: libv4l-devel
53BuildRequires: pulseaudio-devel
54%endif
66b02ea2 55BuildConflicts: gstreamer0.10-devel
34e60ae8 56%{!?with_esd:Obsoletes: ptlib-sound-esd}
61dda034 57Obsoletes: ptlib-video-v4l
9eabec1b 58BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59
60%description
61PTLib (Portable Tools Library) is a moderately large class library
62that has it's genesis many years ago as PWLib (portable Windows
63Library), a method to product applications to run on both Microsoft
64Windows and Unix systems. It has also been ported to other systems
65such as Mac OSX, VxWorks and other embedded systems.
66
67It is supplied mainly to support the OPAL project, but that shouldn't
68stop you from using it in whatever project you have in mind if you so
69desire.
70
8a20fb6a 71%description -l pl.UTF-8
72PTLib (przenośna biblioteka narzędziowa) jest względnie dużą
73biblioteką, która wywodzi się z PWLib (przenośna biblioteka Windows)
74służącej do tworzenia aplikacji działających zarówno w systemach
75Microsoft Windows jak i Unix. Została także przeniesiona na inne
76systemy takie jak Mac OSX, VxWorks i inne wbudowane.
77
78Zestaw ten powstał by wspierać projekt OPAL, to nie powinno jednak być
79przeszkodą by móc go wykorzystać do innych celów jeśli tylko ktoś ma
80na to ochotę.
81
9eabec1b 82%package devel
83Summary: PTLib (Portable Tools Library) development files
8a20fb6a 84Summary(pl.UTF-8): PTLib pliki deweloperskie
9eabec1b 85Group: Development/Libraries
11b50e14 86Requires: %{name} = %{epoch}:%{version}-%{release}
bb06b19d 87
9eabec1b 88%description devel
89Header files and libraries for developing applications that use ptlib.
90
8a20fb6a 91%description devel -l pl.UTF-8
92Pliki nagłówkowe i biblioteki dla aplikacji korzystających z ptlib.
9eabec1b 93
94%package static
95Summary: PTLib (Portable Tools Library) static libraries
8a20fb6a 96Summary(pl.UTF-8): Biblioteki statyczne PTLib
9eabec1b 97Group: Development/Libraries
11b50e14 98Requires: %{name}-devel = %{epoch}:%{version}-%{release}
bb06b19d 99
9eabec1b 100%description static
101PTLib (Portable Tools Library) static libraries.
102
8a20fb6a 103%description static -l pl.UTF-8
104Biblioteki statyczne PTLib.
105
9eabec1b 106%package sound-alsa
0154cba6
JB
107Summary: ALSA audio plugin for PTLib
108Summary(pl.UTF-8): Wtyczka dźwięku ALSA dla biblioteki PTLib
9eabec1b 109Group: Libraries
11b50e14 110Requires: %{name} = %{epoch}:%{version}-%{release}
9eabec1b 111Provides: %{name}-sound
112
113%description sound-alsa
0154cba6 114ALSA audio plugin for PTLib.
9eabec1b 115
8a20fb6a 116%description sound-alsa -l pl.UTF-8
0154cba6 117Wtyczka dźwięku ALSA dla biblioteki PTLib.
8a20fb6a 118
34e60ae8
JB
119%package sound-esd
120Summary: EsounD audio plugin for PTLib
121Summary(pl.UTF-8): Wtyczka dźwięku EsounD dla biblioteki PTLib
d912cb99 122Group: Libraries
11b50e14 123Requires: %{name} = %{epoch}:%{version}-%{release}
d912cb99
CM
124Provides: %{name}-sound
125
34e60ae8
JB
126%description sound-esd
127EsounD audio plugin for PTLib.
d912cb99 128
34e60ae8
JB
129%description sound-esd -l pl.UTF-8
130Wtyczka dźwięku EsounD dla biblioteki PTLib.
d912cb99 131
9eabec1b 132%package sound-oss
0154cba6
JB
133Summary: OSS audio plugin for PTLib
134Summary(pl.UTF-8): Wtyczka dźwięku OSS dla biblioteki PTLib
9eabec1b 135Group: Libraries
11b50e14 136Requires: %{name} = %{epoch}:%{version}-%{release}
9eabec1b 137Provides: %{name}-sound
138
139%description sound-oss
0154cba6 140OSS audio plugin for PTLib.
9eabec1b 141
8a20fb6a 142%description sound-oss -l pl.UTF-8
0154cba6 143Wtyczka dźwięku OSS dla biblioteki PTLib.
8a20fb6a 144
34e60ae8
JB
145%package sound-pulse
146Summary: Pulse audio plugin for PTLib
147Summary(pl.UTF-8): Wtyczka dźwięku Pulse dla biblioteki PTLib
148Group: Libraries
149Requires: %{name} = %{epoch}:%{version}-%{release}
150Provides: %{name}-sound
151
152%description sound-pulse
153Pulse audio plugin for PTLib.
154
155%description sound-pulse -l pl.UTF-8
156Wtyczka dźwięku Pulse dla biblioteki PTLib.
157
9eabec1b 158%package video-v4l2
0154cba6
JB
159Summary: v4l2 video input plugin for PTLib
160Summary(pl.UTF-8): Wtyczka wejścia obrazu v4l2 dla biblioteki PTLib
9eabec1b 161Group: Libraries
11b50e14 162Requires: %{name} = %{epoch}:%{version}-%{release}
9eabec1b 163
164%description video-v4l2
0154cba6 165v4l2 video input plugin for PTLib.
9eabec1b 166
8a20fb6a 167%description video-v4l2 -l pl.UTF-8
0154cba6 168Wtyczka wejścia obrazu v4l2 dla biblioteki PTLib.
8a20fb6a 169
5fa46637 170%package video-avc
0154cba6
JB
171Summary: AVC 1394 video input plugin for PTLib
172Summary(pl.UTF-8): Wtyczka wejścia obrazu AVC 1394 dla biblioteki PTLib
173Group: Libraries
174Requires: %{name} = %{epoch}:%{version}-%{release}
5fa46637
JK
175
176%description video-avc
0154cba6
JB
177AVC 1394 video input plugin for PTLib.
178
179%description video-avc -l pl.UTF-8
180Wtyczka wejścia obrazu AVC 1394 dla biblioteki PTLib
9eabec1b 181
182%prep
183%setup -q
184
185%build
91616ca7 186# note: --enable-opal influences most of the remaining enable/disable defaults
9eabec1b 187%configure \
1165d486 188 STRIP=/bin/true \
f2f74e95 189 DSYMUTIL=/bin/true \
34e60ae8 190 --disable-v4l \
91616ca7 191%if %{with plugins}
0154cba6
JB
192 --enable-plugins \
193 --enable-alsa \
34e60ae8
JB
194 --enable-avc%{!?with_avc1394:=no} \
195 --enable-dc%{!?with_dc1394:=no} \
196 --enable-esd%{!?with_esd:=no} \
93cbf8d4 197 --enable-lua%{!?with_lua:=no} \
0154cba6
JB
198 --enable-oss \
199 --enable-v4l2 \
f2f74e95 200 --enable-pulse \
91616ca7 201%else
0154cba6
JB
202 --disable-plugins \
203 --disable-alsa \
34e60ae8
JB
204 --disable-avc \
205 --disable-dc \
206 --disable-esd \
0154cba6
JB
207 --disable-oss \
208 --disable-v4l2 \
91616ca7 209%endif
f910b498 210%if %{with http}
0154cba6
JB
211 --enable-http \
212 --enable-httpforms \
213 --enable-httpsvc \
f910b498 214%else
0154cba6
JB
215 --disable-http \
216 --disable-httpforms \
217 --disable-httpsvc \
f910b498 218%endif
0154cba6
JB
219 --enable-ipv6%{!?with_ipv6:=no} \
220 --enable-odbc%{!?with_odbc:=no} \
34e60ae8 221 --enable-openldap%{!?with_ldap:=no} \
0154cba6
JB
222 --enable-openssl%{!?with_openssl:=no} \
223 --enable-resolver%{!?with_resolver:=no} \
34e60ae8
JB
224 --enable-sasl%{!?with_sasl:=no} \
225 --enable-video%{!?with_video:=no}
91616ca7 226
9eabec1b 227dir=$(pwd)
f2f74e95 228%{__make} \
ef28a618 229 V=1 \
9eabec1b 230 PTLIBMAKEDIR="$dir/make" \
231 PTLIBDIR="$dir" \
ef28a618
JK
232 CFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG} -DUSE_GCC" \
233 LDFLAGS="%{rpmcflags} %{rpmldflags} %{!?debug:-DNDEBUG}" \
9eabec1b 234 CXX="%{__cxx}"
235
9eabec1b 236%install
237rm -rf $RPM_BUILD_ROOT
238
f2f74e95 239install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/%{name}}
9eabec1b 240
9eabec1b 241%{__make} install \
ef28a618 242 V=1 \
1165d486 243 STRIP=/bin/true \
9eabec1b 244 DESTDIR=$RPM_BUILD_ROOT
245
9eabec1b 246cp version.h $RPM_BUILD_ROOT%{_includedir}/%{name}
247
90a4e09b
AM
248sed -i -e 's#PTLIBDIR=.*#PTLIBDIR=%{_datadir}/ptlib#g' $RPM_BUILD_ROOT%{_datadir}/ptlib/make/plugins.mak
249
ef28a618
JK
250chmod a+x $RPM_BUILD_ROOT%{_libdir}/lib*.so.*
251find $RPM_BUILD_ROOT%{_libdir}/ptlib-* -name '*.so' | xargs chmod a+x
252
9eabec1b 253%clean
254rm -rf $RPM_BUILD_ROOT
255
0154cba6
JB
256%post -p /sbin/ldconfig
257%postun -p /sbin/ldconfig
9eabec1b 258
259%files
260%defattr(644,root,root,755)
261%attr(755,root,root) %{_libdir}/libpt.so.*.*.*
91616ca7 262%if %{with plugins}
9eabec1b 263%dir %{_libdir}/%{name}-%{version}
f2f74e95
JR
264%dir %{_libdir}/%{name}-%{version}/device
265%dir %{_libdir}/%{name}-%{version}/device/sound
266%dir %{_libdir}/%{name}-%{version}/device/videoinput
91616ca7 267%endif
9eabec1b 268
9eabec1b 269%files devel
270%defattr(644,root,root,755)
0154cba6
JB
271%attr(755,root,root) %{_libdir}/libpt.so
272%{_includedir}/ptclib
273%{_includedir}/ptlib
0154cba6 274%{_includedir}/ptlib.h
f2f74e95
JR
275%{_includedir}/ptlib_config.h
276%{_includedir}/ptlib_wx.h
9eabec1b 277%dir %{_datadir}/%{name}
278%dir %{_datadir}/%{name}/make
9eabec1b 279%{_datadir}/%{name}/make/*.mak
93cbf8d4 280%{_pkgconfigdir}/ptlib.pc
9eabec1b 281
282%files static
283%defattr(644,root,root,755)
0154cba6 284%{_libdir}/libpt_s.a
9eabec1b 285
91616ca7 286%if %{with plugins}
9eabec1b 287%files sound-alsa
288%defattr(644,root,root,755)
f2f74e95 289%attr(755,root,root) %{_libdir}/%{name}-%{version}/device/sound/alsa_ptplugin.so
9eabec1b 290
34e60ae8
JB
291%if %{with esd}
292%files sound-esd
d912cb99 293%defattr(644,root,root,755)
f2f74e95 294%attr(755,root,root) %{_libdir}/%{name}-%{version}/device/sound/esd_ptplugin.so
34e60ae8 295%endif
d912cb99 296
9eabec1b 297%files sound-oss
298%defattr(644,root,root,755)
f2f74e95 299%attr(755,root,root) %{_libdir}/%{name}-%{version}/device/sound/oss_ptplugin.so
9eabec1b 300
34e60ae8
JB
301%files sound-pulse
302%defattr(644,root,root,755)
f2f74e95 303%attr(755,root,root) %{_libdir}/%{name}-%{version}/device/sound/pulse_ptplugin.so
34e60ae8 304
9eabec1b 305%files video-v4l2
306%defattr(644,root,root,755)
f2f74e95 307%attr(755,root,root) %{_libdir}/%{name}-%{version}/device/videoinput/v4l2_ptplugin.so
9eabec1b 308
34e60ae8 309%if %{with avc1394}
5fa46637
JK
310%files video-avc
311%defattr(644,root,root,755)
f2f74e95 312%attr(755,root,root) %{_libdir}/%{name}-%{version}/device/videoinput/avc_ptplugin.so
5fa46637 313%endif
91616ca7 314%endif
This page took 0.153367 seconds and 4 git commands to generate.