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

Revision 6971, 4.9 KB checked in by Takemikaduchi, 12 years ago (diff)

libraw1394,libdc1394: new upstream release,
others: rebuild with libraw1394-2.1.0

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