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