File libcxxtools7.spec of Package libcxxtools7

#
# spec file for package libcxxtools
#
# 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

%define ver_mj  7
%define prj_nm  cxxtools

Name:           lib%{prj_nm}%{ver_mj}
Version:        2.0
Release:        0
Summary:        A collection of general-purpose C++ classes

License:        LGPLv3.0+
Group:          Development/Libraries/C and C++
URL:            http://www.tntnet.org/cxxtools.html
Source0:        http://www.tntnet.org/download/%{prj_nm}-%{version}.tar.gz

BuildRequires:  gcc-c++

BuildRoot:      %{_tmppath}/%{prj_nm}-%{version}-build

%description
It includes classes for:

    * argument parsing
    * logging
    * wrappers for threading (pthreads)
    * networking with tcp and udp including iostream-based classes
    * std::ostream for md5-calculation
    * std::ostream-hexdumper
    * std::ostream, which duplicates output (like tee)
    * wrappers for fork(2) and pipe(2)
    * parser for ini files
    * parser for property files
    * policy based smartpointer
    * wrappers for dlopen(2) and dlsym(2)
    * fast http client
    * uuencoder-std::ostream
    * classes to create mime messages for sending mail with attachements or as html-formatted mail
    * template based fast signal/slot-classes
    * template for pools
    * parser for http-query-parameters e.g. for cgi
    * ostream-filter for counting bytes passed through it
    * wrappers for atomic operations
    * ...


%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.


%prep
%setup -qn %{prj_nm}-%{version}


%build
%{configure} \
    --disable-static \
    --with-iconvstream=yes \
    --with-pic
make %{?_smp_mflags}


%install
make install DESTDIR=%{buildroot}
find %{buildroot} -name '*.la' -exec rm -f {} ';'


%clean
rm -rf %{buildroot}


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%defattr(-,root,root,-)
%doc
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README
%{_bindir}/*
%{_includedir}/*
%{_libdir}/*.so

%changelog
openSUSE Build Service is sponsored by