belle-sip.spec.in 1.5 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
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
16 17
Belle-sip is an object oriented SIP stack, written in C, used by Linphone.

jehan's avatar
jehan committed
18

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

jehan's avatar
jehan committed
21 22 23 24 25 26 27 28 29 30 31 32 33
%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 \
34
	--disable-tests --enable-static --docdir=%{_docdir}
jehan's avatar
jehan committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
%__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


50
%files
jehan's avatar
jehan committed
51
%defattr(-,root,root)
52
%doc AUTHORS ChangeLog COPYING NEWS README
jehan's avatar
jehan committed
53 54 55 56 57 58 59 60 61 62 63 64 65
%{_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.