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

Revision 12387, 6.3 KB checked in by tomop, 4 years ago (diff)

updated 10 packages

Field3D-1.7.3-1

OpenImageIO-2.1.10.1-1

ekiga-4.0.1-11

galera-26.4.3-2

gnucash-3.10-1

libboost-1.72.0-1

nghttp2-1.40.0-2

opal-3.10.11-1

ptlib-2.10.11-1

source-highlight-3.1.8-2

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