From 51816338fbbe722797d269f31bc6fdc8360f939ead3716b95a83133306d137eb Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 5 Aug 2008 02:42:57 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsemanage?expand=0&rev=1 --- .gitattributes | 23 +++++ .gitignore | 1 + libsemanage-2.0.25-rhat.patch | 28 ++++++ libsemanage-2.0.25.tar.bz2 | 3 + libsemanage.changes | 11 +++ libsemanage.spec | 168 ++++++++++++++++++++++++++++++++++ ready | 0 7 files changed, 234 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libsemanage-2.0.25-rhat.patch create mode 100644 libsemanage-2.0.25.tar.bz2 create mode 100644 libsemanage.changes create mode 100644 libsemanage.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/libsemanage-2.0.25-rhat.patch b/libsemanage-2.0.25-rhat.patch new file mode 100644 index 0000000..512d978 --- /dev/null +++ b/libsemanage-2.0.25-rhat.patch @@ -0,0 +1,28 @@ +diff --exclude-from=exclude -N -u -r nsalibsemanage/src/genhomedircon.c libsemanage-2.0.15/src/genhomedircon.c +--- nsalibsemanage/src/genhomedircon.c 2008-01-28 16:52:22.000000000 -0500 ++++ libsemanage-2.0.15/src/genhomedircon.c 2008-01-25 10:28:39.000000000 -0500 +@@ -406,7 +406,6 @@ + const char *role_prefix) + { + replacement_pair_t repl[] = { +- {.search_for = TEMPLATE_SEUSER,.replace_with = seuser}, + {.search_for = TEMPLATE_HOME_DIR,.replace_with = home}, + {.search_for = TEMPLATE_ROLE,.replace_with = role_prefix}, + {NULL, NULL} +@@ -466,7 +465,6 @@ + replacement_pair_t repl[] = { + {.search_for = TEMPLATE_USER,.replace_with = user}, + {.search_for = TEMPLATE_ROLE,.replace_with = role_prefix}, +- {.search_for = TEMPLATE_SEUSER,.replace_with = seuser}, + {NULL, NULL} + }; + Ustr *line = USTR_NULL; +diff --exclude-from=exclude -N -u -r nsalibsemanage/src/semanage.conf libsemanage-2.0.15/src/semanage.conf +--- nsalibsemanage/src/semanage.conf 2007-07-16 14:20:38.000000000 -0400 ++++ libsemanage-2.0.15/src/semanage.conf 2008-01-25 10:28:39.000000000 -0500 +@@ -35,4 +35,4 @@ + # given in . Change this setting if a different + # version is necessary. + #policy-version = 19 +- ++expand-check=0 diff --git a/libsemanage-2.0.25.tar.bz2 b/libsemanage-2.0.25.tar.bz2 new file mode 100644 index 0000000..fc72dce --- /dev/null +++ b/libsemanage-2.0.25.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36301668cda87140099c6cb8dbd3fc5e66b8b8ead13c4e854fdd4bbbca507e9a +size 134226 diff --git a/libsemanage.changes b/libsemanage.changes new file mode 100644 index 0000000..4bf6102 --- /dev/null +++ b/libsemanage.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Fri Aug 1 17:32:21 CEST 2008 - ro@suse.de + +- fix requires for debuginfo package + +------------------------------------------------------------------- +Tue Jul 15 16:58:47 CEST 2008 - prusnak@suse.cz + +- initial version 2.0.25 + * based on Fedora package by Dan Walsh + diff --git a/libsemanage.spec b/libsemanage.spec new file mode 100644 index 0000000..9a31810 --- /dev/null +++ b/libsemanage.spec @@ -0,0 +1,168 @@ +# +# spec file for package libsemanage (Version 2.0.25) +# +# 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 + +%define libsepol_ver 2.0.20 +%define libselinux_ver 2.0.0 +BuildRequires: bison flex libustr-devel python-devel swig +BuildRequires: libselinux-devel >= %{libselinux_ver} +BuildRequires: libsepol-devel >= %{libsepol_ver} + +Name: libsemanage +Version: 2.0.25 +Release: 2 +Url: http://www.nsa.gov/selinux/ +License: LGPL v2.1 only +Group: System/Libraries +Summary: SELinux binary policy manipulation library +Source: %{name}-%{version}.tar.bz2 +Patch0: %{name}-%{version}-rhat.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%define debug_package_requires libsemanage1 = %{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. + +libsemanage 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 libsemanage1 +License: LGPL v2.1 only +Group: System/Libraries +Summary: SELinux binary policy manipulation library + +%description -n libsemanage1 +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. + +libsemanage 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: LGPL v2.1 only +Summary: SELinux binary policy manipulation library +Group: System/Libraries +Requires: libsemanage1 = %{version}-%{release} libustr-devel + +%description devel +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. + +libsemanage 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 python-semanage +License: LGPL v2.1 only +Summary: SELinux binary policy manipulation library +Group: System/Libraries +Requires: libsemanage1 = %{version}-%{release} + +%description -n python-semanage +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. + +libsemanage 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. + + + +%prep +%setup -q +%patch0 -p1 + +%build +make %{?jobs:-j%jobs} CFLAGS="$RPM_OPT_FLAGS" swigify +make %{?jobs:-j%jobs} CFLAGS="$RPM_OPT_FLAGS" LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" all pywrap + +%install +mkdir -p $RPM_BUILD_ROOT/%{_lib} +mkdir -p $RPM_BUILD_ROOT%{_libdir} +mkdir -p $RPM_BUILD_ROOT%{_includedir} +make DESTDIR="$RPM_BUILD_ROOT" LIBDIR="$RPM_BUILD_ROOT%{_libdir}" SHLIBDIR="$RPM_BUILD_ROOT/%{_lib}" install install-pywrap + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -n libsemanage1 -p /sbin/ldconfig + +%postun -n libsemanage1 -p /sbin/ldconfig + +%files -n libsemanage1 +%defattr(-,root,root) +%dir %{_sysconfdir}/selinux +%config(noreplace) %{_sysconfdir}/selinux/semanage.conf +/%{_lib}/libsemanage.so.* + +%files devel +%defattr(-,root,root) +%{_libdir}/libsemanage.a +%{_libdir}/libsemanage.so +%dir %{_includedir}/semanage +%{_includedir}/semanage/*.h +%{_mandir}/man3/* + +%files -n python-semanage +%defattr(-,root,root) +%{_libdir}/python*/site-packages/* + +%changelog +* Fri Aug 01 2008 ro@suse.de +- fix requires for debuginfo package +* Tue Jul 15 2008 prusnak@suse.cz +- initial version 2.0.25 + * based on Fedora package by Dan Walsh diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4