From 96d4e4cf5d892cf9dcba0a91a4f788f0e1644f12c8b025a8ea195d657aa1699f Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 5 Aug 2008 02:43:01 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsepol?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + libsepol-2.0.32.tar.bz2 | 3 + libsepol.changes | 11 ++++ libsepol.spec | 125 ++++++++++++++++++++++++++++++++++++++++ ready | 0 6 files changed, 163 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libsepol-2.0.32.tar.bz2 create mode 100644 libsepol.changes create mode 100644 libsepol.spec create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libsepol-2.0.32.tar.bz2 b/libsepol-2.0.32.tar.bz2 new file mode 100644 index 0000000..a8eceb6 --- /dev/null +++ b/libsepol-2.0.32.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:771e57cf5dc1b0f0bf51f143e75632e1b33919e021fcdf19f85d9f07c169065d +size 149920 diff --git a/libsepol.changes b/libsepol.changes new file mode 100644 index 0000000..ddc32fa --- /dev/null +++ b/libsepol.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Fri Aug 1 17:32:23 CEST 2008 - ro@suse.de + +- fix requires for debuginfo package + +------------------------------------------------------------------- +Tue Jul 15 15:35:54 CEST 2008 - prusnak@suse.cz + +- initial version 2.0.32 + * based on Fedora package by Dan Walsh + diff --git a/libsepol.spec b/libsepol.spec new file mode 100644 index 0000000..b8a6feb --- /dev/null +++ b/libsepol.spec @@ -0,0 +1,125 @@ +# +# spec file for package libsepol (Version 2.0.32) +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: libsepol +Version: 2.0.32 +Release: 2 +Url: http://www.nsa.gov/selinux/ +License: GPL v2 or later +Group: System/Libraries +Summary: SELinux binary policy manipulation library +Source: %{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%define debug_package_requires libsepol1 = %{version} + +%description +Security-enhanced Linux is a feature of the Linux® kernel and a number +of utilities with enhanced security functionality designed to add +mandatory access controls to Linux. The Security-enhanced Linux kernel +contains new architectural components originally developed to improve +the security of the Flask operating system. These architectural +components provide general support for the enforcement of many kinds of +mandatory access control policies, including those based on the +concepts of Type Enforcement®, Role-based Access Control, and +Multi-level Security. + +libsepol provides an API for the manipulation of SELinux binary +policies. It is used by checkpolicy (the policy compiler) and similar +tools, as well as by programs like load_policy that need to perform +specific transformations on binary policies such as customizing policy +boolean settings. + + + +%package -n libsepol1 +License: GPL v2 or later +Group: System/Libraries +Summary: SELinux binary policy manipulation library + +%description -n libsepol1 +Security-enhanced Linux is a feature of the Linux® kernel and a number +of utilities with enhanced security functionality designed to add +mandatory access controls to Linux. The Security-enhanced Linux kernel +contains new architectural components originally developed to improve +the security of the Flask operating system. These architectural +components provide general support for the enforcement of many kinds of +mandatory access control policies, including those based on the +concepts of Type Enforcement®, Role-based Access Control, and +Multi-level Security. + +libsepol provides an API for the manipulation of SELinux binary +policies. It is used by checkpolicy (the policy compiler) and similar +tools, as well as by programs like load_policy that need to perform +specific transformations on binary policies such as customizing policy +boolean settings. + + + +%package devel +License: GPL v2 or later +Summary: Development Include Files and Libraries for SELinux policy manipulation +Group: Development/Libraries/C and C++ +Requires: libsepol1 = %{version}-%{release} + +%description devel +The libsepol-devel package contains the static libraries and header +files needed for developing applications that manipulate binary +policies. + + + +%prep +%setup -q + +%build +make %{?jobs:-j%jobs} CFLAGS="$RPM_OPT_FLAGS" + +%install +mkdir -p $RPM_BUILD_ROOT/%{_lib} +mkdir -p $RPM_BUILD_ROOT%{_libdir} +mkdir -p $RPM_BUILD_ROOT%{_includedir} +mkdir -p $RPM_BUILD_ROOT%{_bindir} +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{3,8} +make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" install +rm -f $RPM_BUILD_ROOT%{_bindir}/genpolbools +rm -f $RPM_BUILD_ROOT%{_bindir}/genpolusers +rm -f $RPM_BUILD_ROOT%{_bindir}/chkcon +rm -rf $RPM_BUILD_ROOT%{_mandir}/man8 + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -n libsepol1 -p /sbin/ldconfig + +%postun -n libsepol1 -p /sbin/ldconfig + +%files -n libsepol1 +%defattr(-,root,root) +/%{_lib}/libsepol.so.* + +%files devel +%defattr(-,root,root) +%{_libdir}/libsepol.so +%{_libdir}/libsepol.a +%{_mandir}/man3/* +%dir %{_includedir}/sepol +%{_includedir}/sepol/*.h +%dir %{_includedir}/sepol/policydb +%{_includedir}/sepol/policydb/*.h + +%changelog +* Fri Aug 01 2008 ro@suse.de +- fix requires for debuginfo package +* Tue Jul 15 2008 prusnak@suse.cz +- initial version 2.0.32 + * based on Fedora package by Dan Walsh diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4