1 | Summary: Portable Tools Library |
---|
2 | Name: ptlib |
---|
3 | Version: 2.10.10 |
---|
4 | Release: 3%{?_dist_release} |
---|
5 | |
---|
6 | License: MPLv1.0 |
---|
7 | Group: System Environment/Libraries |
---|
8 | URL: http://www.opalvoip.org/ |
---|
9 | |
---|
10 | Source0: ftp://ftp.gnome.org/pub/gnome/sources/ptlib/2.10/%{name}-%{version}.tar.xz |
---|
11 | Patch0: libpt2-fix-avc-plugin.patch |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
14 | BuildRequires: openssl-devel |
---|
15 | BuildRequires: alsa-lib-devel |
---|
16 | BuildRequires: openldap-devel |
---|
17 | BuildRequires: expat-devel |
---|
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 |
---|
25 | BuildRequires: lua-devel |
---|
26 | BuildRequires: unixODBC-devel |
---|
27 | Obsoletes: pwlib, pwlib-alsa, pwlib-avc, pwlib-dc, pwlib-oss, pwlib-v4l |
---|
28 | |
---|
29 | Vendor: Project Vine |
---|
30 | Distribution: Vine Linux |
---|
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 |
---|
47 | Requires: cyrus-sasl-devel |
---|
48 | Requires: openldap-devel |
---|
49 | Requires: openssl-devel |
---|
50 | Requires: expat-devel |
---|
51 | Requires: lua-devel |
---|
52 | Requires: SDL-devel |
---|
53 | Requires: unixODBC-devel |
---|
54 | Obsoletes: pwlib-devel |
---|
55 | |
---|
56 | %description devel |
---|
57 | The ptlib-devel package includes the libraries and header files for ptlib. |
---|
58 | |
---|
59 | %prep |
---|
60 | %setup -q |
---|
61 | %patch0 -p1 -b .1394 |
---|
62 | |
---|
63 | %build |
---|
64 | export CFLAGS="$CFLAGS -DLDAP_DEPRECATED" |
---|
65 | %configure --prefix=%{_prefix} \ |
---|
66 | --disable-static \ |
---|
67 | --enable-plugins \ |
---|
68 | --disable-oss \ |
---|
69 | --enable-v4l2 \ |
---|
70 | --enable-avc \ |
---|
71 | --enable-pulse |
---|
72 | make %{?_smp_mflags} |
---|
73 | |
---|
74 | %install |
---|
75 | rm -rf $RPM_BUILD_ROOT |
---|
76 | |
---|
77 | make PREFIX=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} install |
---|
78 | |
---|
79 | perl -pi -e 's@PTLIBDIR.*=.*@PTLIBDIR = /usr/share/ptlib@' $RPM_BUILD_ROOT%{_datadir}/ptlib/make/ptbuildopts.mak |
---|
80 | |
---|
81 | # hack to fixup things for bug 197318 |
---|
82 | find $RPM_BUILD_ROOT%{_libdir} -name '*.so*' -type f -exec chmod +x {} \; |
---|
83 | |
---|
84 | # |
---|
85 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a |
---|
86 | |
---|
87 | %clean |
---|
88 | rm -rf $RPM_BUILD_ROOT |
---|
89 | |
---|
90 | %post -p /sbin/ldconfig |
---|
91 | %postun -p /sbin/ldconfig |
---|
92 | |
---|
93 | %files |
---|
94 | %defattr(-,root,root) |
---|
95 | %doc History.txt ReadMe.txt mpl-1.0.htm |
---|
96 | %attr(755,root,root) %{_libdir}/libpt*.so.* |
---|
97 | %dir %{_libdir}/ptlib-%{version} |
---|
98 | %dir %{_libdir}/ptlib-%{version}/devices |
---|
99 | %dir %{_libdir}/ptlib-%{version}/devices/sound |
---|
100 | %dir %{_libdir}/ptlib-%{version}/devices/videoinput |
---|
101 | # List these explicitly so we don't get any surprises |
---|
102 | %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/alsa_pwplugin.so |
---|
103 | %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/pulse_pwplugin.so |
---|
104 | %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/v4l2_pwplugin.so |
---|
105 | %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/avc_pwplugin.so |
---|
106 | |
---|
107 | %files devel |
---|
108 | %defattr(-,root,root) |
---|
109 | %{_libdir}/libpt*.so |
---|
110 | %{_includedir}/* |
---|
111 | %{_datadir}/ptlib |
---|
112 | %{_libdir}/pkgconfig/ptlib.pc |
---|
113 | %attr(755,root,root) %{_bindir}/* |
---|
114 | |
---|
115 | %changelog |
---|
116 | * Thu Jan 22 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.10.10-3 |
---|
117 | - rebuilt with cyrus-sasl 2.1.26 |
---|
118 | - added BR: lua-devel and unixODBC-devel |
---|
119 | |
---|
120 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-2 |
---|
121 | - rebuild with VineSeed environment |
---|
122 | |
---|
123 | * Sun Mar 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-1 |
---|
124 | - new upstream release |
---|
125 | |
---|
126 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.9-1 |
---|
127 | - new upstream release |
---|
128 | - add BuildRequires: pulseaudio-libs-devel |
---|
129 | |
---|
130 | * Sat Oct 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.7-2 |
---|
131 | - rebuild with libraw1394-2.1.0 |
---|
132 | - add Patch0 (libpt2-fix-avc-plugin.patch) from suse |
---|
133 | |
---|
134 | * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.7-1 |
---|
135 | - new upstream release |
---|
136 | |
---|
137 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.2-1 |
---|
138 | - new upstream release |
---|
139 | |
---|
140 | * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.1-1 |
---|
141 | - new upstream release |
---|
142 | |
---|
143 | * Mon Jan 10 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-2 |
---|
144 | - rebuild with openssl-1.0.0c |
---|
145 | |
---|
146 | * Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-1 |
---|
147 | - new upstream release |
---|
148 | - add Requires: cyrus-sasl-devel, openldap-devel, openssl-devel, expat-devel, SDL-devel (devel package) |
---|
149 | |
---|
150 | * Sun Mar 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.6-1 |
---|
151 | - new upstream release |
---|
152 | - add BuildRequires: expat-devel |
---|
153 | - remove configure option (--enable-opal) |
---|
154 | |
---|
155 | * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.5-1 |
---|
156 | - new upstream release |
---|
157 | - add BuildRequires: libavc1394-devel |
---|
158 | - add configure option (--enable-avc) |
---|
159 | |
---|
160 | * Wed Jun 24 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.6.2-3 |
---|
161 | - rebuilt on ppc w/o libdc1394-devel |
---|
162 | |
---|
163 | * Sun Jun 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-2 |
---|
164 | - remove dc_pwplugin |
---|
165 | - remove BR: libdc1394-devel |
---|
166 | |
---|
167 | * Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-1 |
---|
168 | - new upstream release |
---|
169 | |
---|
170 | * Sat Apr 4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.4-1 |
---|
171 | - new upstream release |
---|
172 | |
---|
173 | * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-1 |
---|
174 | - new upstream release |
---|
175 | |
---|
176 | * Mon Sep 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-1 |
---|
177 | - initial build for Vine Linux |
---|
178 | - Obsoletes: pwlib, pwlib-{alsa,v4l,dc,avc} |
---|
179 | |
---|
180 | * Wed Sep 10 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-2 |
---|
181 | - Build fixes from package review |
---|
182 | |
---|
183 | * Sun Jun 8 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-1 |
---|
184 | - Initial version of ptlib |
---|