source: projects/specs/branches/6/p/ptlib/ptlib-vl.spec @ 2483

Revision 2483, 4.4 KB checked in by Takemikaduchi, 13 years ago (diff)

rebuild with openssl-1.0.0c

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