Something went wrong. Try again.
Something went wrong. Try again.
3.6 kB · 131 lines
at 43
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132%global _description %{expand:pbcli is a command line client which allows to upload and download pastes from privatebin directly from the command line.}
Name: pbcliVersion: 2.8.0Release: 2%?distSummary: A PrivateBin commandline upload and download utilitySourceLicense: Unlicense OR MITLicense: ((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.gzSource1: configPatch0: 0001-add-url-shortener-support.patchExclusiveArch: x86_64
BuildRequires: cargo-rpm-macros >= 24BuildRequires: moldBuildRequires: openssl-libsBuildRequires: perl-ExtUtils-MM-UtilsBuildRequires: perl-FindBinBuildRequires: perl-File-CompareBuildRequires: perl-File-CopyBuildRequires: perl-IPC-CmdBuildRequires: perl-libPackager: Gilver E. <rockgrub@disroot.org>
%description %_description
%package nobaraSummary: paste.nobaraproject.org config fileRequires: %{name}
%description nobara%summary.
%package develSummary: Development libraries for %{name}Requires: %{name}
%description develThis package contains the development files for %{name}.
%prep%autosetup -n pbcli-%version -p1set -eu%{__mkdir} -p .cargocat > .cargo/config << EOF[profile.rpm]inherits = "release"opt-level = 3codegen-units = 1debug = 2strip = "none"
[build]rustc = "%{__rustc}"rustdoc = "%{__rustdoc}"
[env]CFLAGS = "%{build_cflags}"CXXFLAGS = "%{build_cxxflags}"LDFLAGS = "%{build_ldflags}"
[install]root = "%{buildroot}%{_prefix}"
[term]verbose = true
[source]
[source.local-registry]directory = "%{cargo_registry}"
EOF%{__rm} -f Cargo.toml.orig %global build_rustflags %build_rustflags %[%{with mold} ? "-C link-arg=-fuse-ld=mold" : ""]
%build%cargo_buildset -euo pipefail%{shrink: %{__cargo} tree -Z avoid-dev-deps --workspace --edges no-build,no-dev,no-proc-macro --no-dedupe --target all %{__cargo_parse_opts %{-n} %{-a} %{-f:-f%{-f*}}} --prefix none --format "{l}: {p}" | sed -e "s: ($(pwd)[^)]*)::g" -e "s: / :/:g" -e "s:/: OR :g" | sort -u} > LICENSE.dependencies
%installinstall -Dm755 target/rpm/%{name} %{buildroot}%{_bindir}/%{name}install -Dm755 target/rpm/lib%{name}.so %{buildroot}%{_libdir}/lib%{name}.soinstall -Dm644 target/rpm/lib%{name}.a %{buildroot}%{_libdir}/lib%{name}.amkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/configln -sf %_bindir/pbcli %{buildroot}%{_bindir}/eggpasteln -sf %_bindir/pbcli %{buildroot}%{_bindir}/npaste
%files%doc README.md%license LICENSE-MIT%license LICENSE-UNLICENSE%license LICENSE.dependencies%{_bindir}/%{name}
%files devel%{_libdir}/lib%{name}.a%{_libdir}/lib%{name}.so
%files nobara%{_sysconfdir}/%{name}/config%_bindir/eggpaste%_bindir/npaste
%changelog* Sat Mar 15 2025 Gilver E. <rockgrub@disroot.org>- Enable uniffi support- Package development files
* Tue Feb 11 2025 LionHeartP <LionHeartP@proton.me>- Adapt for Nobara
* Sat Dec 21 2024 Gilver E. <rockgrub@disroot.org>- Initial package