File tomcat_apparmor.spec of Package tomcat_apparmor

# spec file for package tomcat_apparmor (Version 2.0.2)
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           tomcat_apparmor
%define CATALINA_HOME /usr/share/tomcat6
%define APPARMOR_DOC_DIR /usr/share/doc/packages/apparmor-docs/
%define JNI_SO
%define JAR_FILE changeHatValve.jar
Summary:        Tomcat 5 plugin for AppArmor change_hat
Version:        2.0.2
Release:        229
Group:          System/Libraries
Source0:        %{name}-%{version}-688.tar.gz
License:        GPL v2 or later
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       tomcat6, libapparmor1
BuildRequires:  ant apparmor-docs java-devel libapparmor-devel tomcat6

tomcat_apparmor - is a plugin for Apache Tomcat version 5.x that
provides support for AppArmor change_hat for creating AppArmor
containers that are bound to discrete elements of processing within the
Tomcat servlet container. The AppArmor containers, or "hats", can be
created for individual URL processing or per servlet.


%setup -q 

ant -Dinstall_lib=%{_lib} -Dcatalina_home=%{CATALINA_HOME} -Ddist=${RPM_BUILD_DIR}/%{name}-%{version} jar jni_so

ant -Ddist=${RPM_BUILD_DIR}/%{name}-%{version} -Dversion=%{version} -Drelease=%{release} -Dcatalina_home=%{CATALINA_HOME} -Dinstall_root=${RPM_BUILD_ROOT} -Dinstall_lib=%{_lib} install_jar install_jni
install ${RPM_BUILD_DIR}/%{name}-%{version}/README.tomcat_apparmor  ${RPM_BUILD_ROOT}%{APPARMOR_DOC_DIR}


%doc %attr(0644,root,root) %{APPARMOR_DOC_DIR}/README.tomcat_apparmor



* Wed Oct 29 2008
- build for java 1.5
- export NO_BRP_CHECK_BYTECODE_VERSION=true since we are linking
  in code out of control of this package
* Thu Jan 31 2008
- fix build for tomcat6
* Mon Jul 30 2007
- Require libapparmor-devel.
- Fix permissions of README file.
* Tue May 22 2007
- Ported plugin to tomcat5.5:
-   Changes to logging interface
-   Changes to request pipeline
* Tue Jan 30 2007
- remove self-provides
* Tue Nov 21 2006
- fixed the lib path to JRE
* Tue Oct 17 2006
- Remove whitepace indent on %%define of CATALINA_HOME in the spec file
  as it was not getting expanded by the build system with the indent.
* Tue Oct 17 2006
-  Updated the tarball to match the svn id for our repo.
* Tue Oct 17 2006
-  Initial revision. Tomcat apparmor plugin - FATE: 300507