File libss7.spec of Package libss7
%define realname libss7
%define realver 2.0.0
%define srcext tar.gz
# turn off the generation of debuginfo rpm (RH9) ??
%global debug_package %{nil}
%define so_ver 2
%define pkg_suff -2_0
# Common info
Name: %{realname}%{?pkg_suff}
Version: %{realver}
Release: wiz%{?extraver:0.}1%{?dist}
License: GPL-2.0
Group: Productivity/Networking/Other
URL: http://www.asterisk.org/downloads/libss7
Summary: Signaling System 7 protocol library
# Build-time parameters
BuildRoot: %{_tmppath}/%{name}-root
Source: http://downloads.asterisk.org/pub/telephony/%{realname}/%{realname}-%{realver}%{?extraver:%{extraver}}.%{srcext}
%description
libss7 is a userspace library that is used for providing SS7 protocol
services to applications. It has a working MTP2, MTP3, and ISUP for
ITU and ANSI style SS7, however it was written in a manner that will easily
allow support for other various national specific variants
in the future. For a working reference implementation, see the various
link test programs, as well as the Asterisk Open Source PBX.
%package -n %{realname}-devel
Group: Development/Libraries/Other
Summary: Development stuff for %{name}
Provides: %{name}-devel = %{version}
Requires: %{name} = %{version}
%description -n %{realname}-devel
Development stuff for %{name}
# Preparation step (unpackung and patching if necessary)
%prep
%setup -q -n %{realname}-%{realver}%{?extraver:%{extraver}}
%build
%{__make} %{?_smp_mflags} \
INSTALL_BASE=%{_prefix} \
libdir=%{_libdir} \
CFLAGS="%{optflags} -fPIC"
%install
%{__make} install DESTDIR=%{buildroot} \
INSTALL_BASE=%{_prefix} \
libdir=%{_libdir}
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc LICENSE README
%{_libdir}/libss7.so.%{?so_ver}*
# Development stuff
%files -n %{realname}-devel
%defattr(-,root,root)
%{_includedir}/libss7.h
%{_libdir}/libss7.so
%exclude %{_libdir}/libss7.a
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog