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

Revision 631, 4.0 KB checked in by Takemikaduchi, 14 years ago (diff)

takemikaduchi fix and add spec file

Line 
1Summary:        Portable Tools Library
2Name:           ptlib
3Version:        2.6.6
4Release:        1%{?_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
33Obsoletes:      pwlib-devel
34
35%description devel
36The ptlib-devel package includes the libraries and header files for ptlib.
37
38%prep
39%setup -q
40
41%build
42export CFLAGS="$CFLAGS -DLDAP_DEPRECATED"
43%configure --prefix=%{_prefix} --disable-static \
44           --enable-plugins \
45           --disable-oss \
46           --enable-v4l2 \
47           --enable-avc
48make %{?_smp_mflags}
49
50%install
51rm -rf $RPM_BUILD_ROOT
52
53make PREFIX=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} install
54
55perl -pi -e 's@PTLIBDIR.*=.*@PTLIBDIR = /usr/share/ptlib@' $RPM_BUILD_ROOT%{_datadir}/ptlib/make/ptbuildopts.mak
56
57# hack to fixup things for bug 197318
58find $RPM_BUILD_ROOT%{_libdir} -name '*.so*' -type f -exec chmod +x {} \;
59
60# Remove empty include file
61rm -rf $RPM_BUILD_ROOT%{_includedir}/ptlib/devplugin.h
62
63#
64rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
65
66%clean
67rm -rf $RPM_BUILD_ROOT
68
69%post -p /sbin/ldconfig
70%postun -p /sbin/ldconfig
71
72%files
73%defattr(-,root,root)
74%doc History.txt ReadMe.txt mpl-1.0.htm
75%attr(755,root,root) %{_libdir}/libpt*.so.*
76%dir %{_libdir}/ptlib-%{version}
77%dir %{_libdir}/ptlib-%{version}/devices
78%dir %{_libdir}/ptlib-%{version}/devices/sound
79%dir %{_libdir}/ptlib-%{version}/devices/videoinput
80# List these explicitly so we don't get any surprises
81%attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/alsa_pwplugin.so
82%attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/v4l2_pwplugin.so
83%attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/avc_pwplugin.so
84
85%files devel
86%defattr(-,root,root)
87%{_libdir}/libpt*.so
88%{_includedir}/*
89%{_datadir}/ptlib
90%{_libdir}/pkgconfig/ptlib.pc
91%attr(755,root,root) %{_bindir}/*
92
93%changelog
94* Sun Mar 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.6-1
95- new upstream release
96- add BuildRequires: expat-devel
97- remove configure option (--enable-opal)
98
99* Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.5-1
100- new upstream release
101- add BuildRequires: libavc1394-devel
102- add configure option (--enable-avc)
103
104* Wed Jun 24 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.6.2-3
105- rebuilt on ppc w/o libdc1394-devel
106
107* Sun Jun 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-2
108- remove dc_pwplugin
109- remove BR: libdc1394-devel
110
111* Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-1
112- new upstream release
113
114* Sat Apr  4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.4-1
115- new upstream release
116
117* Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-1
118- new upstream release
119
120* Mon Sep 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp>  2.4.1-1
121- initial build for Vine Linux
122- Obsoletes: pwlib, pwlib-{alsa,v4l,dc,avc}
123
124* Wed Sep 10 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-2
125- Build fixes from package review
126
127* Sun Jun 8 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-1
128- Initial version of ptlib
Note: See TracBrowser for help on using the repository browser.