From: Jacek Konieczny Date: Fri, 6 Jun 2014 14:22:13 +0000 (+0200) Subject: new package X-Git-Tag: auto/th/belle-sip-1.3.0-2~5 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fbelle-sip.git;a=commitdiff_plain;h=4d971c61d0a1276131c69482f85606a2458d27b0 new package --- 4d971c61d0a1276131c69482f85606a2458d27b0 diff --git a/antlr_jar.patch b/antlr_jar.patch new file mode 100644 index 0000000..2cb8518 --- /dev/null +++ b/antlr_jar.patch @@ -0,0 +1,25 @@ +diff -dur belle-sip-1.3.0.orig/configure.ac belle-sip-1.3.0/configure.ac +--- belle-sip-1.3.0.orig/configure.ac 2014-02-19 14:36:36.000000000 +0100 ++++ belle-sip-1.3.0/configure.ac 2014-06-06 15:08:46.000000000 +0200 +@@ -150,12 +150,6 @@ + + for antlr_java_prefix in $antlr_java_prefixes + do +- antlr_jar=$antlr_java_prefix/antlr.jar +- if test -f $antlr_jar ; then +- break +- else +- antlr_jar=no +- fi + antlr_jar=$antlr_java_prefix/antlr3.jar + if test -f $antlr_jar ; then + break +@@ -164,7 +158,7 @@ + fi + done + if test $antlr_jar = "no" ; then +- AC_MSG_ERROR([Could not find antlr.jar. Please install antlr3 ]) ++ AC_MSG_ERROR([Could not find antlr3.jar. Please install antlr3 ]) + fi + AC_PATH_PROG([JAVA],[java],[no]) + if test $JAVA = "no" ; then diff --git a/belle-sip.spec b/belle-sip.spec new file mode 100644 index 0000000..b402771 --- /dev/null +++ b/belle-sip.spec @@ -0,0 +1,103 @@ +# +# Conditional build: +%bcond_without static_libs # don't build static libraries +%bcond_with tests # enable tests +# +Summary: SIP (RFC3261) object-oriented implementation in C +Summary(pl.UTF-8): Implementacja SIP (RFC3261) w C +Name: belle-sip +Version: 1.3.0 +Release: 0.1 +License: GPL v2 +Group: Libraries +Source0: http://download-mirror.savannah.gnu.org/releases/linphone/belle-sip/%{name}-%{version}.tar.gz +# Source0-md5: ae9e8be12f62552a5376edd66b0265d9 +Patch0: antlr_jar.patch +URL: http://www.linphone.org/ +%{?with_tests:BuildRequires: CUnit >= 2.0} +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: java +BuildRequires: java-antlr3 >= 3.2 +BuildRequires: libantlr3c-devel >= 3.2 +BuildRequires: libtool +BuildRequires: polarssl-devel >= 1.2 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Belle-sip is a SIP (RFC3261) implementation written in C, with an +object oriente d API. + +%package devel +Summary: Header files for %{name} library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for %{name} library. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki %{name}. + +%package static +Summary: Static %{name} library +Summary(pl.UTF-8): Statyczna biblioteka %{name} +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static %{name} library. + +%description static -l pl.UTF-8 +Statyczna biblioteka %{name}. + +%prep +%setup -q +%patch0 -p1 + +%build +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} +%configure \ + CFLAGS="%{rpmcflags} -Wno-error=pragmas" \ + %{!?with_static_libs:--disable-static} + +%{__make} V=1 + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install V=1 \ + DESTDIR=$RPM_BUILD_ROOT + +rm $RPM_BUILD_ROOT%{_libdir}/libbellesip.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc AUTHORS NEWS README +%attr(755,root,root) %{_libdir}/libbellesip.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libbellesip.so.0 + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libbellesip.so +%{_includedir}/%{name} +%{_pkgconfigdir}/%{name}.pc + +%if %{with static_libs} +%files static +%defattr(644,root,root,755) +%{_libdir}/libbellesip.a +%endif