Skip to content

Commit

Permalink
Add spec file to build RPM
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Gazeley committed Aug 2, 2016
1 parent cc564c8 commit 7b1c4ab
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions semerge.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Name: semerge
Version: 0.0.1
Release: 1
Summary: Merge SELinux policy files

Group: Development/Tools
License: Apache 2.0
URL: https://github.com/djjudas21/semerge
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch

Requires: perl
Requires: perl(Getopt::Long)

%description
semerge accepts SELinux rulesets via STDIN (e.g. the output of audit2allow) and by reading an existing policy file. It merges, deduplicates and sorts the two inputs to produce an output policy which contains the contents of both sources.

%prep
%setup -q


%install
rm -rf "$RPM_BUILD_ROOT"
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
install -m 755 semerge.pl $RPM_BUILD_ROOT/%{_bindir}/semerge

%files
%{_bindir}/semerge
%doc

%clean
rm -rf $RPM_BUILD_ROOT


%changelog

0 comments on commit 7b1c4ab

Please sign in to comment.