Package libbelle-sip: Specfile

Name: libbelle-sip
Version: 1.6.3
Release: alt2
Summary: Linphone sip stack

Group: System/Libraries

Packager: Alexei Takaseev <taf@altlinux.ru>

License: GPL
Url: http://www.belle-sip.org
Source0: %name-%version.tar
Patch0: %name-%version-%release.patch
# Automatically added by buildreq on Thu Mar 02 2017
# optimized out: antlr3-C bcunit gnu-config java-1.8.0-openjdk-headless libstdc++-devel perl pkg-config python-base python3
BuildRequires: antlr3-C-devel java-devel libmbedtls-devel libbctoolbox-devel gcc5-c++ zlib-devel

BuildRequires: /proc rpm-build-java

%description
Belle-sip is an object oriented c written SIP stack used by Linphone.

%package devel
Summary: Development libraries for belle-sip
Group: Development/Other
Requires: %name = %version-%release

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

%prep
%setup
%patch0 -p1

%build

%set_gcc_version 5

./autogen.sh

./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin \
            --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share \
            --includedir=/usr/include --libdir=%_libdir \
            --libexecdir=/usr/lib --localstatedir=/var/lib \
            --sharedstatedir=/var/lib --mandir=/usr/share/man \
            --infodir=/usr/share/info --disable-static --with-antlr=%_builddir/%name-%version

sed -ri 's/^(hardcode_libdir_flag_spec|runpath_var)=.*/\1=/' libtool

make

%install

%makeinstall

%files
%doc AUTHORS ChangeLog COPYING NEWS README.md
%_libdir/*.so.*

%files devel
%_includedir/belle-sip
%_libdir/libbellesip.so
%_libdir/pkgconfig/belle-sip.pc

%changelog
* Wed Feb 21 2018 Alexei Takaseev <taf@altlinux.org> 1.6.3-alt2
- Add %%set_gcc_version 5 to %%build section

* Sat Jul 22 2017 Alexei Takaseev <taf@altlinux.org> 1.6.3-alt1
- 1.6.3

* Fri Mar 03 2017 Alexei Takaseev <taf@altlinux.org> 1.6.1-alt1
- 1.6.1

* Thu Mar 02 2017 Alexei Takaseev <taf@altlinux.org> 1.6.0-alt1
- 1.6.0

* Tue Aug 09 2016 Alexei Takaseev <taf@altlinux.org> 1.5.0-alt1
- 1.5.0
- Use system libmbedtls

* Mon Feb 15 2016 Alexei Takaseev <taf@altlinux.org> 1.4.2-alt2
- Add patch for antlr >= 3.4

* Tue Nov 03 2015 Alexei Takaseev <taf@altlinux.org> 1.4.2-alt1
- 1.4.2

* Thu Jul 30 2015 Alexei Takaseev <taf@altlinux.org> 1.4.1-alt3
- Disable system libmbedtls, use polarssl from linphone.org

* Wed Jun 24 2015 Alexei Takaseev <taf@altlinux.org> 1.4.1-alt2
- Rebuild with new libmbedtls-1.3.11

* Wed May 06 2015 Alexei Takaseev <taf@altlinux.org> 1.4.1-alt1
- 1.4.1

* Thu Mar 12 2015 Alexei Takaseev <taf@altlinux.org> 1.4.0-alt1
- 1.4.0

* Fri Sep 19 2014 Alexei Takaseev <taf@altlinux.org> 1.3.3-alt1
- 1.3.3

* Fri Aug 08 2014 Alexei Takaseev <taf@altlinux.org> 1.3.0-alt4
- Rebuild with polarssl-1.3.8

* Tue Apr 22 2014 Alexei Takaseev <taf@altlinux.org> 1.3.0-alt3
- Rebuild with polarssl-1.3.6

* Sat Mar 01 2014 Alexei Takaseev <taf@altlinux.org> 1.3.0-alt2
- Add TLS transport

* Tue Feb 25 2014 Alexei Takaseev <taf@altlinux.ru> 1.3.0-alt1
- Initial build for ALT Sisyphus

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