source: projects/specs/trunk/p/ptlib/ptlib-vl.spec @ 7516

Revision 7516, 5.2 KB checked in by Takemikaduchi, 11 years ago (diff)

new upstream release

Line 
1Summary:        Portable Tools Library
2Name:           ptlib
3Version:        2.10.10
4Release:        1%{?_dist_release}
5URL:            http://www.opalvoip.org/
6Source0:        ftp://ftp.gnome.org/pub/gnome/sources/ptlib/2.10/%{name}-%{version}.tar.xz
7License:        MPLv1.0
8Group:          System Environment/Libraries
9BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
10
11Patch0:         libpt2-fix-avc-plugin.patch
12
13BuildRequires:  openssl-devel
14BuildRequires:  alsa-lib-devel
15BuildRequires:  libstdc++3-devel
16BuildRequires:  openldap-devel
17BuildRequires:  expat-devel
18BuildRequires:  SDL-devel
19BuildRequires:  pulseaudio-libs-devel
20BuildRequires:  flex
21BuildRequires:  bison
22BuildRequires:  libraw1394-devel
23BuildRequires:  libdv-devel
24BuildRequires:  libavc1394-devel
25Obsoletes:      pwlib, pwlib-alsa, pwlib-avc, pwlib-dc, pwlib-oss, pwlib-v4l
26
27Vendor: Project Vine
28Distribution: Vine Linux
29
30%description
31PTLib (Portable Tools Library) is a moderately large class library that
32has it's genesis many years ago as PWLib (portable Windows Library), a
33method to product applications to run on both Microsoft Windows and Unix
34systems. It has also been ported to other systems such as Mac OSX, VxWorks
35and other embedded systems.
36
37It is supplied mainly to support the OPAL project, but that shouldn't stop
38you from using it in whatever project you have in mind if you so desire.
39
40%package devel
41Summary:        Development package for ptlib
42Group:          Development/Libraries
43Requires:       ptlib = %{version}-%{release}
44Requires:       pkgconfig
45Requires:       cyrus-sasl-devel
46Requires:       openldap-devel
47Requires:       openssl-devel
48Requires:       expat-devel
49Requires:       SDL-devel
50Obsoletes:      pwlib-devel
51
52%description devel
53The ptlib-devel package includes the libraries and header files for ptlib.
54
55%prep
56%setup -q
57%patch0 -p1 -b .1394
58
59%build
60export CFLAGS="$CFLAGS -DLDAP_DEPRECATED"
61%configure --prefix=%{_prefix} --disable-static \
62           --enable-plugins \
63           --disable-oss \
64           --enable-v4l2 \
65           --enable-avc \
66           --enable-pulse
67make %{?_smp_mflags}
68
69%install
70rm -rf $RPM_BUILD_ROOT
71
72make PREFIX=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} install
73
74perl -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
77find $RPM_BUILD_ROOT%{_libdir} -name '*.so*' -type f -exec chmod +x {} \;
78
79#
80rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
81
82%clean
83rm -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
98%attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/pulse_pwplugin.so
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
111* Sun Mar 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-1
112- new upstream release
113
114* Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.9-1
115- new upstream release
116- add BuildRequires: pulseaudio-libs-devel
117
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
122* Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.7-1
123- new upstream release
124
125* Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.2-1
126- new upstream release
127
128* Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.1-1
129- new upstream release
130
131* Mon Jan 10 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-2
132- rebuild with openssl-1.0.0c
133
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
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
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
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
Note: See TracBrowser for help on using the repository browser.