diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-05-18 18:00:39 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-05-18 18:00:39 +0200 |
commit | 7803233c8d7f823753d48c068ac865a32b0d0261 (patch) | |
tree | 8341a6ea5b91ce7d2706a0cbd8a96532a8f41764 | |
parent | 07cdad8a833a564df678b9f3887a1de557812720 (diff) | |
download | gnunet-rpm-7803233c8d7f823753d48c068ac865a32b0d0261.tar.gz gnunet-rpm-7803233c8d7f823753d48c068ac865a32b0d0261.zip |
fix ffi
-rw-r--r-- | rpmbuild/SPECS/rust-quiche.spec | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rpmbuild/SPECS/rust-quiche.spec b/rpmbuild/SPECS/rust-quiche.spec index 0ecc9a0..a0fb1c5 100644 --- a/rpmbuild/SPECS/rust-quiche.spec +++ b/rpmbuild/SPECS/rust-quiche.spec | |||
@@ -106,6 +106,8 @@ use the "ffi" feature of the "%{crate}" crate. | |||
106 | 106 | ||
107 | %files -n %{name}+ffi-devel | 107 | %files -n %{name}+ffi-devel |
108 | %ghost %{crate_instdir}/Cargo.toml | 108 | %ghost %{crate_instdir}/Cargo.toml |
109 | %{_includedir}/quiche.h | ||
110 | %{_libdir}/libquiche.so | ||
109 | 111 | ||
110 | %package -n %{name}+foreign-types-shared-devel | 112 | %package -n %{name}+foreign-types-shared-devel |
111 | Summary: %{summary} | 113 | Summary: %{summary} |
@@ -175,10 +177,12 @@ use the "sfv" feature of the "%{crate}" crate. | |||
175 | %cargo_generate_buildrequires | 177 | %cargo_generate_buildrequires |
176 | 178 | ||
177 | %build | 179 | %build |
178 | %cargo_build | 180 | %cargo_build -f ffi |
179 | 181 | ||
180 | %install | 182 | %install |
181 | %cargo_install | 183 | %cargo_install |
184 | install -Dpm0644 -t %{buildroot}%{_libdir}/ target/release/libquiche.so | ||
185 | install -Dpm0644 -t %{buildroot}%{_includedir}/ include/quiche.h | ||
182 | # FIXME: install shared library | 186 | # FIXME: install shared library |
183 | 187 | ||
184 | %if %{with check} | 188 | %if %{with check} |