From 7b0c6089c3f8673f7132a20af396de70201d16f4 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:28:26 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.0.20201223git-1mamba;Wed Dec 23 2020] --- README.md | 2 ++ tg_owt.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 tg_owt.spec diff --git a/README.md b/README.md index cbf3655..cfebb3b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # tg_owt +WebRTC library static linked for Telegram. + diff --git a/tg_owt.spec b/tg_owt.spec new file mode 100644 index 0000000..88e071e --- /dev/null +++ b/tg_owt.spec @@ -0,0 +1,75 @@ +Name: tg_owt +Version: 0.0.20201223git +Release: 1mamba +Summary: WebRTC library static linked for Telegram +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/desktop-app/tg_owt.git +Source: https://github.com/desktop-app/tg_owt.git/master/tg_owt-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires(post): %{__install_info} +Requires(preun): %{__install_info} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +WebRTC library static linked for Telegram. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +#% debug_package + +%prep +%setup -q + +%build +%cmake -d build \ + -DBUILD_SHARED_LIBS=OFF + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +#%files +#%defattr(-,root,root) + +#%files -n lib%{name} +#%defattr(-,root,root) + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/tg_owt +%{_includedir}/tg_owt/* +%dir %{_libdir}/cmake/tg_owt +%{_libdir}/cmake/tg_owt/tg_owt*.cmake +%{_libdir}/libtg_owt.a + +%changelog +* Wed Dec 23 2020 Silvan Calarco 0.0.20201223git-1mamba +- package created using the webbuild interface