-
Notifications
You must be signed in to change notification settings - Fork 8
/
elfexec.spec
49 lines (30 loc) · 1.04 KB
/
elfexec.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
48
49
Name: elfexec
Version: 0.3
Release: 1
Summary: Utility to execute ELF binary directly from stdin pipe
Group: Productivity/File utilities
License: BSD-2-Clause
URL: https://github.com/abbat/elfexec
Source0: https://build.opensuse.org/source/home:antonbatenev:elfexec/elfexec/elfexec_%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Utility to execute ELF binary directly from stdin pipe.
%prep
%setup -q -n elfexec
%build
make USER_CFLAGS="${RPM_OPT_FLAGS}" USER_CPPFLAGS="${RPM_OPT_FLAGS}" USER_LDFLAGS="${RPM_LD_FLAGS}" %{?_smp_mflags}
%install
install -d %{buildroot}%{_bindir}
install -m755 elfexec %{buildroot}%{_bindir}/elfexec
install -d %{buildroot}%{_mandir}/man1
install -m644 elfexec.1 %{buildroot}%{_mandir}/man1/elfexec.1
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.md
%doc %{_mandir}/man1/elfexec.1*
%{_bindir}/elfexec
%changelog
* Tue Jan 07 2020 Anton Batenev <[email protected]> 0.3-1
- Initial RPM release