rpm metadata

Signed-off-by: Cadey A. Ratio <cadey@firemail.cc>
This commit is contained in:
Cadey Ratio 2021-05-22 21:47:19 +00:00
parent 44aed055b9
commit 1663feca9e
2 changed files with 40 additions and 0 deletions

31
.rpm/printerfacts.spec Normal file
View File

@ -0,0 +1,31 @@
%define __spec_install_post %{nil}
%define __os_install_post %{_dbpath}/brp-compress
%define debug_package %{nil}
Name: printerfacts
Summary: Printer facts: The API
Version: @@VERSION@@
Release: @@RELEASE@@%{?dist}
License: MIT
Group: Applications/System
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
%{summary}
%prep
%setup -q
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
cp -a * %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/*

View File

@ -26,3 +26,12 @@ warp = "0.3"
[build-dependencies]
ructe = { version = "0", features = ["warp03"] }
[package.metadata.rpm]
package = "printerfacts"
[package.metadata.rpm.cargo]
buildflags = ["--release"]
[package.metadata.rpm.targets]
printerfacts = { path = "/usr/bin/printerfacts" }