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

Revision 4616, 4.5 KB checked in by Takemikaduchi, 13 years ago (diff)

X.Org, compiz, GNOME3, etc...

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