File liboop.spec of Package liboop

#
# spec file for package liboop (Version 1.0)
#
# Copyright (c) 2007 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:           liboop
Version:        1.0
Release:        85
License:        LGPL v2.1 or later
Group:          Development/Libraries/C and C++
Url:            http://liboop.org/
AutoReqProv:    on
Summary:        Low-Level Event Loop Management Library
Source:         http://download.ofb.net/liboop/liboop.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Liboop is a low-level event loop management library for POSIX-based
operating systems. It supports the development of modular, multiplexed
applications that may respond to events from several sources. It
replaces the "select() loop" and allows the registration of event
handlers for file and network I/O, timers, and signals. Because
processes use these mechanisms for almost all external communication,
liboop can be used as the basis for almost any application.



Authors:
--------
    Dan Egnor <egnor at ofb dot net>

%package devel
Group:          Development/Libraries/C and C++
Summary:        Development Libraries and Header Files of liboop
Requires:       %{name} = %{version}

%description devel
This package contains the static libraries and header files needed to
develop programs which make use of the liboop programming interface.



Authors:
--------
    Dan Egnor <egnor at ofb dot net>

%prep
%setup -q

%build
export CFLAGS="$RPM_OPT_FLAGS"
%configure --disable-static --with-pic
%{__make} all check

%install
%{__make} DESTDIR=${RPM_BUILD_ROOT} install

%clean
rm -rf ${RPM_BUILD_ROOT}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

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

%files devel
%defattr(-,root,root)
%{_includedir}/oop*
%{_libdir}/liboop.so
%{_libdir}/pkgconfig/liboop*
%exclude %{_libdir}/liboop.la

%changelog
* Thu Dec 27 2007 - crrodriguez@suse.de
- fix library-without-ldconfig-post* errors
- remove useless "la" file
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Feb 09 2005 - lmuelle@suse.de
- Update to version 1.0.
- Split off liboop-devel sub package.