File libpt2.spec of Package libpt2
#
# spec file for package libpt2
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _unpackaged_files_terminate_build 0
Name: libpt2
%define _name ptlib
Version: 2.10.9.6
Release: 0
%define _version 2_10_9
Summary: Portable Windows Library from Equivalence Pty. Ltd. version 2
License: MPL-1.0
Group: System/Libraries
Url: http://www.opalvoip.org/
# https://sourceforge.net/projects/opalvoip
Source: %{_name}-%{version}.tar.gz
# PATCH-MISSING-TAG libpt2-fix-avc-plugin.patch jeffm@suse.com -- Fix build for avc-plugin.
Patch1: libpt2-fix-avc-plugin.patch
BuildRequires: SDL-devel
BuildRequires: bison
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: libdv-devel
BuildRequires: libexpat-devel
BuildRequires: libstdc++-devel
BuildRequires: openldap2-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(libpulse)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a moderately large class library that was created many years
ago as a method to produce applications that run on both Microsoft
Windows and the X Window System.
%package -n libpt%{_version}
Summary: Portable Windows Library from Equivalence Pty. Ltd. version 2
Group: System/Libraries
%description -n libpt%{_version}
This is a moderately large class library that was created many years
ago as a method to produce applications that run on both Microsoft
Windows and the X Window System.
%package -n libpt-gnugk-devel
Summary: Development files for %{name} (includes headers and scripts)
Group: Development/Libraries/C and C++
Requires: libpt%{_version} = %{version}
Conflicts: pwlib-devel
# libpt2-devel was last used in openSUSE 11.3
# Provides: libpt-devel = %{version}
# Provides: libpt = %{version}
# Obsoletes: libpt2-devel < %{version}
%description -n libpt-gnugk-devel
This package includes header files and scripts needed for developers
using the %{name} library.
%prep
%setup -q -n %{_name}-%{version}
%patch -P 1 -p1
%build
%configure \
--enable-ipv6
make %{?_smp_mflags} V=1
%install
%makeinstall
rm -f %{buildroot}%{_libdir}/libpt_s.a
%post -n libpt%{_version} -p /sbin/ldconfig
%postun -n libpt%{_version} -p /sbin/ldconfig
%files -n libpt%{_version}
%defattr(-,root,root)
%doc mpl-1.0.htm History.txt
%{_libdir}/libpt.so.2*
%files -n libpt-gnugk-devel
%defattr(0644,root,root,0755)
%doc ReadMe.txt ReadMe_QOS.txt
%{_datadir}/ptlib/
%attr(0755, root, root) %{_datadir}/ptlib/make/ptlib-config
%{_includedir}/ptbuildopts.h
%{_includedir}/ptlib.h
%{_includedir}/ptlib/
%{_includedir}/ptclib/
%{_bindir}/ptlib-config
%{_libdir}/libpt.so
%{_libdir}/pkgconfig/ptlib.pc
%changelog