mirror of
https://abf.rosa.ru/djam/libtgvoip.git
synced 2025-02-24 02:12:52 +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
|
Name: libtgvoip
|
||||||
Version: 2.2
|
Version: 2.2
|
||||||
Release: 1
|
Release: 1
|
||||||
|
@ -13,17 +19,39 @@ BuildRequires: opus-devel
|
||||||
BuildRequires: pulseaudio-devel
|
BuildRequires: pulseaudio-devel
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: python-gyp
|
BuildRequires: gyp
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
%package devel
|
#--------------------------------------------------------
|
||||||
|
|
||||||
%description devel
|
%package -n %{libname}
|
||||||
%{summary}
|
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.
|
This package provides headers files for development.
|
||||||
|
|
||||||
|
%files -n %{develname}
|
||||||
|
%doc UNLICENSE
|
||||||
|
%{_includedir}/%{name}
|
||||||
|
|
||||||
|
#--------------------------------------------------------
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p0
|
%patch0 -p0
|
||||||
|
@ -34,7 +62,7 @@ gyp --format=cmake --depth=. --generator-output=. -Goutput_dir=out -Gconfig=Rele
|
||||||
|
|
||||||
cd out/Release
|
cd out/Release
|
||||||
cmake .
|
cmake .
|
||||||
make
|
%make
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
%install
|
%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 . -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 \;
|
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