File wvstreams.spec of Package wvstreams
#
# spec file for package wvstreams
#
# Copyright (c) 2011 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/
#
# norootforbuild
Name: wvstreams
Url: http://alumnit.ca/wiki/?WvStreams
BuildRequires: db-devel gcc-c++ openssl-devel pam-devel pkgconfig zlib-devel
License: LGPLv2.1+
Version: 4.4.1
Release: 74
Summary: Network Programming Library in C++
Source0: http://open.nit.ca/download/%{name}-%{version}.tar.bz2
Patch0: set-empty.diff
Patch1: sentinel.diff
Patch2: 73045.diff
Patch4: wvcrash.diff
Patch5: wvstreams-wvmodem-iotcl.patch
Patch8: wvstreams-gcc43.patch
Patch9: wvstreams-openssl.patch
Patch10: wvstreams-headers.patch
Group: Development/Libraries/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A network programming library in C++. It aims to be an efficient,
secure, easy to use, and OS-independent library for network application
development.
Authors:
--------
Net Integration Technologies, Inc.
%package devel
License: LGPLv2.1+
Summary: Network Programming Library in C++
Group: Development/Libraries/Other
Requires: wvstreams = %{version}
%description devel
A network programming library in C++. It aims to be an efficient,
secure, easy to use, and OS-independent library for network application
development.
Authors:
--------
Net Integration Technologies, Inc.
%prep
%setup -q -n wvstreams-%{version}
%patch0
%patch1
%patch2
%patch4
%patch5
%patch8
%patch9 -p1
%patch10 -p1
%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
export COPTS="$CFLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing"
export CXXOPTS="$CXXFLAGS"
export LDFLAGS="-ldb -lpthread"
./configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir} \
--sysconfdir=/etc --localstatedir=/var --enable-verbose
make %{?jobs:-j %jobs}
%install
export SUSE_ASNEEDED=0
make install DESTDIR=%{buildroot}
rm %{buildroot}/%_libdir/valgrind/wvstreams.supp
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-, root, root)
%doc COPYING.LIB README
%{_libdir}/*.so.*
/usr/bin/uni
/usr/sbin/uniconfd
/usr/bin/wvtesthelper
/usr/bin/wvtestmeter
%doc %{_mandir}/man8/*
%config(noreplace) /etc/uniconf.conf
%config /var/lib/uniconf
%files devel
%defattr (-, root, root)
/usr/include/wvstreams
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.a
%{_libdir}/*.so
%changelog