-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrust-bundled-packaging.spec
47 lines (34 loc) · 1.05 KB
/
rust-bundled-packaging.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Name: rust-bundled-packaging
Version: 1
Release: 1%{?dist}
Summary: RPM macros for packaging Rust binaries
License: MIT
URL: https://github.com/awslabs/rust-bundled-packaging
Source0: macros.rust
Source1: macros.cargo
Source2: cargo.attr
Source10: LICENSE
Source11: README.md
BuildArch: noarch
Requires: rpm-build findutils jq rust cargo
%description
RPM macros for packaging Rust bin crates that bundle dependent crates into the
source RPM.
%prep
mkdir -p %{name}-%{version}
cp %{SOURCE10} %{SOURCE11} .
%build
%install
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d
install -pm 0644 %{SOURCE0} %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d
mkdir -p %{buildroot}%{_fileattrsdir}
install -pm 0644 %{SOURCE2} %{buildroot}%{_fileattrsdir}
%files
%doc README.md
%license LICENSE
%{_rpmconfigdir}/macros.d/macros.rust
%{_rpmconfigdir}/macros.d/macros.cargo
%{_fileattrsdir}/cargo.attr
%changelog
* Thu Nov 15 2018 iliana weller <[email protected]> - 1-1
- Initial release