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

Revision 10488, 5.7 KB checked in by Takemikaduchi, 8 years ago (diff)

rebuild with gcc-5.4.0

RevLine 
[521]1Summary:        Portable Tools Library
2Name:           ptlib
[7516]3Version:        2.10.10
[10488]4Release:        5%{?_dist_release}
[9287]5
[521]6License:        MPLv1.0
7Group:          System Environment/Libraries
[9287]8URL:            http://www.opalvoip.org/
[521]9
[9287]10Source0:        ftp://ftp.gnome.org/pub/gnome/sources/ptlib/2.10/%{name}-%{version}.tar.xz
[6971]11Patch0:         libpt2-fix-avc-plugin.patch
12
[9287]13BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
[7294]14BuildRequires:  openssl-devel
15BuildRequires:  alsa-lib-devel
16BuildRequires:  openldap-devel
[631]17BuildRequires:  expat-devel
[7294]18BuildRequires:  SDL-devel
19BuildRequires:  pulseaudio-libs-devel
20BuildRequires:  flex
21BuildRequires:  bison
22BuildRequires:  libraw1394-devel
23BuildRequires:  libdv-devel
24BuildRequires:  libavc1394-devel
[9287]25BuildRequires:  lua-devel
26BuildRequires:  unixODBC-devel
[521]27Obsoletes:      pwlib, pwlib-alsa, pwlib-avc, pwlib-dc, pwlib-oss, pwlib-v4l
28
[4616]29Vendor: Project Vine
30Distribution: Vine Linux
31
[521]32%description
33PTLib (Portable Tools Library) is a moderately large class library that
34has it's genesis many years ago as PWLib (portable Windows Library), a
35method to product applications to run on both Microsoft Windows and Unix
36systems. It has also been ported to other systems such as Mac OSX, VxWorks
37and other embedded systems.
38
39It is supplied mainly to support the OPAL project, but that shouldn't stop
40you from using it in whatever project you have in mind if you so desire.
41
42%package devel
43Summary:        Development package for ptlib
44Group:          Development/Libraries
45Requires:       ptlib = %{version}-%{release}
46Requires:       pkgconfig
[1231]47Requires:       cyrus-sasl-devel
48Requires:       openldap-devel
49Requires:       openssl-devel
50Requires:       expat-devel
[9287]51Requires:       lua-devel
[1231]52Requires:       SDL-devel
[9287]53Requires:       unixODBC-devel
[521]54Obsoletes:      pwlib-devel
55
56%description devel
57The ptlib-devel package includes the libraries and header files for ptlib.
58
59%prep
60%setup -q
[6971]61%patch0 -p1 -b .1394
[521]62
63%build
64export CFLAGS="$CFLAGS -DLDAP_DEPRECATED"
[9287]65%configure --prefix=%{_prefix} \
66           --disable-static \
[521]67           --enable-plugins \
68           --disable-oss \
[623]69           --enable-v4l2 \
[7294]70           --enable-avc \
71           --enable-pulse
[521]72make %{?_smp_mflags}
73
74%install
75rm -rf $RPM_BUILD_ROOT
76
77make PREFIX=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} install
78
79perl -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
82find $RPM_BUILD_ROOT%{_libdir} -name '*.so*' -type f -exec chmod +x {} \;
83
84#
85rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
86
87%clean
88rm -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
[7294]103%attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/pulse_pwplugin.so
[521]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
[10488]116* Sat Jul 02 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-5
117- rebuild with gcc-5.4.0
118
[10291]119* Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-4
120- rebuild with openssl-1.0.2
121
[9287]122* Thu Jan 22 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.10.10-3
123- rebuilt with cyrus-sasl 2.1.26
124- added BR: lua-devel and unixODBC-devel
125
[8119]126* Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-2
127- rebuild with VineSeed environment
128
[7516]129* Sun Mar 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-1
130- new upstream release
131
[7294]132* Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.9-1
133- new upstream release
[7516]134- add BuildRequires: pulseaudio-libs-devel
[7294]135
[6971]136* Sat Oct 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.7-2
137- rebuild with libraw1394-2.1.0
138- add Patch0 (libpt2-fix-avc-plugin.patch) from suse
139
[6890]140* Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.7-1
141- new upstream release
142
[4812]143* Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.2-1
144- new upstream release
145
[4616]146* Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.1-1
147- new upstream release
148
[2483]149* Mon Jan 10 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-2
150- rebuild with openssl-1.0.0c
151
[1231]152* Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-1
153- new upstream release
154- add Requires: cyrus-sasl-devel, openldap-devel, openssl-devel, expat-devel, SDL-devel (devel package)
155
[631]156* Sun Mar 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.6-1
157- new upstream release
158- add BuildRequires: expat-devel
159- remove configure option (--enable-opal)
160
[623]161* Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.5-1
162- new upstream release
163- add BuildRequires: libavc1394-devel
164- add configure option (--enable-avc)
165
[521]166* Wed Jun 24 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.6.2-3
167- rebuilt on ppc w/o libdc1394-devel
168
169* Sun Jun 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-2
170- remove dc_pwplugin
171- remove BR: libdc1394-devel
172
173* Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-1
174- new upstream release
175
176* Sat Apr  4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.4-1
177- new upstream release
178
179* Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-1
180- new upstream release
181
182* Mon Sep 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp>  2.4.1-1
183- initial build for Vine Linux
184- Obsoletes: pwlib, pwlib-{alsa,v4l,dc,avc}
185
186* Wed Sep 10 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-2
187- Build fixes from package review
188
189* Sun Jun 8 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-1
190- Initial version of ptlib
Note: See TracBrowser for help on using the repository browser.