]> git.pld-linux.org Git - packages/bzrtp.git/blame - bzrtp.spec
- updated to 4.4.0 (GPL v3+ now)
[packages/bzrtp.git] / bzrtp.spec
CommitLineData
ff5ec0a1
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4#
5Summary: Open source implementation of ZRTP keys exchange protocol
6Summary(pl.UTF-8): Mająca otwarte źródła implementacja protokołu wymiany kluczy ZRTP
7Name: bzrtp
1e49e9a9
JB
8Version: 4.4.0
9Release: 1
10License: GPL v3+
ff5ec0a1 11Group: Libraries
1e49e9a9
JB
12#Source0Download: https://gitlab.linphone.org/BC/public/bzrtp/tags
13Source0: https://gitlab.linphone.org/BC/public/bzrtp/-/archive/%{version}/%{name}-%{version}.tar.bz2
14# Source0-md5: 981738ec9161c2a4c5220605ed4cbb71
ff5ec0a1
JB
15URL: http://www.linphone.org/
16BuildRequires: CUnit
17BuildRequires: autoconf >= 2.63
18BuildRequires: automake
1e49e9a9 19BuildRequires: bctoolbox-devel >= 4.4.0
ff5ec0a1
JB
20BuildRequires: libtool >= 2:2
21BuildRequires: libxml2-devel >= 2.0
ff5ec0a1 22BuildRequires: pkgconfig
1e49e9a9 23BuildRequires: rpmbuild(macros) >= 1.748
867d29df 24BuildRequires: sqlite3-devel >= 3.6.0
1e49e9a9 25Requires: bctoolbox >= 4.4.0
867d29df 26Requires: sqlite3 >= 3.6.0
ff5ec0a1
JB
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30bzrtp is an opensource implementation of ZRTP keys exchange protocol.
31The library written in C 89 is fully portable and can be executed on
32many platforms including both ARM processor and x86.
33
34%description -l pl.UTF-8
35bzrtp to mająca otwarte źródła implementacja protokołu wymiany kluczy
36ZRTP. Napisana w C 89 biblioteka jest w pełni przenośna i może być
37wykonywana na wielu platformach, w tym ARM oraz x86.
38
39%package devel
40Summary: Header file for bzrtp library
41Summary(pl.UTF-8): Plik nagłówkowy biblioteki bzrtp
42Group: Development/Libraries
43Requires: %{name} = %{version}-%{release}
44
45%description devel
46Header file for bzrtp library.
47
48%description devel -l pl.UTF-8
49Plik nagłówkowy biblioteki bzrtp.
50
51%package static
52Summary: Static bzrtp library
53Summary(pl.UTF-8): Statyczna biblioteka bzrtp
54Group: Development/Libraries
55Requires: %{name}-devel = %{version}-%{release}
56
57%description static
58Static bzrtp library.
59
60%description static -l pl.UTF-8
61Statyczna biblioteka bzrtp.
62
63%prep
64%setup -q
65
66%build
67# rebuild ac/am/lt for as-needed to work
68%{__libtoolize}
69%{__aclocal} -I m4
70%{__autoconf}
71%{__automake}
1e49e9a9 72%if %{_ver_ge "%{cc_version}" "8.0"}
867d29df
JB
73CPPFLAGS="%{rpmcppflags} -Wno-error=cast-function-type"
74%endif
ff5ec0a1
JB
75%configure \
76 --disable-silent-rules \
77 %{?with_static_libs:--enable-static}
78
79%{__make}
80
81%install
82rm -rf $RPM_BUILD_ROOT
83
84%{__make} install \
85 DESTDIR=$RPM_BUILD_ROOT
86
87# obsoleted by pkg-config
88%{__rm} $RPM_BUILD_ROOT%{_libdir}/libbzrtp.la
89
90%clean
91rm -rf $RPM_BUILD_ROOT
92
93%post -p /sbin/ldconfig
94%postun -p /sbin/ldconfig
95
96%files
97%defattr(644,root,root,755)
1e49e9a9 98%doc CHANGELOG.md README.md
ff5ec0a1
JB
99%attr(755,root,root) %{_libdir}/libbzrtp.so.*.*.*
100%attr(755,root,root) %ghost %{_libdir}/libbzrtp.so.0
101
102%files devel
103%defattr(644,root,root,755)
104%attr(755,root,root) %{_libdir}/libbzrtp.so
105%{_includedir}/bzrtp
106%{_pkgconfigdir}/libbzrtp.pc
107
108%if %{with static_libs}
109%files static
110%defattr(644,root,root,755)
111%{_libdir}/libbzrtp.a
112%endif
This page took 0.096339 seconds and 4 git commands to generate.