| 1 | Summary: Portable Tools Library |
|---|
| 2 | Name: ptlib |
|---|
| 3 | Version: 2.10.2 |
|---|
| 4 | Release: 1%{?_dist_release} |
|---|
| 5 | URL: http://www.opalvoip.org/ |
|---|
| 6 | Source0: ftp://ftp.gnome.org/pub/gnome/sources/ptlib/2.10/%{name}-%{version}.tar.xz |
|---|
| 7 | License: MPLv1.0 |
|---|
| 8 | Group: System Environment/Libraries |
|---|
| 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|---|
| 10 | |
|---|
| 11 | BuildRequires: expat openssl-devel pkgconfig |
|---|
| 12 | BuildRequires: alsa-lib-devel, libstdc++3-devel, libv4l-devel |
|---|
| 13 | BuildRequires: openldap-devel, expat-devel, SDL-devel, flex, bison |
|---|
| 14 | BuildRequires: libraw1394-devel, libdv-devel, libavc1394-devel |
|---|
| 15 | BuildRequires: expat-devel |
|---|
| 16 | Obsoletes: pwlib, pwlib-alsa, pwlib-avc, pwlib-dc, pwlib-oss, pwlib-v4l |
|---|
| 17 | |
|---|
| 18 | Vendor: Project Vine |
|---|
| 19 | Distribution: Vine Linux |
|---|
| 20 | |
|---|
| 21 | %description |
|---|
| 22 | PTLib (Portable Tools Library) is a moderately large class library that |
|---|
| 23 | has it's genesis many years ago as PWLib (portable Windows Library), a |
|---|
| 24 | method to product applications to run on both Microsoft Windows and Unix |
|---|
| 25 | systems. It has also been ported to other systems such as Mac OSX, VxWorks |
|---|
| 26 | and other embedded systems. |
|---|
| 27 | |
|---|
| 28 | It is supplied mainly to support the OPAL project, but that shouldn't stop |
|---|
| 29 | you from using it in whatever project you have in mind if you so desire. |
|---|
| 30 | |
|---|
| 31 | %package devel |
|---|
| 32 | Summary: Development package for ptlib |
|---|
| 33 | Group: Development/Libraries |
|---|
| 34 | Requires: ptlib = %{version}-%{release} |
|---|
| 35 | Requires: pkgconfig |
|---|
| 36 | Requires: cyrus-sasl-devel |
|---|
| 37 | Requires: openldap-devel |
|---|
| 38 | Requires: openssl-devel |
|---|
| 39 | Requires: expat-devel |
|---|
| 40 | Requires: SDL-devel |
|---|
| 41 | Obsoletes: pwlib-devel |
|---|
| 42 | |
|---|
| 43 | %description devel |
|---|
| 44 | The ptlib-devel package includes the libraries and header files for ptlib. |
|---|
| 45 | |
|---|
| 46 | %prep |
|---|
| 47 | %setup -q |
|---|
| 48 | |
|---|
| 49 | %build |
|---|
| 50 | export CFLAGS="$CFLAGS -DLDAP_DEPRECATED" |
|---|
| 51 | %configure --prefix=%{_prefix} --disable-static \ |
|---|
| 52 | --enable-plugins \ |
|---|
| 53 | --disable-oss \ |
|---|
| 54 | --enable-v4l2 \ |
|---|
| 55 | --enable-avc |
|---|
| 56 | make %{?_smp_mflags} |
|---|
| 57 | |
|---|
| 58 | %install |
|---|
| 59 | rm -rf $RPM_BUILD_ROOT |
|---|
| 60 | |
|---|
| 61 | make PREFIX=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} install |
|---|
| 62 | |
|---|
| 63 | perl -pi -e 's@PTLIBDIR.*=.*@PTLIBDIR = /usr/share/ptlib@' $RPM_BUILD_ROOT%{_datadir}/ptlib/make/ptbuildopts.mak |
|---|
| 64 | |
|---|
| 65 | # hack to fixup things for bug 197318 |
|---|
| 66 | find $RPM_BUILD_ROOT%{_libdir} -name '*.so*' -type f -exec chmod +x {} \; |
|---|
| 67 | |
|---|
| 68 | # Remove empty include file |
|---|
| 69 | rm -rf $RPM_BUILD_ROOT%{_includedir}/ptlib/devplugin.h |
|---|
| 70 | |
|---|
| 71 | # |
|---|
| 72 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a |
|---|
| 73 | |
|---|
| 74 | %clean |
|---|
| 75 | rm -rf $RPM_BUILD_ROOT |
|---|
| 76 | |
|---|
| 77 | %post -p /sbin/ldconfig |
|---|
| 78 | %postun -p /sbin/ldconfig |
|---|
| 79 | |
|---|
| 80 | %files |
|---|
| 81 | %defattr(-,root,root) |
|---|
| 82 | %doc History.txt ReadMe.txt mpl-1.0.htm |
|---|
| 83 | %attr(755,root,root) %{_libdir}/libpt*.so.* |
|---|
| 84 | %dir %{_libdir}/ptlib-%{version} |
|---|
| 85 | %dir %{_libdir}/ptlib-%{version}/devices |
|---|
| 86 | %dir %{_libdir}/ptlib-%{version}/devices/sound |
|---|
| 87 | %dir %{_libdir}/ptlib-%{version}/devices/videoinput |
|---|
| 88 | # List these explicitly so we don't get any surprises |
|---|
| 89 | %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/alsa_pwplugin.so |
|---|
| 90 | %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/v4l2_pwplugin.so |
|---|
| 91 | %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/avc_pwplugin.so |
|---|
| 92 | |
|---|
| 93 | %files devel |
|---|
| 94 | %defattr(-,root,root) |
|---|
| 95 | %{_libdir}/libpt*.so |
|---|
| 96 | %{_includedir}/* |
|---|
| 97 | %{_datadir}/ptlib |
|---|
| 98 | %{_libdir}/pkgconfig/ptlib.pc |
|---|
| 99 | %attr(755,root,root) %{_bindir}/* |
|---|
| 100 | |
|---|
| 101 | %changelog |
|---|
| 102 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.2-1 |
|---|
| 103 | - new upstream release |
|---|
| 104 | |
|---|
| 105 | * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.1-1 |
|---|
| 106 | - new upstream release |
|---|
| 107 | |
|---|
| 108 | * Mon Jan 10 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-2 |
|---|
| 109 | - rebuild with openssl-1.0.0c |
|---|
| 110 | |
|---|
| 111 | * Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-1 |
|---|
| 112 | - new upstream release |
|---|
| 113 | - add Requires: cyrus-sasl-devel, openldap-devel, openssl-devel, expat-devel, SDL-devel (devel package) |
|---|
| 114 | |
|---|
| 115 | * Sun Mar 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.6-1 |
|---|
| 116 | - new upstream release |
|---|
| 117 | - add BuildRequires: expat-devel |
|---|
| 118 | - remove configure option (--enable-opal) |
|---|
| 119 | |
|---|
| 120 | * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.5-1 |
|---|
| 121 | - new upstream release |
|---|
| 122 | - add BuildRequires: libavc1394-devel |
|---|
| 123 | - add configure option (--enable-avc) |
|---|
| 124 | |
|---|
| 125 | * Wed Jun 24 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.6.2-3 |
|---|
| 126 | - rebuilt on ppc w/o libdc1394-devel |
|---|
| 127 | |
|---|
| 128 | * Sun Jun 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-2 |
|---|
| 129 | - remove dc_pwplugin |
|---|
| 130 | - remove BR: libdc1394-devel |
|---|
| 131 | |
|---|
| 132 | * Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-1 |
|---|
| 133 | - new upstream release |
|---|
| 134 | |
|---|
| 135 | * Sat Apr 4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.4-1 |
|---|
| 136 | - new upstream release |
|---|
| 137 | |
|---|
| 138 | * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-1 |
|---|
| 139 | - new upstream release |
|---|
| 140 | |
|---|
| 141 | * Mon Sep 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-1 |
|---|
| 142 | - initial build for Vine Linux |
|---|
| 143 | - Obsoletes: pwlib, pwlib-{alsa,v4l,dc,avc} |
|---|
| 144 | |
|---|
| 145 | * Wed Sep 10 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-2 |
|---|
| 146 | - Build fixes from package review |
|---|
| 147 | |
|---|
| 148 | * Sun Jun 8 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-1 |
|---|
| 149 | - Initial version of ptlib |
|---|