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

Revision 7294, 5.1 KB checked in by Takemikaduchi, 11 years ago (diff)

KDE-4.9.5

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