diff --git a/_service b/_service
index d3740bd..c20d13a 100644
--- a/_service
+++ b/_service
@@ -1,10 +1,10 @@
xz
- parsec-1.3.0
+ parsec-1.4.0-rc1
true
- parsec-1.3.0
+ parsec-1.4.0-rc1
diff --git a/cargo_config b/cargo_config
deleted file mode 100644
index 6fb4ff4..0000000
--- a/cargo_config
+++ /dev/null
@@ -1,5 +0,0 @@
-[source.crates-io]
-replace-with = "vendored-sources"
-
-[source.vendored-sources]
-directory = "vendor"
\ No newline at end of file
diff --git a/parsec-1.3.0.tar.gz b/parsec-1.3.0.tar.gz
deleted file mode 100644
index ef87803..0000000
--- a/parsec-1.3.0.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:253cf74ae929ae613124ea9bcc7182f239d9cb1d013277b53e9390613d79b0ad
-size 940247
diff --git a/parsec-1.4.0-rc2.tar.gz b/parsec-1.4.0-rc2.tar.gz
new file mode 100644
index 0000000..39456b8
--- /dev/null
+++ b/parsec-1.4.0-rc2.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:372a5015ed17686c522e9c54c08e65c176070071d60ebd9f38561928a529bee6
+size 953444
diff --git a/parsec.changes b/parsec.changes
index c6d9a85..9179233 100644
--- a/parsec.changes
+++ b/parsec.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Thu Mar 28 15:23:19 UTC 2024 - Guillaume GARDET
+
+- Update to 1.4.0-rc2:
+ * Full changelog: https://github.com/parallaxsecond/parsec/compare/1.3.0...1.4.0-rc2
+
-------------------------------------------------------------------
Mon Oct 30 08:40:35 UTC 2023 - Guillaume GARDET
diff --git a/parsec.spec b/parsec.spec
index bab7bad..00ea268 100644
--- a/parsec.spec
+++ b/parsec.spec
@@ -1,7 +1,7 @@
#
# spec file for package parsec
#
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,18 +17,17 @@
%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
-%define archive_version 1.3.0
+%define archive_version 1.4.0-rc2
%{?systemd_ordering}
Name: parsec
-Version: 1.3.0
+Version: 1.4.0~rc2
Release: 0
Summary: Platform AbstRaction for SECurity
License: Apache-2.0
URL: https://parallaxsecond.github.io/parsec-book
Source0: https://github.com/parallaxsecond/parsec/archive/%{archive_version}.tar.gz#/parsec-%{archive_version}.tar.gz
Source1: vendor.tar.xz
-Source2: cargo_config
Source3: parsec.service
Source4: config.toml
Source5: parsec.conf
@@ -52,7 +51,6 @@ BuildRequires: sysuser-tools
BuildRequires: pkgconfig(tss2-esys) >= 2.3.3
# opensc is used to initialize HSM keys (PKCS#11 backend)
Recommends: opensc
-%sysusers_requires
# /dev/tpm* are owned by tss user
Requires(pre): system-user-tss
# tpm2-0-tss holds the udev rule to make /dev/tpm* owned by tss user
@@ -67,12 +65,17 @@ a common API to hardware security and cryptographic services in a platform-agnos
This abstraction layer keeps workloads decoupled from physical platform details,
enabling cloud-native delivery flows within the data center and at the edge.
+%package -n system-user-parsec
+Summary: System user and group parsec
+%sysusers_requires
+
+%description -n system-user-parsec
+Package to install system user 'parsec'
+
%prep
%setup -q -a1 -a10 -n parsec-%{archive_version}
rmdir trusted-services-vendor
mv trusted-services-389b506 trusted-services-vendor
-rm -rf .cargo && mkdir .cargo
-cp %{SOURCE2} .cargo/config
# Enable all providers
sed -i -e 's#default = \["unix-peer-credentials-authenticator"\]##' Cargo.toml
# Features available in 1.2.0-rc1:
@@ -116,7 +119,7 @@ export PROTOC=%{_bindir}/protoc
export PROTOC_INCLUDE=%{_includedir}
%cargo_test -- --lib
-%pre -f parsec.pre
+%pre -n system-user-parsec -f parsec.pre
%service_add_pre parsec.service
%post
@@ -138,6 +141,8 @@ export PROTOC_INCLUDE=%{_includedir}
%{_libexecdir}/parsec
%{_tmpfilesdir}/parsec.conf
%{_unitdir}/parsec.service
+
+%files -n system-user-parsec
%{_sysusersdir}/system-user-parsec.conf
%changelog
diff --git a/vendor.tar.xz b/vendor.tar.xz
index 8e04baa..7a3fd8b 100644
--- a/vendor.tar.xz
+++ b/vendor.tar.xz
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ebe8ff9ef9a6c320c26bb08e69dd10b86de24cb55bc82fec65c3e608b00cf141
-size 48104864
+oid sha256:d9288687a3eda0398e454d00596d79b1bd8d67aa6e3564d7dabbedf532ece815
+size 52351056