File libopennet.spec of Package libopennet
#
# spec file for package libopennet
#
# 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: libopennet
Version: 0.9.9
Release: 0
Summary: Open Files over the Network
Source: http://www.rkeene.org/files/oss/libopennet/libopennet-%{version}.tar.gz
Patch1: libopennet-destdir.patch
Patch2: libopennet-0.9.9_fix_soname.patch
Patch3: libopennet-0.9.9_add_pkgconfig_support.patch
Url: http://www.rkeene.org/oss/libopennet/
Group: Development/Libraries/Other
License: LGPL-2.1-only
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc glibc-devel make
BuildRequires: autoconf automake libtool
BuildRequires: pkg-config
%description
Libopennet allows you to open_net() files the same way you open() them now.
%package -n libopennet0
Group: Development/Libraries/Other
Summary: Open Files over the Network
Provides: %{name} = %{version}
%description -n libopennet0
Libopennet allows you to open_net() files the same way you open() them now.
%package devel
Summary: Development files for libopennet
Group: Development/Libraries/Other
Requires: libopennet0 = %{version}
%description devel
Libopennet allows you to open_net() files the same way you open() them now.
This package contains the files required for development.
%prep
%setup -q
%patch1
%patch2
%patch3
autoreconf
%build
%configure
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%post -n libopennet0 -p /sbin/ldconfig
%postun -n libopennet0 -p /sbin/ldconfig
%clean
%__rm -rf "%{buildroot}"
%files -n libopennet0
%defattr(-,root,root)
%doc ChangeLog LICENSE README
%{_libdir}/libopennet.so.0*
%files devel
%defattr(-,root,root)
%{_includedir}/opennet.h
%{_libdir}/libopennet.so
%{_libdir}/libopennet.a
%{_libdir}/pkgconfig/libopennet.pc
%doc %{_mandir}/man3/*.3*
%changelog