File libident.spec of Package libident
Name: libident
Version: 0.32
Release: 0
%define soname 0
License: Public Domain
Group: Development/Libraries/C and C++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: make gcc-c++
URL: http://www.remlab.net/libident/
Source: http://www.remlab.net/files/libident/libident-%{version}.tar.bz2
Summary: Ident protocol client library
Requires: libident-devel = %{version}
%description
A client library for the ident protocol (RFC 1413).
%package -n libident%{soname}
Summary: Ident (RFC 1413) Protocol Client Library
Group: System/Libraries
%description -n libident%{soname}
A client library for the ident protocol (RFC 1413).
%package devel
Summary: Ident (RFC 1413) Protocol Client Library
Group: Development/Libraries/C and C++
Requires: libident%{soname} = %{version}
%description devel
A client library for the ident protocol (RFC 1413).
%prep
%setup -q
%build
%configure
%__make %{?_smp_flags}
%install
%makeinstall
%__rm "%{buildroot}%{_libdir}"/*.la
%post -n libident%{soname} -p /sbin/ldconfig
%postun -n libident%{soname} -p /sbin/ldconfig
%files -n libident%{soname}
%defattr(-,root,root,-)
%doc README NEWS AUTHORS ChangeLog
%{_libdir}/libident.so.%{soname}
%{_libdir}/libident.so.%{soname}.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/ident.h
%{_libdir}/libident.a
%{_libdir}/libident.so
%doc %{_mandir}/man3/ident.3%{ext_man}