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