]>
Commit | Line | Data |
---|---|---|
dfe7719a | 1 | # TODO: |
2da6e90a | 2 | # IPv6 support disabled ('NULL' undeclared) |
9eabec1b | 3 | # |
4 | Summary: Portable Tools Library | |
8a20fb6a | 5 | Summary(pl.UTF-8): Przenośna biblioteka narzędziowa |
9eabec1b | 6 | Name: ptlib |
7ccf87d3 | 7 | Version: 2.6.5 |
fa608d11 | 8 | Release: 6 |
9eabec1b | 9 | URL: http://www.opalvoip.org/ |
c9fe5d27 | 10 | Source0: http://ftp.gnome.org/pub/GNOME/sources/ptlib/2.6/%{name}-%{version}.tar.bz2 |
7ccf87d3 | 11 | # Source0-md5: db7fd581b66998cd76d96f8b7c3f22a1 |
9eabec1b | 12 | License: MPLv1.0 |
13 | Group: Libraries | |
2da6e90a | 14 | BuildRequires: SDL-devel |
dfe7719a | 15 | BuildRequires: alsa-lib-devel |
9eabec1b | 16 | BuildRequires: bison |
2da6e90a SS |
17 | BuildRequires: esound-devel |
18 | BuildRequires: expat-devel | |
9eabec1b | 19 | BuildRequires: flex |
20 | #BuildRequires: libavc1394-devel | |
21 | #BuildRequires: libdc1394-devel < 2.0.0 | |
bb06b19d | 22 | BuildRequires: libstdc++-devel |
2da6e90a | 23 | BuildRequires: openldap-devel |
bb06b19d | 24 | BuildRequires: openssl-devel |
2da6e90a SS |
25 | BuildRequires: pkgconfig |
26 | BuildRequires: unixODBC-devel | |
bb06b19d | 27 | Provides: pwlib = %{version}-%{release} |
9eabec1b | 28 | Obsoletes: pwlib |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | PTLib (Portable Tools Library) is a moderately large class library | |
33 | that has it's genesis many years ago as PWLib (portable Windows | |
34 | Library), a method to product applications to run on both Microsoft | |
35 | Windows and Unix systems. It has also been ported to other systems | |
36 | such as Mac OSX, VxWorks and other embedded systems. | |
37 | ||
38 | It is supplied mainly to support the OPAL project, but that shouldn't | |
39 | stop you from using it in whatever project you have in mind if you so | |
40 | desire. | |
41 | ||
8a20fb6a | 42 | %description -l pl.UTF-8 |
43 | PTLib (przenośna biblioteka narzędziowa) jest względnie dużą | |
44 | biblioteką, która wywodzi się z PWLib (przenośna biblioteka Windows) | |
45 | służącej do tworzenia aplikacji działających zarówno w systemach | |
46 | Microsoft Windows jak i Unix. Została także przeniesiona na inne | |
47 | systemy takie jak Mac OSX, VxWorks i inne wbudowane. | |
48 | ||
49 | Zestaw ten powstał by wspierać projekt OPAL, to nie powinno jednak być | |
50 | przeszkodą by móc go wykorzystać do innych celów jeśli tylko ktoś ma | |
51 | na to ochotę. | |
52 | ||
9eabec1b | 53 | %package devel |
54 | Summary: PTLib (Portable Tools Library) development files | |
8a20fb6a | 55 | Summary(pl.UTF-8): PTLib pliki deweloperskie |
9eabec1b | 56 | Group: Development/Libraries |
57 | Requires: %{name} = %{version}-%{release} | |
bb06b19d AM |
58 | Provides: pwlib-devel = %{version}-%{release} |
59 | Obsoletes: pwlib-devel | |
60 | ||
9eabec1b | 61 | |
62 | %description devel | |
63 | Header files and libraries for developing applications that use ptlib. | |
64 | ||
8a20fb6a | 65 | %description devel -l pl.UTF-8 |
66 | Pliki nagłówkowe i biblioteki dla aplikacji korzystających z ptlib. | |
9eabec1b | 67 | |
68 | %package static | |
69 | Summary: PTLib (Portable Tools Library) static libraries | |
8a20fb6a | 70 | Summary(pl.UTF-8): Biblioteki statyczne PTLib |
9eabec1b | 71 | Group: Development/Libraries |
72 | Requires: %{name}-devel = %{version}-%{release} | |
bb06b19d AM |
73 | Provides: pwlib-static = %{version}-%{release} |
74 | Obsoletes: pwlib-static | |
75 | ||
9eabec1b | 76 | |
77 | %description static | |
78 | PTLib (Portable Tools Library) static libraries. | |
79 | ||
8a20fb6a | 80 | %description static -l pl.UTF-8 |
81 | Biblioteki statyczne PTLib. | |
82 | ||
9eabec1b | 83 | %package sound-alsa |
84 | Summary: Alsa audio plugin | |
8a20fb6a | 85 | Summary(pl.UTF-8): Alsa wtyczka audio |
9eabec1b | 86 | Group: Libraries |
87 | Requires: %{name} = %{version}-%{release} | |
88 | Provides: %{name}-sound | |
3d7a8420 | 89 | Obsoletes: pwlib-sound-alsa |
9eabec1b | 90 | |
91 | %description sound-alsa | |
92 | Alsa audio plugin. | |
93 | ||
8a20fb6a | 94 | %description sound-alsa -l pl.UTF-8 |
95 | Alsa wtyczka audio. | |
96 | ||
2da6e90a SS |
97 | %package sound-esd |
98 | Summary: Esound audio plugin | |
8a20fb6a | 99 | Summary(pl.UTF-8): Esound wtyczka audio |
2da6e90a SS |
100 | Group: Libraries |
101 | Requires: %{name} = %{version}-%{release} | |
102 | Provides: %{name}-sound | |
103 | ||
104 | %description sound-esd | |
105 | Esound audio plugin. | |
106 | ||
8a20fb6a | 107 | %description sound-esd -l pl.UTF-8 |
108 | Esound wtyczka audio. | |
109 | ||
9eabec1b | 110 | %package sound-oss |
111 | Summary: OSS audio plugin | |
8a20fb6a | 112 | Summary(pl.UTF-8): OSS wtyczka audio |
9eabec1b | 113 | Group: Libraries |
114 | Requires: %{name} = %{version}-%{release} | |
115 | Provides: %{name}-sound | |
3d7a8420 | 116 | Obsoletes: pwlib-sound-oss |
9eabec1b | 117 | |
118 | %description sound-oss | |
119 | OSS audio plugin. | |
120 | ||
8a20fb6a | 121 | %description sound-oss -l pl.UTF-8 |
122 | OSS wtyczka audio. | |
123 | ||
9eabec1b | 124 | %package video-v4l |
125 | Summary: v4l video input plugin | |
8a20fb6a | 126 | Summary(pl.UTF-8): v4l wejściowa wtyczka wideo |
9eabec1b | 127 | Group: Libraries |
128 | Requires: %{name} = %{version}-%{release} | |
129 | ||
130 | %description video-v4l | |
131 | v4l video input plugin. | |
132 | ||
8a20fb6a | 133 | %description video-v4l -l pl.UTF-8 |
134 | v4l wejściowa wtyczka wideo. | |
135 | ||
9eabec1b | 136 | %package video-v4l2 |
137 | Summary: v4l2 video input plugin | |
8a20fb6a | 138 | Summary(pl.UTF-8): v4l2 wejściowa wtyczka wideo |
9eabec1b | 139 | Group: Libraries |
140 | Requires: %{name} = %{version}-%{release} | |
3d7a8420 | 141 | Obsoletes: pwlib-video-v4l2 |
9eabec1b | 142 | |
143 | %description video-v4l2 | |
144 | v4l2 video input plugin. | |
145 | ||
8a20fb6a | 146 | %description video-v4l2 -l pl.UTF-8 |
147 | v4l2 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 | |
177 | dir=$(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 | |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | ||
188 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/%{name}} | |
189 | ||
190 | dir=$(pwd) | |
191 | %{__make} install \ | |
192 | DESTDIR=$RPM_BUILD_ROOT | |
193 | ||
194 | cp -d %{_libdir}/lib*.a $RPM_BUILD_ROOT%{_libdir} | |
195 | cp version.h $RPM_BUILD_ROOT%{_includedir}/%{name} | |
196 | ||
fa608d11 AM |
197 | ln -s ptlib $RPM_BUILD_ROOT%{_datadir}/pwlib |
198 | ||
90a4e09b AM |
199 | sed -i -e 's#PTLIBDIR=.*#PTLIBDIR=%{_datadir}/ptlib#g' $RPM_BUILD_ROOT%{_datadir}/ptlib/make/plugins.mak |
200 | ||
9eabec1b | 201 | %clean |
202 | rm -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 |