[packages/secilc] - new

qboosh qboosh at pld-linux.org
Thu Oct 13 21:42:20 CEST 2016


commit b1236642c9bec58c008696bd9a19b298968f372d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Oct 13 21:44:21 2016 +0200

    - new

 secilc.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
---
diff --git a/secilc.spec b/secilc.spec
new file mode 100644
index 0000000..b0b7d3d
--- /dev/null
+++ b/secilc.spec
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%bcond_without	doc	# HTML documentation
+#
+Summary:	SELinux Common Intermediate Language (CIL) Compiler
+Summary(pl.UTF-8):	Kompilator języka pośredniego (CIL) SELinuksa
+Name:		secilc
+Version:	2.5
+Release:	1
+License:	BSD
+Group:		Applications
+#Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
+Source0:	https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223/%{name}-%{version}.tar.gz
+# Source0-md5:	af73267cccd0e46cb455d5702565cd41
+URL:		https://github.com/SELinuxProject/cil/wiki
+BuildRequires:	gcc >= 6:4.5.1
+BuildRequires:	libsepol-devel >= 2.5
+%{?with_doc:BuildRequires:	pandoc}
+BuildRequires:	xmlto
+Requires:	libsepol >= 2.5
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The SELinux CIL Compiler is a compiler that converts the CIL language
+as described on the CIL design wiki into a kernel binary policy file.
+
+%description -l pl.UTF-8
+SELinux CIL Compiler to kompilator przekształcający język CIL (Common
+Intermediate Language - wspólny język pośredni), zgodny z opisem na
+stronie wiki, do postaci binarnego pliku polityki jądra.
+
+%prep
+%setup -q
+
+%build
+CFLAGS="%{rpmcflags}" \
+CPPFLAGS="%{rpmcppflags}" \
+%{__make} \
+	CC="%{__cc}" \
+	LIBDIR=%{_libdir}
+
+%if %{with doc}
+%{__make} -C docs html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING ChangeLog README %{?with_doc:docs/html}
+%attr(755,root,root) %{_bindir}/secilc
+%{_mandir}/man8/secilc.8*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/secilc.git/commitdiff/b1236642c9bec58c008696bd9a19b298968f372d



More information about the pld-cvs-commit mailing list