Skip to content

Commit

Permalink
Update packaging template
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje committed Dec 19, 2024
1 parent 6166f28 commit cf2751b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
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

0 comments on commit cf2751b

Please sign in to comment.