Autobuild autoformatter for 57745

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apparmor?expand=0&rev=2
This commit is contained in:
Marcus Rückert 2011-01-17 16:43:15 +00:00 committed by Git OBS Bridge
parent f270973a6c
commit dd71394031

View File

@ -1,7 +1,7 @@
# #
# spec file for package apparmor-parser (Version 2.3.1) # spec file for package apparmor
# #
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -46,45 +46,45 @@ Name: apparmor
%endif %endif
Summary: AppArmor userlevel parser utility Summary: AppArmor userlevel parser utility
Version: 2.5.1 Version: 2.5.1
Release: 42 Release: 1
Group: Productivity/Networking/Security Group: Productivity/Networking/Security
Source0: apparmor-%{version}.tar.bz2 Source0: apparmor-%{version}.tar.bz2
Source1: %{name}-profile-editor.png Source1: %{name}-profile-editor.png
Source2: %{name}-profile-editor.desktop Source2: %{name}-profile-editor.desktop
Source3: update-trans.sh Source3: update-trans.sh
Patch: testsuite-build-fix Patch: testsuite-build-fix
Patch1: pam-apparmor-include Patch1: pam-apparmor-include
Patch2: mod_apparmor-includes Patch2: mod_apparmor-includes
Patch3: tomcat-build-fixes Patch3: tomcat-build-fixes
Patch4: apparmor-swig-build-fix Patch4: apparmor-swig-build-fix
Patch5: apparmor-scripts Patch5: apparmor-scripts
Patch6: apparmor-translation-fixes Patch6: apparmor-translation-fixes
Patch7: apparmor-perl Patch7: apparmor-perl
Patch8: apparmor-no-caching-test Patch8: apparmor-no-caching-test
Patch9: apparmorapplet-gnome-build-fix Patch9: apparmorapplet-gnome-build-fix
Patch10: apparmor-utils-SubDomain Patch10: apparmor-utils-SubDomain
Patch11: apparmor-utils-cleanup-on-abort Patch11: apparmor-utils-cleanup-on-abort
Patch12: apparmor-utils-translation-unification Patch12: apparmor-utils-translation-unification
Patch13: apparmor-utils-add-log-types Patch13: apparmor-utils-add-log-types
Patch14: apparmor-utils-filenames-in-slash Patch14: apparmor-utils-filenames-in-slash
Patch15: apparmor-utils-null-path-fix Patch15: apparmor-utils-null-path-fix
Patch16: apparmor-utils-string-split Patch16: apparmor-utils-string-split
Patch17: apparmor-profiles-cupsd-fix Patch17: apparmor-profiles-cupsd-fix
Patch18: apparmor-profiles-sshd-fix Patch18: apparmor-profiles-sshd-fix
Patch19: apparmor-profiles-syslog-ng-fix Patch19: apparmor-profiles-syslog-ng-fix
Patch20: apparmor-docs-techdoc-grammar-fixes Patch20: apparmor-docs-techdoc-grammar-fixes
Patch21: apparmor-parser-string-fixes Patch21: apparmor-parser-string-fixes
Patch22: apparmor-startproc.patch Patch22: apparmor-startproc.patch
Patch23: apparmor-2.5.1-unified-build Patch23: apparmor-2.5.1-unified-build
Patch24: apparmor-2.5.1-rpmlint-asprintf Patch24: apparmor-2.5.1-rpmlint-asprintf
Patch25: apparmor-2.5.1-ntpd-proc-fixes Patch25: apparmor-2.5.1-ntpd-proc-fixes
Patch26: apparmor-2.5.1-edirectory-profile Patch26: apparmor-2.5.1-edirectory-profile
Patch27: apparmor-2.5.1-firefox-proc-fix Patch27: apparmor-2.5.1-firefox-proc-fix
Patch28: apparmor-2.5.1-unconfined-fixes Patch28: apparmor-2.5.1-unconfined-fixes
Patch29: apparmor-2.5.1-fix-parser-use-after-free Patch29: apparmor-2.5.1-fix-parser-use-after-free
Patch30: apparmor-2.5.1-ldapclient-profile Patch30: apparmor-2.5.1-ldapclient-profile
Patch31: apparmor-utils-support-newer-auditd-formatted-messages Patch31: apparmor-utils-support-newer-auditd-formatted-messages
Patch32: fix-two-x-transition-conflict-bugs Patch32: fix-two-x-transition-conflict-bugs
License: GPLv2+ License: GPLv2+
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: https://launchpad.net/apparmor Url: https://launchpad.net/apparmor
@ -94,33 +94,33 @@ PreReq: %{insserv_prereq} aaa_base
%endif %endif
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: pcre-devel BuildRequires: pcre-devel
%define apparmor_bin_prefix /lib/apparmor %define apparmor_bin_prefix /lib/apparmor
BuildRequires: bison flex latex2html w3m BuildRequires: bison flex latex2html w3m
BuildRequires: texlive-latex BuildRequires: texlive-latex
BuildRequires: swig BuildRequires: swig
%if %{with python} %if %{with python}
BuildRequires: swig python-devel BuildRequires: python-devel swig
%endif %endif
%if %{with ruby} %if %{with ruby}
BuildRequires: swig ruby-devel BuildRequires: ruby-devel swig
%endif %endif
%if %{with pam} %if %{with pam}
BuildRequires: pam-devel BuildRequires: pam-devel
Requires: pam pam-config Requires: pam pam-config
PreReq: pam pam-config PreReq: pam pam-config
%endif %endif
%if %{with apache} %if %{with apache}
BuildRequires: apache2-devel BuildRequires: apache2-devel
%endif %endif
%if %{with tomcat} %if %{with tomcat}
BuildRequires: java-devel >= 1.6.0 ant tomcat6 BuildRequires: ant java-devel >= 1.6.0 tomcat6
%endif %endif
%if %{with editor} %if %{with editor}
@ -140,19 +140,20 @@ BuildRequires: audit-devel dbus-1-devel libapparmor-devel pkg-config
%endif %endif
%package parser %package parser
License: GPLv2+
Summary: AppArmor userlevel parser utility Summary: AppArmor userlevel parser utility
Group: Productivity/Networking/Security Group: Productivity/Networking/Security
Obsoletes: subdomain_parser < %{version} Obsoletes: subdomain_parser < %{version}
Obsoletes: subdomain-parser < %{version} Obsoletes: subdomain-parser < %{version}
Obsoletes: subdomain-parser-demo < %{version} Obsoletes: subdomain-parser-demo < %{version}
Obsoletes: subdomain-parser-common < %{version} Obsoletes: subdomain-parser-common < %{version}
Obsoletes: subdomain-leaf-cert < %{version} Obsoletes: subdomain-leaf-cert < %{version}
Obsoletes: libimnxcert < %{version} Obsoletes: libimnxcert < %{version}
Provides: subdomain_parser = %{version} Provides: subdomain_parser = %{version}
Provides: subdomain-parser = %{version} Provides: subdomain-parser = %{version}
Provides: subdomain-parser-demo = %{version} Provides: subdomain-parser-demo = %{version}
Provides: subdomain-parser-common = %{version} Provides: subdomain-parser-common = %{version}
Provides: subdomain-leaf-cert = %{version} Provides: subdomain-leaf-cert = %{version}
Provides: libimnxcert = %{version} Provides: libimnxcert = %{version}
%description parser %description parser
@ -163,8 +164,9 @@ This package is part of a suite of tools that used to be named
SubDomain. SubDomain.
%package docs %package docs
Summary: AppArmor Documentation package License: GPLv2+
Group: Documentation/Other Summary: AppArmor Documentation package
Group: Documentation/Other
%description docs %description docs
This package contains documentation for AppArmor. This package contains documentation for AppArmor.
@ -180,9 +182,12 @@ Authors:
Seth Arnold <seth.arnold@novell.com> Seth Arnold <seth.arnold@novell.com>
%if %{with apache} %if %{with apache}
%package -n apache2-mod_apparmor %package -n apache2-mod_apparmor
License: GPLv2+
Summary: AppArmor module for apache2 Summary: AppArmor module for apache2
Group: Productivity/Security Group: Productivity/Security
%description -n apache2-mod_apparmor %description -n apache2-mod_apparmor
apache2-modapparmor adds support to apache2 to provide AppArmor apache2-modapparmor adds support to apache2 to provide AppArmor
confinement to individual cgi scripts handled by apache modules like confinement to individual cgi scripts handled by apache modules like
@ -201,10 +206,10 @@ Authors:
%package -n libapparmor1 %package -n libapparmor1
Summary: Utility library for AppArmor Summary: Utility library for AppArmor
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
License: LGPL v2.1 or later License: LGPLv2.1+
%ifarch ppc64 %ifarch ppc64
Obsoletes: libapparmor-64bit < %{version} Obsoletes: libapparmor-64bit < %{version}
Provides: libapparmor-64bit = ${version} Provides: libapparmor-64bit = ${version}
%endif %endif
Provides: libapparmor = %{version} Provides: libapparmor = %{version}
Provides: libimmunix = %{version} Provides: libimmunix = %{version}
@ -222,7 +227,7 @@ Authors:
Matt Barringer <mbarringer@suse.de> Matt Barringer <mbarringer@suse.de>
%package -n libapparmor-devel %package -n libapparmor-devel
License: LGPL v2.1 or later License: LGPLv2.1+
Requires: libapparmor1 = %{version}-%{release} Requires: libapparmor1 = %{version}-%{release}
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Provides: libapparmor:/usr/include/sys/apparmor.h Provides: libapparmor:/usr/include/sys/apparmor.h
@ -238,13 +243,13 @@ Authors:
Matt Barringer <mbarringer@suse.de> Matt Barringer <mbarringer@suse.de>
%package -n perl-apparmor %package -n perl-apparmor
License: GPL v2 only ; LGPL v2.1 or later License: GPLv2 ; LGPLv2.1+
Requires: libapparmor1 = %{version} Requires: libapparmor1 = %{version}
Requires: perl = %{perl_version} Requires: perl = %{perl_version}
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Summary: Perl interface for libapparmor functions Summary: Perl interface for libapparmor functions
Provides: perl-libapparmor Provides: perl-libapparmor
Obsoletes: perl-libapparmor < 2.5 Obsoletes: perl-libapparmor < 2.5
%description -n perl-apparmor %description -n perl-apparmor
This package provides the perl interface to AppArmor. It is used for perl This package provides the perl interface to AppArmor. It is used for perl
@ -256,15 +261,16 @@ Authors:
Matt Barringer <mbarringer@suse.de> Matt Barringer <mbarringer@suse.de>
%if %{with python} %if %{with python}
%package -n python-apparmor %package -n python-apparmor
License: GPL v2 only ; LGPL v2.1 or later License: GPLv2 ; LGPLv2.1+
Requires: libapparmor1 = %{version} Requires: libapparmor1 = %{version}
BuildRequires: python BuildRequires: python
Requires: python = %{python_version} Requires: python = %{python_version}
Group: Development/Libraries/Python Group: Development/Libraries/Python
Summary: Python interface for libapparmor functions Summary: Python interface for libapparmor functions
Provides: python-libapparmor Provides: python-libapparmor
Obsoletes: python-libapparmor < 2.5 Obsoletes: python-libapparmor < 2.5
%description -n python-apparmor %description -n python-apparmor
This package provides the python interface to AppArmor. It is used for python This package provides the python interface to AppArmor. It is used for python
@ -277,14 +283,15 @@ Authors:
%endif %endif
%if %{with ruby} %if %{with ruby}
%package -n ruby-apparmor %package -n ruby-apparmor
License: GPL v2 only ; LGPL v2.1 or later License: GPLv2 ; LGPLv2.1+
Requires: libapparmor1 = %{version} Requires: libapparmor1 = %{version}
Requires: ruby = %{ruby_version} Requires: ruby = %{ruby_version}
Group: Development/Libraries/Ruby Group: Development/Libraries/Ruby
Summary: Ruby interface for libapparmor functions Summary: Ruby interface for libapparmor functions
Provides: ruby-libapparmor Provides: ruby-libapparmor
Obsoletes: ruby-libapparmor < 2.5 Obsoletes: ruby-libapparmor < 2.5
%description -n ruby-apparmor %description -n ruby-apparmor
This package provides the ruby interface to AppArmor. It is used for ruby This package provides the ruby interface to AppArmor. It is used for ruby
@ -297,10 +304,11 @@ Authors:
%endif %endif
%package profiles %package profiles
License: GPLv2 ; LGPLv2.1+
Summary: AppArmor profiles that are loaded into the apparmor kernel module Summary: AppArmor profiles that are loaded into the apparmor kernel module
Group: Productivity/Security Group: Productivity/Security
Obsoletes: subdomain-profiles < %{version} Obsoletes: subdomain-profiles < %{version}
Provides: subdomain-profiles = %{version} Provides: subdomain-profiles = %{version}
%description profiles %description profiles
Base profiles. AppArmor is a file and network mandatory access control Base profiles. AppArmor is a file and network mandatory access control
@ -318,13 +326,13 @@ Authors:
jjohansen@suse.de jjohansen@suse.de
%package utils %package utils
License: GPLv2 ; LGPLv2.1+
Summary: AppArmor User-Level Utilities Useful for Creating AppArmor Profiles Summary: AppArmor User-Level Utilities Useful for Creating AppArmor Profiles
Group: Productivity/Security Group: Productivity/Security
Requires: perl = %{perl_version} Requires: perl = %{perl_version}
Requires: libapparmor1 = %{version} Requires: libapparmor1 = %{version}
Requires: perl-apparmor = %{version} Requires: perl-apparmor = %{version}
BuildArch: noarch BuildArch: noarch
%description utils %description utils
This package provides the aa-logprof, aa-genprof, aa-autodep, This package provides the aa-logprof, aa-genprof, aa-autodep,
@ -339,10 +347,12 @@ Authors:
seth.arnold@suse.de seth.arnold@suse.de
%if %{with tomcat} %if %{with tomcat}
%package -n tomcat_apparmor %package -n tomcat_apparmor
License: GPLv2 ; LGPLv2.1+
Summary: Tomcat 6 plugin for AppArmor change_hat Summary: Tomcat 6 plugin for AppArmor change_hat
Group: System/Libraries Group: System/Libraries
Requires: libapparmor1 = %{version} tomcat6 Requires: libapparmor1 = %{version} tomcat6
%description -n tomcat_apparmor %description -n tomcat_apparmor
tomcat_apparmor - is a plugin for Apache Tomcat version 6 that tomcat_apparmor - is a plugin for Apache Tomcat version 6 that
@ -357,7 +367,9 @@ Authors:
%endif %endif
%if %{with pam} %if %{with pam}
%package -n pam_apparmor %package -n pam_apparmor
License: GPLv2 ; LGPLv2.1+
Summary: PAM module to for AppArmor change_hat Summary: PAM module to for AppArmor change_hat
Group: Productivity/Security Group: Productivity/Security
@ -375,9 +387,11 @@ Authors:
%endif %endif
%if %{with dbus} %if %{with dbus}
%package dbus %package dbus
Summary: Audit dispatcher for sending AppArmor events over DBUS License: GPLv2 ; LGPLv2.1+
Group: System/Monitoring Summary: Audit dispatcher for sending AppArmor events over DBUS
Group: System/Monitoring
%description dbus %description dbus
An audit dispatcher for sending AppArmor events over the DBUS system An audit dispatcher for sending AppArmor events over the DBUS system
@ -390,9 +404,11 @@ Authors:
%endif %endif
%if %{with editor} %if %{with editor}
%package profile-editor %package profile-editor
Summary: AppArmor profile editor License: GPLv2 ; LGPLv2.1+
Group: Productivity/Editors/Other Summary: AppArmor profile editor
Group: Productivity/Editors/Other
%description profile-editor %description profile-editor
A syntax highlighting editor for AppArmor profiles. A syntax highlighting editor for AppArmor profiles.
@ -404,8 +420,10 @@ Authors:
%endif %endif
%if %{with gnome} %if %{with gnome}
%package -n apparmorapplet-gnome %package -n apparmorapplet-gnome
Summary: An AppArmor event notification applet for GNOME License: GPLv2 ; LGPLv2.1+
Summary: An AppArmor event notification applet for GNOME
Group: System/GUI/GNOME Group: System/GUI/GNOME
%description -n apparmorapplet-gnome %description -n apparmorapplet-gnome
@ -431,6 +449,7 @@ SubDomain.
%if %{with gnome} %if %{with gnome}
%lang_package -n apparmorapplet-gnome %lang_package -n apparmorapplet-gnome
%endif %endif
%prep %prep
%setup -q %setup -q
%patch -p1 %patch -p1
@ -674,6 +693,7 @@ fi
%{perl_vendorarch}/LibAppArmor.pm %{perl_vendorarch}/LibAppArmor.pm
%if %{with python} %if %{with python}
%files -n python-apparmor %files -n python-apparmor
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitearch}/LibAppArmor-2.5.1-py2.7.egg-info %{python_sitearch}/LibAppArmor-2.5.1-py2.7.egg-info
@ -681,12 +701,14 @@ fi
%endif %endif
%if %{with ruby} %if %{with ruby}
%files -n ruby-apparmor %files -n ruby-apparmor
%defattr(-,root,root) %defattr(-,root,root)
%{_prefix}/%{rb_sitearch}/* %{_prefix}/%{rb_sitearch}/*
%endif %endif
%if %{with pam} %if %{with pam}
%files -n pam_apparmor %files -n pam_apparmor
%defattr(444,root,root,755) %defattr(444,root,root,755)
%attr(555,root,root) %{_libdir}/security/pam_apparmor.so %attr(555,root,root) %{_libdir}/security/pam_apparmor.so
@ -694,6 +716,7 @@ fi
%endif %endif
%if %{with tomcat} %if %{with tomcat}
%files -n tomcat_apparmor %files -n tomcat_apparmor
%defattr(-,root,root) %defattr(-,root,root)
%{CATALINA_HOME}/lib/%{JAR_FILE} %{CATALINA_HOME}/lib/%{JAR_FILE}
@ -702,6 +725,7 @@ fi
%endif %endif
%if %{with apache} %if %{with apache}
%files -n apache2-mod_apparmor %files -n apache2-mod_apparmor
%defattr(-,root,root) %defattr(-,root,root)
%{apache_module_path}/mod_apparmor.so %{apache_module_path}/mod_apparmor.so
@ -710,12 +734,14 @@ fi
%endif %endif
%if %{with dbus} %if %{with dbus}
%files dbus %files dbus
%defattr(0750, root, root) %defattr(0750, root, root)
%{_bindir}/apparmor-dbus %{_bindir}/apparmor-dbus
%endif %endif
%if %{with editor} %if %{with editor}
%files profile-editor %files profile-editor
%defattr(-, root, root) %defattr(-, root, root)
%{_datadir}/applications/%{name}-profile-editor.desktop %{_datadir}/applications/%{name}-profile-editor.desktop
@ -729,6 +755,7 @@ fi
%endif %endif
%if %{with gnome} %if %{with gnome}
%files -n apparmorapplet-gnome %files -n apparmorapplet-gnome
%defattr(-, root, root) %defattr(-, root, root)
%{_libdir}/bonobo/servers/*.server %{_libdir}/bonobo/servers/*.server
@ -790,13 +817,17 @@ fi
%endif %endif
%post -n libapparmor1 -p /sbin/ldconfig %post -n libapparmor1 -p /sbin/ldconfig
%postun -n libapparmor1 -p /sbin/ldconfig %postun -n libapparmor1 -p /sbin/ldconfig
%if %{with tomcat} %if %{with tomcat}
%post -n tomcat_apparmor -p /sbin/ldconfig %post -n tomcat_apparmor -p /sbin/ldconfig
%postun -n tomcat_apparmor -p /sbin/ldconfig %postun -n tomcat_apparmor -p /sbin/ldconfig
%endif %endif
%if %{with pam} %if %{with pam}
%post -n pam_apparmor %post -n pam_apparmor
pam-config -a --apparmor pam-config -a --apparmor
pam-config --update pam-config --update