]> git.pld-linux.org Git - packages/ptlib.git/blame - ptlib.spec
- rel 6; pwlib symlink
[packages/ptlib.git] / ptlib.spec
CommitLineData
dfe7719a 1# TODO:
2da6e90a 2# IPv6 support disabled ('NULL' undeclared)
9eabec1b 3#
4Summary: Portable Tools Library
8a20fb6a 5Summary(pl.UTF-8): Przenośna biblioteka narzędziowa
9eabec1b 6Name: ptlib
7ccf87d3 7Version: 2.6.5
fa608d11 8Release: 6
9eabec1b 9URL: http://www.opalvoip.org/
c9fe5d27 10Source0: http://ftp.gnome.org/pub/GNOME/sources/ptlib/2.6/%{name}-%{version}.tar.bz2
7ccf87d3 11# Source0-md5: db7fd581b66998cd76d96f8b7c3f22a1
9eabec1b 12License: MPLv1.0
13Group: Libraries
2da6e90a 14BuildRequires: SDL-devel
dfe7719a 15BuildRequires: alsa-lib-devel
9eabec1b 16BuildRequires: bison
2da6e90a
SS
17BuildRequires: esound-devel
18BuildRequires: expat-devel
9eabec1b 19BuildRequires: flex
20#BuildRequires: libavc1394-devel
21#BuildRequires: libdc1394-devel < 2.0.0
bb06b19d 22BuildRequires: libstdc++-devel
2da6e90a 23BuildRequires: openldap-devel
bb06b19d 24BuildRequires: openssl-devel
2da6e90a
SS
25BuildRequires: pkgconfig
26BuildRequires: unixODBC-devel
bb06b19d 27Provides: pwlib = %{version}-%{release}
9eabec1b 28Obsoletes: pwlib
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32PTLib (Portable Tools Library) is a moderately large class library
33that has it's genesis many years ago as PWLib (portable Windows
34Library), a method to product applications to run on both Microsoft
35Windows and Unix systems. It has also been ported to other systems
36such as Mac OSX, VxWorks and other embedded systems.
37
38It is supplied mainly to support the OPAL project, but that shouldn't
39stop you from using it in whatever project you have in mind if you so
40desire.
41
8a20fb6a 42%description -l pl.UTF-8
43PTLib (przenośna biblioteka narzędziowa) jest względnie dużą
44biblioteką, która wywodzi się z PWLib (przenośna biblioteka Windows)
45służącej do tworzenia aplikacji działających zarówno w systemach
46Microsoft Windows jak i Unix. Została także przeniesiona na inne
47systemy takie jak Mac OSX, VxWorks i inne wbudowane.
48
49Zestaw ten powstał by wspierać projekt OPAL, to nie powinno jednak być
50przeszkodą by móc go wykorzystać do innych celów jeśli tylko ktoś ma
51na to ochotę.
52
9eabec1b 53%package devel
54Summary: PTLib (Portable Tools Library) development files
8a20fb6a 55Summary(pl.UTF-8): PTLib pliki deweloperskie
9eabec1b 56Group: Development/Libraries
57Requires: %{name} = %{version}-%{release}
bb06b19d
AM
58Provides: pwlib-devel = %{version}-%{release}
59Obsoletes: pwlib-devel
60
9eabec1b 61
62%description devel
63Header files and libraries for developing applications that use ptlib.
64
8a20fb6a 65%description devel -l pl.UTF-8
66Pliki nagłówkowe i biblioteki dla aplikacji korzystających z ptlib.
9eabec1b 67
68%package static
69Summary: PTLib (Portable Tools Library) static libraries
8a20fb6a 70Summary(pl.UTF-8): Biblioteki statyczne PTLib
9eabec1b 71Group: Development/Libraries
72Requires: %{name}-devel = %{version}-%{release}
bb06b19d
AM
73Provides: pwlib-static = %{version}-%{release}
74Obsoletes: pwlib-static
75
9eabec1b 76
77%description static
78PTLib (Portable Tools Library) static libraries.
79
8a20fb6a 80%description static -l pl.UTF-8
81Biblioteki statyczne PTLib.
82
9eabec1b 83%package sound-alsa
84Summary: Alsa audio plugin
8a20fb6a 85Summary(pl.UTF-8): Alsa wtyczka audio
9eabec1b 86Group: Libraries
87Requires: %{name} = %{version}-%{release}
88Provides: %{name}-sound
3d7a8420 89Obsoletes: pwlib-sound-alsa
9eabec1b 90
91%description sound-alsa
92Alsa audio plugin.
93
8a20fb6a 94%description sound-alsa -l pl.UTF-8
95Alsa wtyczka audio.
96
2da6e90a
SS
97%package sound-esd
98Summary: Esound audio plugin
8a20fb6a 99Summary(pl.UTF-8): Esound wtyczka audio
2da6e90a
SS
100Group: Libraries
101Requires: %{name} = %{version}-%{release}
102Provides: %{name}-sound
103
104%description sound-esd
105Esound audio plugin.
106
8a20fb6a 107%description sound-esd -l pl.UTF-8
108Esound wtyczka audio.
109
9eabec1b 110%package sound-oss
111Summary: OSS audio plugin
8a20fb6a 112Summary(pl.UTF-8): OSS wtyczka audio
9eabec1b 113Group: Libraries
114Requires: %{name} = %{version}-%{release}
115Provides: %{name}-sound
3d7a8420 116Obsoletes: pwlib-sound-oss
9eabec1b 117
118%description sound-oss
119OSS audio plugin.
120
8a20fb6a 121%description sound-oss -l pl.UTF-8
122OSS wtyczka audio.
123
9eabec1b 124%package video-v4l
125Summary: v4l video input plugin
8a20fb6a 126Summary(pl.UTF-8): v4l wejściowa wtyczka wideo
9eabec1b 127Group: Libraries
128Requires: %{name} = %{version}-%{release}
129
130%description video-v4l
131v4l video input plugin.
132
8a20fb6a 133%description video-v4l -l pl.UTF-8
134v4l wejściowa wtyczka wideo.
135
9eabec1b 136%package video-v4l2
137Summary: v4l2 video input plugin
8a20fb6a 138Summary(pl.UTF-8): v4l2 wejściowa wtyczka wideo
9eabec1b 139Group: Libraries
140Requires: %{name} = %{version}-%{release}
3d7a8420 141Obsoletes: pwlib-video-v4l2
9eabec1b 142
143%description video-v4l2
144v4l2 video input plugin.
145
8a20fb6a 146%description video-v4l2 -l pl.UTF-8
147v4l2 wejściowa wtyczka wideo.
148
9eabec1b 149#%package video-avc
150#Summary: AVC 1394 video input plugin
151#Group: Libraries
152#Requires: %{name} = %{version}-%{release}
153#
154#%description video-avc
155#AVC 1394 video input plugin.
156
157%prep
158%setup -q
159
160%build
161%configure \
162 --prefix=%{_prefix} \
2da6e90a 163 --enable-alsa \
9eabec1b 164 --enable-static \
165 --enable-opal \
166 --enable-plugins \
2da6e90a 167 --enable-esd \
9eabec1b 168 --enable-oss \
169 --enable-v4l2 \
170 --enable-v4l \
fecd4bf2
AM
171 --enable-http \
172 --enable-httpforms \
173 --enable-httpsvc \
9eabec1b 174 --disable-avc \
175 --disable-dc \
176 --enable-debug
177dir=$(pwd)
178%{__make} %{?debug:debugshared}%{!?debug:optshared} \
179 PTLIBMAKEDIR="$dir/make" \
180 PTLIBDIR="$dir" \
181 OPTCCFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}"\
182 CXX="%{__cxx}"
183
184
185%install
186rm -rf $RPM_BUILD_ROOT
187
188install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/%{name}}
189
190dir=$(pwd)
191%{__make} install \
192 DESTDIR=$RPM_BUILD_ROOT
193
194cp -d %{_libdir}/lib*.a $RPM_BUILD_ROOT%{_libdir}
195cp version.h $RPM_BUILD_ROOT%{_includedir}/%{name}
196
fa608d11
AM
197ln -s ptlib $RPM_BUILD_ROOT%{_datadir}/pwlib
198
90a4e09b
AM
199sed -i -e 's#PTLIBDIR=.*#PTLIBDIR=%{_datadir}/ptlib#g' $RPM_BUILD_ROOT%{_datadir}/ptlib/make/plugins.mak
200
9eabec1b 201%clean
202rm -rf $RPM_BUILD_ROOT
203
204%post -p /sbin/ldconfig
205%postun -p /sbin/ldconfig
206
207%files
208%defattr(644,root,root,755)
209%attr(755,root,root) %{_libdir}/libpt.so.*.*.*
210%dir %{_libdir}/%{name}-%{version}
211%dir %{_libdir}/%{name}-%{version}/devices
212%dir %{_libdir}/%{name}-%{version}/devices/sound
213%dir %{_libdir}/%{name}-%{version}/devices/videoinput
214
215
216%files devel
217%defattr(644,root,root,755)
218%attr(755,root,root) %{_libdir}/libpt*.so
fa608d11 219%{_datadir}/pwlib
9eabec1b 220%dir %{_datadir}/%{name}
221%dir %{_datadir}/%{name}/make
222%attr(755,root,root) %{_bindir}/*
ac387258 223%attr(755,root,root) %{_datadir}/%{name}/make/%{name}-config
9eabec1b 224%{_includedir}/ptclib
225%{_includedir}/ptlib
226%{_includedir}/*.h
227%{_datadir}/%{name}/make/*.mak
228%{_pkgconfigdir}/%{name}.pc
229
230%files static
231%defattr(644,root,root,755)
232%{_libdir}/lib*.a
233
234%files sound-alsa
235%defattr(644,root,root,755)
236%attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/sound/alsa_pwplugin.so
237
2da6e90a
SS
238%files sound-esd
239%defattr(644,root,root,755)
240%attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/sound/esd_pwplugin.so
241
9eabec1b 242%files sound-oss
243%defattr(644,root,root,755)
244%attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/sound/oss_pwplugin.so
245
246%files video-v4l
247%defattr(644,root,root,755)
248%attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/videoinput/v4l_pwplugin.so
249
250%files video-v4l2
251%defattr(644,root,root,755)
252%attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/videoinput/v4l2_pwplugin.so
253
254#%files video-avc
255#%defattr(644,root,root,755)
256#%attr(755,root,root) %{_libdir}/%{name}-%{version}/devices/videoinput/avc_pwplugin.so
This page took 0.06032 seconds and 4 git commands to generate.