belle-sip.spec.in 1.49 KB
Newer Older
jehan's avatar
jehan committed
1 2 3 4 5 6
# -*- rpm-spec -*-

## rpmbuild options

Name:           belle-sip
Version:        @VERSION@
jehan's avatar
jehan committed
7
Release:        %(version=`git describe --tags --abbrev=40 | sed -rn 's/^.*-([0-9]+)-g[a-z0-9]{40}$/\1/p'` && if test -z "$version" ; then echo 0 ; else echo $version ; fi)%{?dist}
jehan's avatar
jehan committed
8 9 10 11 12 13 14 15 16 17
Summary:        Linphone sip stack

Group:          Applications/Communications
License:        GPL
URL:            http://www.belle-sip.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: 	%{name}-%{version}.tar.gz
%description
Belle-sip is an object oriented c written SIP stack used by Linphone.

18
BuildRequires: antlr3-tool antlr3-C-devel
19

jehan's avatar
jehan committed
20 21 22 23 24 25 26 27 28 29 30 31 32
%package devel
Summary:       Development libraries for belle-sip
Group:         Development/Libraries
Requires:      %{name} = %{version}-%{release}

%description    devel
Libraries and headers required to develop software with belle-sip

%prep
%setup -q

%build
%configure \
33
	--disable-tests --enable-static --docdir=%{_docdir}
jehan's avatar
jehan committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
%__make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


49
%files
jehan's avatar
jehan committed
50
%defattr(-,root,root)
51
%doc AUTHORS ChangeLog COPYING NEWS README
jehan's avatar
jehan committed
52 53 54 55 56 57 58 59 60 61 62 63 64
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/belle-sip
%{_libdir}/libbellesip.a
%{_libdir}/libbellesip.la
%{_libdir}/libbellesip.so
%{_libdir}/pkgconfig/belle-sip.pc

%changelog
* Mon Aug 19 2013 jehan.monnier <jehan.monnier@linphone.org>
- Initial RPM release.