File net6.spec of Package net6

#
# spec file for package net6 (Version 1.3.10)
#
# Copyright (c) 2009 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:           net6
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gettext-devel
BuildRequires:  gnutls-devel
BuildRequires:  libsigc++2-devel
BuildRequires:  pkg-config
License:        LGPL v2.1 or later
Group:          Development/Libraries/GNOME
AutoReqProv:    on
Version:        1.3.10
Release:        1
Summary:        Network access framework for IPv4/IPv6
Source:         %{name}-%{version}.tar.bz2
Url:            http://gobby.0x539.de/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}

%description
net6 is a library which eases the development of network-based
applications as it provides a TCP protocol abstraction for C++. It is
portable to both the Windows and Unix-like platforms.

%package devel
License:        LGPL v2.1 or later
Summary:        Network access framework for IPv4/IPv6
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version} gnutls-devel libsigc++2-devel

%description devel
net6 is a library which eases the development of network-based
applications as it provides a TCP protocol abstraction for C++. It is
portable to both the Windows and Unix-like platforms.

%lang_package
%prep
%setup -q

%build
# FIXME: Cannot autoreconf: Bad AM_GNU_GETTEXT_VERSION check
#ACLOCAL="aclocal -I m4" autoreconf -f -i
%configure --disable-static --with-pic
make %{?jobs:-j%jobs}

%install
%makeinstall
%find_lang %{name}
%fdupes $RPM_BUILD_ROOT
rm -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/*.so.*

%files lang -f %{name}.lang

%files devel
%defattr (-, root, root)
%{_includedir}/net6
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so

%changelog
openSUSE Build Service is sponsored by