[521] | 1 | Summary: Portable Tools Library |
---|
| 2 | Name: ptlib |
---|
[12387] | 3 | Version: 2.10.11 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
| 5 | Vendor: Project Vine |
---|
| 6 | Distribution: Vine Linux |
---|
[9287] | 7 | |
---|
[521] | 8 | License: MPLv1.0 |
---|
| 9 | Group: System Environment/Libraries |
---|
[9287] | 10 | URL: http://www.opalvoip.org/ |
---|
[521] | 11 | |
---|
[12387] | 12 | %global shortver %(echo %{version} | sed -e 's/\.[0-9]*$//') |
---|
| 13 | Source0: https://download.gnome.org/sources/ptlib/%{shortver}/%{name}-%{version}.tar.xz |
---|
| 14 | Patch1: ptlib-2.10.10-mga-bison-parameter.patch |
---|
| 15 | Patch2: ptlib-gcc5.patch |
---|
| 16 | Patch3: ptlib-gcc8.patch |
---|
| 17 | Patch4: ptlib-2.10.11-signed_int_overflow.patch |
---|
| 18 | Patch5: ptlib-2.10.11-openssl11.patch |
---|
[6971] | 19 | |
---|
[9287] | 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[7294] | 21 | BuildRequires: openssl-devel |
---|
| 22 | BuildRequires: alsa-lib-devel |
---|
| 23 | BuildRequires: openldap-devel |
---|
[631] | 24 | BuildRequires: expat-devel |
---|
[7294] | 25 | BuildRequires: SDL-devel |
---|
| 26 | BuildRequires: pulseaudio-libs-devel |
---|
| 27 | BuildRequires: flex |
---|
| 28 | BuildRequires: bison |
---|
[9287] | 29 | BuildRequires: lua-devel |
---|
[521] | 30 | Obsoletes: pwlib, pwlib-alsa, pwlib-avc, pwlib-dc, pwlib-oss, pwlib-v4l |
---|
| 31 | |
---|
| 32 | %description |
---|
| 33 | PTLib (Portable Tools Library) is a moderately large class library that |
---|
| 34 | has it's genesis many years ago as PWLib (portable Windows Library), a |
---|
| 35 | method to product applications to run on both Microsoft Windows and Unix |
---|
| 36 | systems. It has also been ported to other systems such as Mac OSX, VxWorks |
---|
| 37 | and other embedded systems. |
---|
| 38 | |
---|
| 39 | It is supplied mainly to support the OPAL project, but that shouldn't stop |
---|
| 40 | you from using it in whatever project you have in mind if you so desire. |
---|
| 41 | |
---|
| 42 | %package devel |
---|
| 43 | Summary: Development package for ptlib |
---|
| 44 | Group: Development/Libraries |
---|
| 45 | Requires: ptlib = %{version}-%{release} |
---|
| 46 | Requires: pkgconfig |
---|
[1231] | 47 | Requires: cyrus-sasl-devel |
---|
| 48 | Requires: openldap-devel |
---|
| 49 | Requires: openssl-devel |
---|
| 50 | Requires: expat-devel |
---|
[9287] | 51 | Requires: lua-devel |
---|
[1231] | 52 | Requires: SDL-devel |
---|
[521] | 53 | Obsoletes: pwlib-devel |
---|
| 54 | |
---|
| 55 | %description devel |
---|
| 56 | The ptlib-devel package includes the libraries and header files for ptlib. |
---|
| 57 | |
---|
[12387] | 58 | |
---|
[521] | 59 | %prep |
---|
| 60 | %setup -q |
---|
[12387] | 61 | %patch1 -p1 -b .bison |
---|
| 62 | %patch2 -p1 -b .gcc5 |
---|
| 63 | %patch3 -p1 -b .gcc8 |
---|
| 64 | %patch4 -p1 -b .signed_int_overflow |
---|
| 65 | %patch5 -p1 -b .openssl11 |
---|
[521] | 66 | |
---|
[12387] | 67 | sed -i 's#bits/atomicity.h#ext/atomicity.h#g' configure* |
---|
| 68 | sed -i 's#bits/atomicity.h#ext/atomicity.h#g' include/ptlib/critsec.h |
---|
| 69 | |
---|
| 70 | |
---|
[521] | 71 | %build |
---|
[12387] | 72 | NOWARN="-Wno-unused-function -Wno-misleading-indentation -Wno-deprecated-declarations" |
---|
| 73 | export CFLAGS="%{optflags} -DLDAP_DEPRECATED $NOWARN" |
---|
| 74 | export CXXFLAGS="%{optflags} -std=gnu++98 $NOWARN" |
---|
| 75 | export STDCXXFLAGS="%{optflags} -std=gnu++98 $NOWARN" |
---|
| 76 | %configure \ |
---|
| 77 | --prefix=%{_prefix} \ |
---|
| 78 | --disable-static \ |
---|
| 79 | --enable-plugins \ |
---|
| 80 | --disable-oss \ |
---|
| 81 | --enable-v4l2 \ |
---|
| 82 | --disable-avc \ |
---|
| 83 | --disable-v4l \ |
---|
| 84 | --enable-pulse |
---|
| 85 | make %{?_smp_mflags} V=1 |
---|
[521] | 86 | |
---|
[12387] | 87 | |
---|
[521] | 88 | %install |
---|
| 89 | rm -rf $RPM_BUILD_ROOT |
---|
| 90 | |
---|
| 91 | make PREFIX=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} install |
---|
| 92 | |
---|
| 93 | perl -pi -e 's@PTLIBDIR.*=.*@PTLIBDIR = /usr/share/ptlib@' $RPM_BUILD_ROOT%{_datadir}/ptlib/make/ptbuildopts.mak |
---|
| 94 | |
---|
| 95 | # hack to fixup things for bug 197318 |
---|
| 96 | find $RPM_BUILD_ROOT%{_libdir} -name '*.so*' -type f -exec chmod +x {} \; |
---|
| 97 | |
---|
| 98 | # |
---|
| 99 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a |
---|
| 100 | |
---|
[12387] | 101 | |
---|
[521] | 102 | %clean |
---|
| 103 | rm -rf $RPM_BUILD_ROOT |
---|
| 104 | |
---|
[12387] | 105 | |
---|
[521] | 106 | %post -p /sbin/ldconfig |
---|
| 107 | %postun -p /sbin/ldconfig |
---|
| 108 | |
---|
[12387] | 109 | |
---|
[521] | 110 | %files |
---|
| 111 | %defattr(-,root,root) |
---|
[12387] | 112 | %license mpl-1.0.htm |
---|
| 113 | %doc History.txt ReadMe.txt |
---|
[521] | 114 | %attr(755,root,root) %{_libdir}/libpt*.so.* |
---|
| 115 | %dir %{_libdir}/ptlib-%{version} |
---|
| 116 | %dir %{_libdir}/ptlib-%{version}/devices |
---|
| 117 | %dir %{_libdir}/ptlib-%{version}/devices/sound |
---|
| 118 | %dir %{_libdir}/ptlib-%{version}/devices/videoinput |
---|
| 119 | # List these explicitly so we don't get any surprises |
---|
| 120 | %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/alsa_pwplugin.so |
---|
[7294] | 121 | %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/pulse_pwplugin.so |
---|
[521] | 122 | %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/v4l2_pwplugin.so |
---|
| 123 | |
---|
| 124 | %files devel |
---|
| 125 | %defattr(-,root,root) |
---|
| 126 | %{_libdir}/libpt*.so |
---|
| 127 | %{_includedir}/* |
---|
| 128 | %{_datadir}/ptlib |
---|
| 129 | %{_libdir}/pkgconfig/ptlib.pc |
---|
| 130 | %attr(755,root,root) %{_bindir}/* |
---|
| 131 | |
---|
| 132 | %changelog |
---|
[12387] | 133 | * Sat Apr 25 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.10.11-1 |
---|
| 134 | - new upstream release. |
---|
| 135 | - dropped Patch0. |
---|
| 136 | - imported Patch1-5 from rawhide. |
---|
| 137 | |
---|
[10488] | 138 | * Sat Jul 02 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-5 |
---|
| 139 | - rebuild with gcc-5.4.0 |
---|
| 140 | |
---|
[10291] | 141 | * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-4 |
---|
| 142 | - rebuild with openssl-1.0.2 |
---|
| 143 | |
---|
[9287] | 144 | * Thu Jan 22 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.10.10-3 |
---|
| 145 | - rebuilt with cyrus-sasl 2.1.26 |
---|
| 146 | - added BR: lua-devel and unixODBC-devel |
---|
| 147 | |
---|
[8119] | 148 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-2 |
---|
| 149 | - rebuild with VineSeed environment |
---|
| 150 | |
---|
[7516] | 151 | * Sun Mar 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-1 |
---|
| 152 | - new upstream release |
---|
| 153 | |
---|
[7294] | 154 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.9-1 |
---|
| 155 | - new upstream release |
---|
[7516] | 156 | - add BuildRequires: pulseaudio-libs-devel |
---|
[7294] | 157 | |
---|
[6971] | 158 | * Sat Oct 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.7-2 |
---|
| 159 | - rebuild with libraw1394-2.1.0 |
---|
| 160 | - add Patch0 (libpt2-fix-avc-plugin.patch) from suse |
---|
| 161 | |
---|
[6890] | 162 | * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.7-1 |
---|
| 163 | - new upstream release |
---|
| 164 | |
---|
[4812] | 165 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.2-1 |
---|
| 166 | - new upstream release |
---|
| 167 | |
---|
[4616] | 168 | * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.1-1 |
---|
| 169 | - new upstream release |
---|
| 170 | |
---|
[2483] | 171 | * Mon Jan 10 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-2 |
---|
| 172 | - rebuild with openssl-1.0.0c |
---|
| 173 | |
---|
[1231] | 174 | * Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-1 |
---|
| 175 | - new upstream release |
---|
| 176 | - add Requires: cyrus-sasl-devel, openldap-devel, openssl-devel, expat-devel, SDL-devel (devel package) |
---|
| 177 | |
---|
[631] | 178 | * Sun Mar 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.6-1 |
---|
| 179 | - new upstream release |
---|
| 180 | - add BuildRequires: expat-devel |
---|
| 181 | - remove configure option (--enable-opal) |
---|
| 182 | |
---|
[623] | 183 | * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.5-1 |
---|
| 184 | - new upstream release |
---|
| 185 | - add BuildRequires: libavc1394-devel |
---|
| 186 | - add configure option (--enable-avc) |
---|
| 187 | |
---|
[521] | 188 | * Wed Jun 24 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.6.2-3 |
---|
| 189 | - rebuilt on ppc w/o libdc1394-devel |
---|
| 190 | |
---|
| 191 | * Sun Jun 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-2 |
---|
| 192 | - remove dc_pwplugin |
---|
| 193 | - remove BR: libdc1394-devel |
---|
| 194 | |
---|
| 195 | * Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-1 |
---|
| 196 | - new upstream release |
---|
| 197 | |
---|
| 198 | * Sat Apr 4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.4-1 |
---|
| 199 | - new upstream release |
---|
| 200 | |
---|
| 201 | * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-1 |
---|
| 202 | - new upstream release |
---|
| 203 | |
---|
| 204 | * Mon Sep 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-1 |
---|
| 205 | - initial build for Vine Linux |
---|
| 206 | - Obsoletes: pwlib, pwlib-{alsa,v4l,dc,avc} |
---|
| 207 | |
---|
| 208 | * Wed Sep 10 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-2 |
---|
| 209 | - Build fixes from package review |
---|
| 210 | |
---|
| 211 | * Sun Jun 8 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-1 |
---|
| 212 | - Initial version of ptlib |
---|