2 # IPv6 support disabled ('NULL' undeclared)
5 %bcond_without http # Disable http support
6 %bcond_without ipv6 # Disable ipv6 support
7 %bcond_without odbc # Disable ODBC support
8 %bcond_without plugins # Disable plugins support
9 %bcond_without resolver # Disable resolver support
10 %bcond_without openssl # Disable openssl support
11 %bcond_without video # Disable video support
13 Summary: Portable Tools Library
14 Summary(pl.UTF-8): Przenośna biblioteka narzędziowa
18 URL: http://www.opalvoip.org/
19 Source0: http://ftp.gnome.org/pub/GNOME/sources/ptlib/2.6/%{name}-%{version}.tar.bz2
20 # Source0-md5: db7fd581b66998cd76d96f8b7c3f22a1
23 %{?with_video:BuildRequires: SDL-devel}
25 BuildRequires: alsa-lib-devel
26 BuildRequires: esound-devel
29 BuildRequires: expat-devel
31 #BuildRequires: libavc1394-devel
32 #BuildRequires: libdc1394-devel < 2.0.0
33 BuildRequires: libstdc++-devel
34 %{?with_openssl:BuildRequires: openssl-devel}
35 BuildRequires: pkgconfig
36 %{?with_odbc:BuildRequires: unixODBC-devel}
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 PTLib (Portable Tools Library) is a moderately large class library
41 that has it's genesis many years ago as PWLib (portable Windows
42 Library), a method to product applications to run on both Microsoft
43 Windows and Unix systems. It has also been ported to other systems
44 such as Mac OSX, VxWorks and other embedded systems.
46 It is supplied mainly to support the OPAL project, but that shouldn't
47 stop you from using it in whatever project you have in mind if you so
50 %description -l pl.UTF-8
51 PTLib (przenośna biblioteka narzędziowa) jest względnie dużą
52 biblioteką, która wywodzi się z PWLib (przenośna biblioteka Windows)
53 służącej do tworzenia aplikacji działających zarówno w systemach
54 Microsoft Windows jak i Unix. Została także przeniesiona na inne
55 systemy takie jak Mac OSX, VxWorks i inne wbudowane.
57 Zestaw ten powstał by wspierać projekt OPAL, to nie powinno jednak być
58 przeszkodą by móc go wykorzystać do innych celów jeśli tylko ktoś ma
62 Summary: PTLib (Portable Tools Library) development files
63 Summary(pl.UTF-8): PTLib pliki deweloperskie
64 Group: Development/Libraries
65 Requires: %{name} = %{version}-%{release}
69 Header files and libraries for developing applications that use ptlib.
71 %description devel -l pl.UTF-8
72 Pliki nagłówkowe i biblioteki dla aplikacji korzystających z ptlib.
75 Summary: PTLib (Portable Tools Library) static libraries
76 Summary(pl.UTF-8): Biblioteki statyczne PTLib
77 Group: Development/Libraries
78 Requires: %{name}-devel = %{version}-%{release}
82 PTLib (Portable Tools Library) static libraries.
84 %description static -l pl.UTF-8
85 Biblioteki statyczne PTLib.
88 Summary: Alsa audio plugin
89 Summary(pl.UTF-8): Alsa wtyczka audio
91 Requires: %{name} = %{version}-%{release}
92 Provides: %{name}-sound
94 %description sound-alsa
97 %description sound-alsa -l pl.UTF-8
101 Summary: Esound audio plugin
102 Summary(pl.UTF-8): Esound wtyczka audio
104 Requires: %{name} = %{version}-%{release}
105 Provides: %{name}-sound
107 %description sound-esd
110 %description sound-esd -l pl.UTF-8
111 Esound wtyczka audio.
114 Summary: OSS audio plugin
115 Summary(pl.UTF-8): OSS wtyczka audio
117 Requires: %{name} = %{version}-%{release}
118 Provides: %{name}-sound
120 %description sound-oss
123 %description sound-oss -l pl.UTF-8
127 Summary: v4l video input plugin
128 Summary(pl.UTF-8): v4l wejściowa wtyczka wideo
130 Requires: %{name} = %{version}-%{release}
132 %description video-v4l
133 v4l video input plugin.
135 %description video-v4l -l pl.UTF-8
136 v4l wejściowa wtyczka wideo.
139 Summary: v4l2 video input plugin
140 Summary(pl.UTF-8): v4l2 wejściowa wtyczka wideo
142 Requires: %{name} = %{version}-%{release}
144 %description video-v4l2
145 v4l2 video input plugin.
147 %description video-v4l2 -l pl.UTF-8
148 v4l2 wejściowa wtyczka wideo.
151 #Summary: AVC 1394 video input plugin
153 #Requires: %{name} = %{version}-%{release}
155 #%description video-avc
156 #AVC 1394 video input plugin.
162 # note: --enable-opal influences most of the remaining enable/disable defaults
164 --prefix=%{_prefix} \
187 --disable-httpforms \
190 --%{?with_ipv6:en}%{!?with_ipv6:dis}able-ipv6 \
191 --%{?with_odbc:en}%{!?with_odbc:dis}able-odbc \
192 --%{?with_resolver:en}%{!?with_resolver:dis}able-resolver \
193 --%{?with_openssl:en}%{!?with_openssl:dis}able-openssl \
194 --%{?with_video:en}%{!?with_video:dis}able-video \
201 %{__make} %{?debug:debugshared}%{!?debug:optshared} \
202 PTLIBMAKEDIR="$dir/make" \
204 OPTCCFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}"\
209 rm -rf $RPM_BUILD_ROOT
211 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/%{name}}
215 DESTDIR=$RPM_BUILD_ROOT
217 cp -d %{_libdir}/lib*.a $RPM_BUILD_ROOT%{_libdir}
218 cp version.h $RPM_BUILD_ROOT%{_includedir}/%{name}
220 sed -i -e 's#PTLIBDIR=.*#PTLIBDIR=%{_datadir}/ptlib#g' $RPM_BUILD_ROOT%{_datadir}/ptlib/make/plugins.mak
223 rm -rf $RPM_BUILD_ROOT
225 %post -p /sbin/ldconfig
226 %postun -p /sbin/ldconfig
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_libdir}/libpt.so.*.*.*
232 %dir %{_libdir}/%{name}-%{version}
233 %dir %{_libdir}/%{name}-%{version}/devices
234 %dir %{_libdir}/%{name}-%{version}/devices/sound
235 %dir %{_libdir}/%{name}-%{version}/devices/videoinput
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_libdir}/libpt*.so
242 %dir %{_datadir}/%{name}
243 %dir %{_datadir}/%{name}/make
244 %attr(755,root,root) %{_bindir}/*
245 %attr(755,root,root) %{_datadir}/%{name}/make/%{name}-config
246 %{_includedir}/ptclib
249 %{_datadir}/%{name}/make/*.mak
250 %{_pkgconfigdir}/%{name}.pc
253 %defattr(644,root,root,755)
258 %defattr(644,root,root,755)
259 %attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/sound/alsa_pwplugin.so
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/sound/esd_pwplugin.so
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/sound/oss_pwplugin.so
270 %defattr(644,root,root,755)
271 %attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/videoinput/v4l_pwplugin.so
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/videoinput/v4l2_pwplugin.so
278 #%defattr(644,root,root,755)
279 #%attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/videoinput/avc_pwplugin.so