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

Revision 521, 3.6 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

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