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