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