mirror of
https://abf.rosa.ru/djam/libtgvoip.git
synced 2025-02-23 18:02:53 +00:00
Fix package naming
This commit is contained in:
parent
9ed93eca61
commit
e077493d45
1 changed files with 35 additions and 14 deletions
|
@ -1,3 +1,9 @@
|
|||
%define debug_package %{nil}
|
||||
|
||||
%define major 2.2
|
||||
%define libname %mklibname tgvoip %{major}
|
||||
%define develname %mklibname -d tgvoip
|
||||
|
||||
Name: libtgvoip
|
||||
Version: 2.2
|
||||
Release: 1
|
||||
|
@ -13,17 +19,39 @@ BuildRequires: opus-devel
|
|||
BuildRequires: pulseaudio-devel
|
||||
BuildRequires: cmake
|
||||
BuildRequires: make
|
||||
BuildRequires: python-gyp
|
||||
BuildRequires: gyp
|
||||
|
||||
%description
|
||||
%{summary}
|
||||
|
||||
%package devel
|
||||
#--------------------------------------------------------
|
||||
|
||||
%package -n %{libname}
|
||||
Summary: VoIP library for Telegram clients
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{libname}
|
||||
VoIP library for Telegram clients
|
||||
|
||||
%files -n %{libname}
|
||||
%doc UNLICENSE
|
||||
%{_libdir}/*.so*
|
||||
|
||||
#--------------------------------------------------------
|
||||
|
||||
%package -n %{develname}
|
||||
Summary: VoIP library for Telegram clients
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{develname}
|
||||
This package provides headers files for development.
|
||||
|
||||
%files -n %{develname}
|
||||
%doc UNLICENSE
|
||||
%{_includedir}/%{name}
|
||||
|
||||
#--------------------------------------------------------
|
||||
|
||||
%description devel
|
||||
%{summary}
|
||||
This package provides headers files for development.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p0
|
||||
|
@ -34,7 +62,7 @@ gyp --format=cmake --depth=. --generator-output=. -Goutput_dir=out -Gconfig=Rele
|
|||
|
||||
cd out/Release
|
||||
cmake .
|
||||
make
|
||||
%make
|
||||
cd ../..
|
||||
|
||||
%install
|
||||
|
@ -46,10 +74,3 @@ mkdir --parents "%{buildroot}%{_includedir}/%{name}/audio"
|
|||
find . -maxdepth 1 -type f -name "*.h" -exec install --mode 0644 --preserve-timestamps '{}' %{buildroot}%{_includedir}/%{name} \;
|
||||
find audio -maxdepth 1 -type f -name "*.h" -exec install --mode 0644 --preserve-timestamps '{}' %{buildroot}%{_includedir}/%{name}/audio \;
|
||||
|
||||
%files
|
||||
%doc UNLICENSE
|
||||
%{_libdir}/*.so*
|
||||
|
||||
%files devel
|
||||
%doc UNLICENSE
|
||||
%{_includedir}/%{name}
|
||||
|
|
Loading…
Add table
Reference in a new issue