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

Revision 8119, 5.3 KB checked in by Takemikaduchi, 10 years ago (diff)

rebuild or new upstream release

Line 
1Summary:        Portable Tools Library
2Name:           ptlib
3Version:        2.10.10
4Release:        2%{?_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* Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-2
112- rebuild with VineSeed environment
113
114* Sun Mar 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-1
115- new upstream release
116
117* Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.9-1
118- new upstream release
119- add BuildRequires: pulseaudio-libs-devel
120
121* Sat Oct 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.7-2
122- rebuild with libraw1394-2.1.0
123- add Patch0 (libpt2-fix-avc-plugin.patch) from suse
124
125* Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.7-1
126- new upstream release
127
128* Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.2-1
129- new upstream release
130
131* Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.1-1
132- new upstream release
133
134* Mon Jan 10 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-2
135- rebuild with openssl-1.0.0c
136
137* Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-1
138- new upstream release
139- add Requires: cyrus-sasl-devel, openldap-devel, openssl-devel, expat-devel, SDL-devel (devel package)
140
141* Sun Mar 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.6-1
142- new upstream release
143- add BuildRequires: expat-devel
144- remove configure option (--enable-opal)
145
146* Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.5-1
147- new upstream release
148- add BuildRequires: libavc1394-devel
149- add configure option (--enable-avc)
150
151* Wed Jun 24 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.6.2-3
152- rebuilt on ppc w/o libdc1394-devel
153
154* Sun Jun 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-2
155- remove dc_pwplugin
156- remove BR: libdc1394-devel
157
158* Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-1
159- new upstream release
160
161* Sat Apr  4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.4-1
162- new upstream release
163
164* Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-1
165- new upstream release
166
167* Mon Sep 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp>  2.4.1-1
168- initial build for Vine Linux
169- Obsoletes: pwlib, pwlib-{alsa,v4l,dc,avc}
170
171* Wed Sep 10 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-2
172- Build fixes from package review
173
174* Sun Jun 8 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-1
175- Initial version of ptlib
Note: See TracBrowser for help on using the repository browser.