Initial import (#2087499)
This commit is contained in:
parent
88bb1a17ab
commit
e23d05eb12
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/rpm-sequoia-1.0.1.crate
|
33
LICENSE.dependencies
Normal file
33
LICENSE.dependencies
Normal file
@ -0,0 +1,33 @@
|
||||
Apache-2.0 OR MIT: lalrpop-util v0.19.8
|
||||
BSL-1.0: xxhash-rust v0.8.6
|
||||
LGPL-2.0-or-later: buffered-reader v1.1.3
|
||||
LGPL-2.0-or-later: rpm-sequoia v1.0.1
|
||||
LGPL-2.0-or-later: sequoia-openpgp v1.10.0
|
||||
LGPL-3.0 OR GPL-2.0 OR GPL-3.0: nettle v7.2.0
|
||||
LGPL-3.0 OR GPL-2.0 OR GPL-3.0: nettle-sys v2.1.0
|
||||
MIT OR Apache-2.0 OR Zlib: tinyvec_macros v0.1.0
|
||||
MIT OR Apache-2.0: anyhow v1.0.65
|
||||
MIT OR Apache-2.0: base64 v0.13.0
|
||||
MIT OR Apache-2.0: cfg-if v1.0.0
|
||||
MIT OR Apache-2.0: chrono v0.4.22
|
||||
MIT OR Apache-2.0: digest v0.9.0
|
||||
MIT OR Apache-2.0: dyn-clone v1.0.9
|
||||
MIT OR Apache-2.0: getrandom v0.2.7
|
||||
MIT OR Apache-2.0: idna v0.2.3
|
||||
MIT OR Apache-2.0: lazy_static v1.4.0
|
||||
MIT OR Apache-2.0: libc v0.2.134
|
||||
MIT OR Apache-2.0: num-integer v0.1.45
|
||||
MIT OR Apache-2.0: num-traits v0.2.15
|
||||
MIT OR Apache-2.0: regex v1.6.0
|
||||
MIT OR Apache-2.0: regex-syntax v0.6.27
|
||||
MIT OR Apache-2.0: thiserror v1.0.34
|
||||
MIT OR Apache-2.0: typenum v1.15.0
|
||||
MIT OR Apache-2.0: unicode-bidi v0.3.8
|
||||
MIT OR Apache-2.0: unicode-normalization v0.1.22
|
||||
MIT: generic-array v0.14.6
|
||||
MIT: matches v0.1.9
|
||||
MIT: memsec v0.6.2
|
||||
MIT: sha1collisiondetection v0.2.6
|
||||
Unlicense OR MIT: aho-corasick v0.7.19
|
||||
Unlicense OR MIT: memchr v2.5.0
|
||||
Zlib OR Apache-2.0 OR MIT: tinyvec v1.6.0
|
85
rust-rpm-sequoia.spec
Normal file
85
rust-rpm-sequoia.spec
Normal file
@ -0,0 +1,85 @@
|
||||
# Not generated by rust2rpm 22
|
||||
# https://pagure.io/fedora-rust/rust2rpm/issue/125
|
||||
%bcond_without check
|
||||
|
||||
%global crate rpm-sequoia
|
||||
|
||||
Name: rust-rpm-sequoia
|
||||
Version: 1.0.1
|
||||
Release: %autorelease
|
||||
Summary: Implementation of the RPM PGP interface using Sequoia
|
||||
|
||||
License: LGPL-2.0-or-later
|
||||
URL: https://crates.io/crates/rpm-sequoia
|
||||
Source0: %{crates_source}
|
||||
Source1: LICENSE.dependencies
|
||||
|
||||
ExclusiveArch: %{rust_arches}
|
||||
|
||||
BuildRequires: rust-packaging >= 21
|
||||
|
||||
%global _description %{expand:
|
||||
Implementation of the RPM PGP interface using Sequoia.}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n %{crate}
|
||||
Summary: %{summary}
|
||||
# Apache-2.0 OR MIT
|
||||
# BSL-1.0
|
||||
# LGPL-2.0-or-later
|
||||
# LGPL-3.0 OR GPL-2.0 OR GPL-3.0
|
||||
# MIT
|
||||
# MIT OR Apache-2.0
|
||||
# MIT OR Apache-2.0 OR Zlib
|
||||
# Unlicense OR MIT
|
||||
# Zlib OR Apache-2.0 OR MIT
|
||||
License: LGPL-3.0 AND BSL-1.0 AND MIT
|
||||
# LICENSE.dependencies contains a full license breakdown
|
||||
|
||||
%description -n %{crate} %{_description}
|
||||
|
||||
%files -n %{crate}
|
||||
%license LICENSE.txt
|
||||
%license LICENSE.dependencies
|
||||
%doc README.md
|
||||
%{_libdir}/librpm_sequoia.so.1
|
||||
|
||||
%package -n %{crate}-devel
|
||||
Summary: %{summary}
|
||||
Requires: %{crate}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n %{crate}-devel %{_description}
|
||||
|
||||
%files -n %{crate}-devel
|
||||
%{_libdir}/librpm_sequoia.so
|
||||
%{_libdir}/pkgconfig/rpm-sequoia.pc
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
cp -pav %{SOURCE1} .
|
||||
%cargo_prep
|
||||
|
||||
%generate_buildrequires
|
||||
%cargo_generate_buildrequires
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
|
||||
%install
|
||||
# install shared library
|
||||
mkdir -p %{buildroot}/%{_libdir}
|
||||
cp -pav target/release/librpm_sequoia.so %{buildroot}/%{_libdir}/librpm_sequoia.so.1
|
||||
# create unversioned symlink
|
||||
ln -s librpm_sequoia.so.1 %{buildroot}/%{_libdir}/librpm_sequoia.so
|
||||
# install pkg-config file
|
||||
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
|
||||
cp -pav target/release/rpm-sequoia.pc %{buildroot}/%{_libdir}/pkgconfig/
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
Loading…
Reference in New Issue
Block a user