From 5834526532d09d03ad07d539b9772f0bdb85b360 Mon Sep 17 00:00:00 2001 From: Gilver Date: Sat, 15 Mar 2025 21:38:53 -0500 Subject: [PATCH] feat(pbcli): Enable uniffi support and package development files (#3953) * Attempt to enable optional features Signed-off-by: Gilver * Update licenses, package development files Signed-off-by: Gilver * Changelog Signed-off-by: Gilver --------- Signed-off-by: Gilver --- anda/misc/pbcli/pbcli.spec | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/anda/misc/pbcli/pbcli.spec b/anda/misc/pbcli/pbcli.spec index 7506f47766..79d8b19eef 100644 --- a/anda/misc/pbcli/pbcli.spec +++ b/anda/misc/pbcli/pbcli.spec @@ -3,10 +3,10 @@ pbcli is a command line client which allows to upload and download pastes from p Name: pbcli Version: 2.8.0 -Release: 2%?dist +Release: 3%?dist Summary: A PrivateBin commandline upload and download utility SourceLicense: Unlicense OR MIT -License: (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND ((Apache-2.0 OR MIT) AND BSD-3-Clause) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND ISC AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR Zlib) AND (MIT OR Zlib OR Apache-2.0) AND MPL-2.0 AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT) +License: ((Apache-2.0 OR MIT) AND BSD-3-Clause) AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 AND ISC) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND Apache-2.0 AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND ISC AND (MIT OR Apache-2.0 OR Zlib) AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND MIT AND MPL-2.0 AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT) URL: https://github.com/Mydayyy/%{name} Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: anda-srpm-macros @@ -23,17 +23,25 @@ Packager: Gilver E. %description %_description +%package devel +Summary: Development libraries for %{name} +Requires: %{name} + +%description devel +This package contains the development files for %{name}. + %prep %autosetup -n %{name}-%{version} %cargo_prep_online %build -%cargo_build -%{cargo_license_online} > LICENSE.dependencies +%cargo_build -f uniffi +%{cargo_license_online -f uniffi} > LICENSE.dependencies %install install -Dm755 target/rpm/%{name} %{buildroot}%{_bindir}/%{name} install -Dm755 target/rpm/lib%{name}.so %{buildroot}%{_libdir}/lib%{name}.so +install -Dm644 target/rpm/lib%{name}.a %{buildroot}%{_libdir}/lib%{name}.a %files %doc README.md @@ -41,8 +49,14 @@ install -Dm755 target/rpm/lib%{name}.so %{buildroot}%{_libdir}/lib%{name}.so %license LICENSE-UNLICENSE %license LICENSE.dependencies %{_bindir}/%{name} + +%files devel +%{_libdir}/lib%{name}.a %{_libdir}/lib%{name}.so %changelog +* Sat Mar 14 2025 Gilver E. +- Enable uniffi support +- Package development files * Sat Dec 21 2024 Gilver E. - Initial package