Search
j0ke.net Open Build Service
>
Projects
>
server:telephony
>
pwlib
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 7
[-]
[+]
Added
pwlib.spec
@@ -0,0 +1,478 @@ +# +# spec file for package pwlib (Version 1.10.10) +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: pwlib +Version: 1.10.10 +Release: 56 +BuildRequires: SDL-devel bison esound-devel flex gcc-c++ libavc1394-devel libdc1394_control12-devel libdv-devel libstdc++-devel openldap2-devel +Url: http://www.openh323.org/ +License: MOZILLA PUBLIC LICENSE (MPL/NPL) +Group: System/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-build +AutoReqProv: on +Provides: pwlib-plugins-alsa pwlib-plugins-oss pwlib-plugins-v4l +Obsoletes: pwlib-plugins-alsa pwlib-plugins-oss pwlib-plugins-v4l +Summary: Portable Windows Library from Equivalence Pty. Ltd. +# https://sourceforge.net/projects/openh323 +Source: %{name}-%{version}.tar.bz2 +# http://sourceforge.net/tracker/index.php?func=detail&aid=1532388&group_id=80674&atid=560614 +Patch: %{name}-%{version}.diff +#Patch1: %{name}-%{version}-aliasing.diff +#Patch2: %{name}-%{version}-gcc42-atomic.diff +Patch3: %{name}-%{version}-make.diff +#Patch4: pwlib.linux-time.patch +Patch4: %{name}-%{version}-pstring-fix.diff +Patch5: %{name}-%{version}-ldap.patch + +%description +PWLib is a moderately large class library that was created many years +ago as a method to produce applications that run on both Microsoft +Windows and the X Window System. It was supposed to have a Macintosh +port as well but this never happened. + +It is used for the OpenH323 project, see www.openh323.org for details. + + + +Authors: +-------- + Equivalence Pty. Ltd. <support@equival.com.au> + +%package devel +Requires: %{name} = %{version} SDL-devel libexpat-devel openldap2-devel openssl-devel +Summary: pwlib package for developers (includes headers and scripts) +Group: Development/Libraries/C and C++ + +%description devel +This package includes header files and scripts needed for developers +using the PWLIB library. + + + +Authors: +-------- + Equivalence Pty. Ltd. <support@equival.com.au> + +%package plugins-avc +Provides: pwlib-video-plugin +Summary: AVC plugin for pwlib +Group: System/Libraries + +%description plugins-avc +This plugin enables AVC (firewire control for digital video cameras) +support in pwlib + + + +Authors: +-------- + Equivalence Pty. Ltd. <support@equival.com.au> + +%package plugins-dc +Provides: pwlib-video-plugin +Summary: DC plugin for pwlib +Group: System/Libraries + +%description plugins-dc +This plugin enables DC control (via firewire for digital video cameras) +for pwlib + + + +Authors: +-------- + Equivalence Pty. Ltd. <support@equival.com.au> + +%package plugins-v4l2 +Provides: pwlib-video-plugin +Summary: V4L2 support for pwlib +Group: System/Libraries + +%description plugins-v4l2 +This plugin enables 'video for linux' (version 2) support (e.g. for USB +cameras) for pwlib. + + + +Authors: +-------- + Equivalence Pty. Ltd. <support@equival.com.au> + +%prep +%setup -q +%patch +#%patch1 -p1 +#%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 + +%build +#autoreconf --force --install +autoconf --force +aclocal +cd plugins +autoconf --force +aclocal +cd .. +#automake --force-missing +%{?suse_update_config:%{suse_update_config -f}} +PWINSTDIR=/usr/share/pwlib X11LIBDIR=/usr/X11R6/%_lib ./configure \ + --prefix=/usr \ + --libdir=%{_libdir} \ + --mandir=%{_mandir} \ + --enable-plugins\ + --enable-v4l2\ + --enable-avc\ + --enable-dc\ + --enable-vidfile\ + --enable-alsa +# --enable-sockagg\ +# --enable-exceptions +#make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fstack-protector" %{?jobs:-j %jobs} +make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fstack-protector" %{?jobs:-j %jobs} + +%install +make install DESTDIR=$RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc mpl-1.0.htm History.txt +%dir %{_libdir}/pwlib +%dir %{_libdir}/pwlib/devices +%dir %{_libdir}/pwlib/devices/sound +%dir %{_libdir}/pwlib/devices/videoinput +%{_libdir}/libpt*.1* +%{_libdir}/pwlib/devices/sound/alsa_pwplugin.so +%{_libdir}/pwlib/devices/sound/oss_pwplugin.so +%{_libdir}/pwlib/devices/videoinput/v4l_pwplugin.so + +%files devel +%defattr(-,root,root) +%doc ReadMe.txt ReadMe_QOS.txt +%dir /usr/share/pwlib +/usr/share/pwlib/* +%attr (0644, root, root) /usr/include/ptbuildopts.h +%attr (0644, root, root) /usr/include/ptlib.h +%dir /usr/include/ptlib +%dir /usr/include/ptlib/unix +%dir /usr/include/ptlib/unix/ptlib +%attr (0644, root, root) /usr/include/ptlib/*.h +%attr (0644, root, root) /usr/include/ptlib/*.inl +%attr (0644, root, root) /usr/include/ptlib/unix/ptlib/*.h +%attr (0644, root, root) /usr/include/ptlib/unix/ptlib/*.inl +%dir /usr/include/ptclib +%attr (0644, root, root) /usr/include/ptclib/*.h +#%{_bindir}/asnparser +%{_bindir}/ptlib-config +%{_libdir}/libpt.so + +%files plugins-avc +%defattr(-,root,root) +%{_libdir}/pwlib/devices/videoinput/avc_pwplugin.so + +%files plugins-dc +%defattr(-,root,root) +%{_libdir}/pwlib/devices/videoinput/dc_pwplugin.so + +%files plugins-v4l2 +%defattr(-,root,root) +%dir %{_libdir}/pwlib/devices/videoinput +%{_libdir}/pwlib/devices/videoinput/v4l2_pwplugin.so +