Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packaging template #136

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions packaging/kryoptic.spec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Generated by rust2rpm 26
%bcond_without check
# Generated by rust2rpm 27
%bcond check 1

# the only binary we provide now is conformance, which does not do anything useful
%global cargo_install_bin 0
# prevent library files from being installed
%global cargo_install_lib 0

%global revision 1416ec9d4b751c21dc66ad5c66595c422665bf6d
%global short_revision 1416ec9d
%global revision_date 20240917
%global revision 6166f28a939242ee454fc846de5ed87d2ac5a69c
%global short_revision 6166f28a
%global revision_date 20241219

Name: kryoptic
Version: 0.1.0^%{revision_date}.git%{short_revision}
Expand Down Expand Up @@ -44,20 +44,20 @@ A PKCS #11 software token written in Rust.}
%cargo_prep

%generate_buildrequires
%cargo_generate_buildrequires -f standard,dynamic
%cargo_generate_buildrequires -f dynamic,nssdb,standard

%build
CONFDIR=%{_sysconfdir} %cargo_build -f standard,dynamic
%{cargo_license_summary -f standard,dynamic}
%{cargo_license -f standard,dynamic} > LICENSE.dependencies
CONFDIR=%{_sysconfdir} %cargo_build -f dynamic,nssdb,standard
%{cargo_license_summary -f dynamic,nssdb,standard}
%{cargo_license -f dynamic,nssdb,standard} > LICENSE.dependencies

%install
%cargo_install -f standard,dynamic
%cargo_install -f dynamic,nssdb,standard
install -Dp target/rpm/libkryoptic_pkcs11.so $RPM_BUILD_ROOT/%{_libdir}/libkryoptic_pkcs11.so

%if %{with check}
%check
%cargo_test -f standard,dynamic
%cargo_test -f dynamic,nssdb,standard
%endif

%files
Expand Down
2 changes: 1 addition & 1 deletion packaging/rust2rpm.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cargo-install-lib = true
cargo-install-bin = false

[features]
enable = ["dynamic"]
enable = ["standard", "dynamic", "nssdb"]

[requires]
build = ["openssl-devel"]
Expand Down