2020-01-06 21:14:04 +00:00
|
|
|
Name: tcg_rim_tool
|
2020-11-10 20:39:47 +00:00
|
|
|
Version: 2.0.0
|
2020-01-06 21:14:04 +00:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: A java command-line tool to create PC client root RIM
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://github.com/nsacyber/HIRS
|
|
|
|
Source0: %{name}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: java-headless >= 1:1.8.0
|
|
|
|
|
|
|
|
%description
|
2020-06-17 12:00:08 +00:00
|
|
|
This tool will generate a base RIM file for PC clients in accordance with the schema located at http://standards.iso.org/iso/19770/-2/2015/schema.xsd. The generated RIM can either be empty if no arguments are given, or contain a payload if an input file is provided. The tool can also verify a given RIMfile against the schema. Use -h or --help to see a list of commands and uses.
|
2020-01-06 21:14:04 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -n %{name}
|
|
|
|
|
2020-06-15 21:49:37 +00:00
|
|
|
%pre
|
|
|
|
rm -f /opt/hirs/rimtool/%{name}*.jar
|
2020-01-06 21:14:04 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
./gradlew build
|
|
|
|
|
|
|
|
%install
|
2020-06-19 11:25:23 +00:00
|
|
|
mkdir -p %{buildroot}/opt/hirs/rimtool/ %{buildroot}/usr/local/bin
|
2020-11-20 17:42:07 +00:00
|
|
|
cp build/libs/%{name}-%{version}.jar %{buildroot}/opt/hirs/rimtool/
|
2020-06-15 21:49:37 +00:00
|
|
|
cp ./rim_fields.json %{buildroot}/opt/hirs/rimtool/
|
|
|
|
cp ./keystore.jks %{buildroot}/opt/hirs/rimtool/
|
2020-06-17 12:00:08 +00:00
|
|
|
cp -r ./scripts/ %{buildroot}/opt/hirs/rimtool/
|
|
|
|
ln -sf /opt/hirs/rimtool/scripts/rimtool.sh %{buildroot}/usr/local/bin/rim
|
2020-01-06 21:14:04 +00:00
|
|
|
|
|
|
|
%files
|
2020-06-15 21:49:37 +00:00
|
|
|
/opt/hirs/rimtool/%{name}-%{version}.jar
|
|
|
|
/opt/hirs/rimtool/rim_fields.json
|
|
|
|
/opt/hirs/rimtool/keystore.jks
|
2020-06-19 11:25:23 +00:00
|
|
|
/opt/hirs/rimtool/scripts
|
|
|
|
/usr/local/bin/rim
|
|
|
|
|
|
|
|
%attr(755, root, root) /opt/hirs/rimtool/scripts/rimtool.sh
|
2020-01-06 21:14:04 +00:00
|
|
|
|
|
|
|
%changelog
|
2020-11-10 20:39:47 +00:00
|
|
|
* Tue Nov 10 2020 chubtub
|
|
|
|
- Second release
|
2020-06-15 21:49:37 +00:00
|
|
|
* Mon Jun 15 2020 chubtub
|
|
|
|
- First release
|
2020-01-06 21:14:04 +00:00
|
|
|
* Mon Jan 6 2020 chubtub
|
|
|
|
- First change
|