forked from pool/twinkle
- Use %autosetup macro. Allows to eliminate the usage of deprecated %patchN OBS-URL: https://build.opensuse.org/request/show/1151857 OBS-URL: https://build.opensuse.org/package/show/network:telephony/twinkle?expand=0&rev=76
96 lines
2.6 KiB
RPMSpec
96 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package twinkle
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: twinkle
|
|
Version: 1.10.3
|
|
Release: 0
|
|
Summary: A SIP Soft Phone
|
|
License: GPL-2.0-or-later
|
|
Group: Productivity/Telephony/SIP/Clients
|
|
URL: https://twinkle.dolezel.info/
|
|
Source: https://github.com/LubosD/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
BuildRequires: alsa-devel
|
|
BuildRequires: bison
|
|
BuildRequires: cmake
|
|
BuildRequires: fdupes
|
|
BuildRequires: file-devel
|
|
BuildRequires: flex
|
|
BuildRequires: ilbc-devel
|
|
BuildRequires: libgsm-devel
|
|
BuildRequires: libqt5-qtbase-devel
|
|
BuildRequires: libqt5-qttools-devel
|
|
BuildRequires: libsndfile-devel
|
|
BuildRequires: libzrtpcpp-devel >= 2.0.0
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: readline-devel
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: pkgconfig(Qt5Quick)
|
|
BuildRequires: pkgconfig(commoncpp)
|
|
BuildRequires: pkgconfig(libbcg729)
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(speex)
|
|
BuildRequires: pkgconfig(speexdsp)
|
|
Requires(post): update-desktop-files
|
|
Requires(postun): update-desktop-files
|
|
|
|
Patch1: Add-support-for-the-new-bcg729-API-introduced-in-ver.patch
|
|
|
|
%description
|
|
Twinkle is a SIP-based soft phone for making telephone calls over IP
|
|
networks.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake \
|
|
-DWITH_ZRTP=ON \
|
|
-DWITH_SPEEX=ON \
|
|
-DWITH_ILBC=ON \
|
|
-DWITH_GSM=ON \
|
|
-DWITH_G729=ON \
|
|
-DWITH_ALSA=ON \
|
|
-DWITH_QT5=ON
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%cmake_install
|
|
install -d 755 %{buildroot}%{_datadir}/pixmaps
|
|
%suse_update_desktop_file -c twinkle Twinkle "SIP VoIP Phone" twinkle twinkle Network Telephony
|
|
%fdupes %{buildroot}%{_prefix}
|
|
|
|
%post
|
|
%desktop_database_post
|
|
|
|
%postun
|
|
%desktop_database_postun
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc AUTHORS README.md
|
|
%license COPYING
|
|
%{_bindir}/twinkle
|
|
%{_bindir}/twinkle-console
|
|
%{_datadir}/%{name}
|
|
%{_datadir}/pixmaps/twinkle.png
|
|
%{_datadir}/icons/hicolor
|
|
%{_datadir}/applications/twinkle.desktop
|
|
%{_mandir}/man1/twinkle.1.gz
|
|
|
|
%changelog
|