File wvstreams.spec of Package wvstreams

#
# spec file for package wvstreams (Version 4.4.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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:        LGPL v2.1 or later
Version:        4.4.1
Release:        5
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
Patch3:         wvstreams-const.diff
Patch4:         wvcrash.diff
Patch5:         wvstreams-wvmodem-iotcl.patch
Patch8:         wvstreams-gcc43.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
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
#%patch3
%patch4
%patch5
%patch8

%build
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
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
* Mon Jan 28 2008 schwab@suse.de
- Fix use of sigaction.
* Wed Jan 16 2008 hvogel@suse.de
- Update to version 4.4.1
  * Merge the crypto_refactoring branch
  into trunk, adding a ton of new X509 certificate management
  features, better CRL support, and lots of other goodies
  * make WvCRL handle blank (null) CRLs better
  * tweak WvCRL's API for const correctness
  * Remove a few more unused files/dirs
* Mon Nov 19 2007 ssommer@suse.de
- fix build for gcc43: the function for the problematic prototype
  is never compiled anyway
- do not clean buildroot in the install section
* Thu Aug 09 2007 olh@suse.de
- remove inclusion of linux/compiler.h
* Thu Mar 29 2007 rguenther@suse.de
- add zlib-devel BuildRequires
* Wed Oct 25 2006 ro@suse.de
- update to 4.2.2
  - clean up tarball
  - some bugfixes
- fix build with current gcc
* Thu Jun 15 2006 dmueller@suse.de
- build parallel
* Wed May 03 2006 kukuk@suse.de
- Fix compiling on some architectures
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 30 2005 hvogel@suse.de
- update to version 4.2.1
* Thu Nov 03 2005 hvogel@suse.de
- Fix setup_modem not fail on TIOCSSERIAL for non root users
* Tue Oct 18 2005 hvogel@suse.de
- removed some extra qualifications. Added
  * wvstreams-gcc41.patch
* Mon Oct 17 2005 ro@suse.de
- make it build with current openssl
* Thu Jun 23 2005 hvogel@suse.de
- run ldconfig in post/postun
- mark config file as noreplace
* Fri Mar 18 2005 arvin@suse.de
- fixed seg. fault on AMD64 (bug #73045)
* Wed Jan 19 2005 arvin@suse.de
- added sentinel
* Thu Nov 18 2004 arvin@suse.de
- updated to version 4.0.1 (minor bug fixes)
* Tue Oct 26 2004 arvin@suse.de
- updated to version 4.0 (includes stabilized UniConf)
* Mon Apr 19 2004 arvin@suse.de
- updated to version 3.75 (minor bug fixes)
* Fri Jan 16 2004 kukuk@suse.de
- Add pam-devel to neededforbuild
* Wed Dec 17 2003 arvin@suse.de
- fixed building on ppc
* Fri Dec 12 2003 arvin@suse.de
- initial package with wvstream libraries version 3.74
openSUSE Build Service is sponsored by