g3/g3mkcert/g3mkcert.spec
2023-05-04 19:10:46 +08:00

47 lines
1,014 B
RPMSpec

%if 0%{?rhel} > 7
%undefine _debugsource_packages
%endif
%if 0%{?rhel} == 7
%global debug_package %{nil}
%endif
%define build_profile release-lto
Name: g3mkcert
Version: 0.1.0
Release: 1%{?dist}
Summary: Tool to make certificates from G3 Project
License: ASL 2.0
#URL:
Source0: %{name}-%{version}.tar.xz
%description
Tool to make certificates from G3 Project
%prep
%autosetup
%build
G3_PACKAGE_VERSION="%{version}-%{release}"
export G3_PACKAGE_VERSION
SSL_FEATURE=$(pkg-config --atleast-version 1.1.1 libssl || echo "vendored-openssl")
cargo build --frozen --offline --profile %{build_profile} --no-default-features --features $SSL_FEATURE, --package g3mkcert
%install
rm -rf $RPM_BUILD_ROOT
install -m 755 -D target/%{build_profile}/g3mkcert %{buildroot}%{_bindir}/g3mkcert
%files
#%license add-license-file-here
%{_bindir}/g3mkcert
%changelog
* Thu May 04 2023 G3mkcert Maintainers <g3mkcert-maintainers@devel.machine> - 0.1.0-1
- New upstream release