mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-21 04:38:29 +00:00
102 lines
2.7 KiB
RPMSpec
Executable file
102 lines
2.7 KiB
RPMSpec
Executable file
# -*- rpm-spec -*-
|
|
|
|
## rpmbuild options
|
|
# These 2 lines are here because we can build the RPM for flexisip, in which
|
|
# case we prefix the entire installation so that we don't break compatibility
|
|
# with the user's libs.
|
|
# To compile with bc prefix, use rpmbuild -ba --with bc [SPEC]
|
|
%define pkg_name %{?_with_bc:bc-liblinphone}%{!?_with_bc:liblinphone}
|
|
%{?_with_bc: %define _prefix /opt/belledonne-communications}
|
|
|
|
# re-define some directories for older RPMBuild versions which don't. This messes up the doc/ dir
|
|
# taken from https://fedoraproject.org/wiki/Packaging:RPMMacros?rd=Packaging/RPMMacros
|
|
%define _datarootdir %{_prefix}/share
|
|
%define _datadir %{_datarootdir}
|
|
%define _docdir %{_datadir}/doc
|
|
|
|
%define build_number @PROJECT_VERSION_BUILD@
|
|
|
|
|
|
|
|
Name: %{pkg_name}
|
|
Version: @PROJECT_VERSION@
|
|
Release: %build_number%{?dist}
|
|
Summary: Phone anywhere in the whole world by using the Internet
|
|
|
|
Group: Applications/Communications
|
|
License: GPL
|
|
URL: http://www.linphone.org
|
|
Source0: %{name}-%{version}-%{build_number}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
%description
|
|
liblinphone is the voip sdk used by Linphone
|
|
|
|
%define video %{?_without_video:0}%{!?_without_video:1}
|
|
|
|
|
|
%package devel
|
|
Summary: Development libraries for liblinphone
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
This package contains header files and development libraries needed to
|
|
develop programs using the liblinphone library.
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
%global cmake_name cmake3
|
|
%define ctest_name ctest3
|
|
%else
|
|
%global cmake_name cmake
|
|
%define ctest_name ctest
|
|
%endif
|
|
|
|
%prep
|
|
%setup -n %{name}-%{version}-%build_number
|
|
|
|
%build
|
|
%{expand:%%%cmake_name} . -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} -DCMAKE_PREFIX_PATH:PATH=%{_prefix} -DENABLE_VIDEO=%{video}
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
%check
|
|
#%{ctest_name} -V %{?_smp_mflags}
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog COPYING NEWS README.md TODO
|
|
%{_bindir}/linphonec
|
|
%{_bindir}/linphonecsh
|
|
%{_bindir}/lp-auto-answer
|
|
%{_bindir}/lp-test-ecc
|
|
%{_libdir}/*.so.*
|
|
#%{_mandir}/*
|
|
%{_datadir}/linphone
|
|
%{_datadir}/sounds/linphone
|
|
%{_datadir}/Linphone/rootca.pem
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_bindir}/*
|
|
%{_includedir}/linphone
|
|
%{_libdir}/*.a
|
|
%{_libdir}/*.so
|
|
#%{_docdir}
|
|
%{_datadir}/Linphone/cmake/*.cmake
|
|
%{_datadir}/liblinphone_tester
|
|
|
|
|
|
%changelog
|
|
* Thu Jul 13 2017 jehan.monnier <jehan.monnier@linphone.org>
|
|
- cmake port
|
|
* Mon Aug 19 2013 jehan.monnier <jehan.monnier@linphone.org>
|
|
- Initial RPM release.
|