Search
j0ke.net Open Build Service
>
Projects
>
SUSE
:
Manager
:
1.2
>
oscache
> oscache.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File oscache.spec of Package oscache
# # spec file for package oscache (Version 2.2) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2000-2005, JPackage Project # All rights reserved. # # 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 http://bugs.opensuse.org/ # %define section free Summary: High performance J2EE caching solution Name: oscache Version: 2.2 Release: 0.3.40 License: The Apache Software License Url: http://www.opensymphony.com/oscache/ Group: Development/Libraries/Java Source0: oscache-2.2-full.zip Source1: oscache-2.2-build.xml Source2: oscache-2.2-build.properties Source3: oscache-2.2-jalopy.xml Source4: oscache-2.2-LICENSE.txt Source5: oscache-2.2-osbuild.xml Source6: oscache-2.2-ivyconf.properties Source7: oscache-2.2-ivyconf.xml Source8: oscache-2.2-ivy.xml Source9: oscache-2.2-oscache.tld Patch0: oscache-2.2-build_xml.patch Patch1: oscache-2.2-osbuild_xml.patch # FIXME: patched to disable testcase for java-1.4.2-bea Patch2: oscache-2.2-TestConcurrency.patch # FIXME: patched to disable testcase for java-1.4.2-bea Patch3: oscache-2.2-TestGeneralCacheAdministrator.patch BuildRequires: jpackage-utils >= 1.6 BuildRequires: ant >= 1.6 java-devel unzip rhino BuildRequires: ant-junit BuildRequires: junit BuildRequires: ivy BuildRequires: ant-jalopy BuildRequires: jalopy BuildRequires: ant-trax BuildRequires: junitperf BuildRequires: httpunit BuildRequires: jms >= 1.1 BuildRequires: servlet >= 2.4 BuildRequires: jakarta-commons-collections BuildRequires: jakarta-commons-logging BuildRequires: jgroups BuildRequires: servletapi4 %if %defined suse_version BuildRequires: unzip BuildRequires: java-devel unzip %endif Requires: jakarta-commons-collections Requires: jakarta-commons-logging BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description 1. OSCache solves fundamental problems for dynamic websites: + Caching Dynamic Content - Dynamic content must often be executed in some form each request, but sometimes that content doesn't change every request. Caching the whole page does not help because sections of the page change every request. OSCache solves this problem by providing a means to cache sections of JSP pages. 2. Caching Binary Content - Generated images and PDFs can be very costly in terms of server load. OSCache solves this problem through a Servlet 2.3 CachingFilter which can cache any URI (such as an entire page or a generated image/PDF) 3. Error Tolerance - If one error occurs somewhere on your dynamic page, chances are the whole page will be returned as an error, even if 95% of the page executed correctly. OSCache solves this problem by allowing you to serve the cached content in the event of an error, and then reporting the error appropriately. %package javadoc License: The Apache Software License Summary: Javadoc for oscache Group: Development/Documentation %description javadoc Javadoc for oscache. %{summary}. %package manual License: The Apache Software License Summary: Documents for oscache Group: Development/Documentation %description manual Documents for oscache. %{summary}. %prep %setup -T -c -n %{name}-%{version} unzip -q %{SOURCE0} for j in $(find . -name "*.jar"); do mv $j $j.no done cp %{SOURCE1} build.xml cp %{SOURCE2} build.properties cp %{SOURCE4} LICENSE.txt cp %{SOURCE5} osbuild.xml cp %{SOURCE6} ivyconf.properties cp %{SOURCE7} ivyconf.xml cp %{SOURCE8} ivy.xml mkdir -p src/etc cp %{SOURCE9} src/etc/oscache.tld touch EMPTY.MF %patch0 -b .sav %patch1 -b .sav %patch2 -b .sav %patch3 -b .sav %build export OPT_JAR_LIST="ivy ant/ant-junit junit ant/ant-trax" ant -Dant.build.javac.source=1.4 -Dant.build.javac.target=1.4 jar docs example-war %install rm -rf $RPM_BUILD_ROOT # jars mkdir -p $RPM_BUILD_ROOT%{_javadir} cp -p build/%{name}-%{version}.jar \ $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version} cp LICENSE.txt $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version} # javadoc mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink rm -rf dist/docs/api # manual mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} cp -pr dist/docs/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} cp -p dist/oscache-example.war $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %post javadoc rm -f %{_javadocdir}/%{name} ln -s %{name}-%{version} %{_javadocdir}/%{name} %postun javadoc if [ "$1" = "0" ]; then rm -f %{_javadocdir}/%{name} fi %files %defattr(0644,root,root,0755) %{_datadir}/%{name}-%{version} %{_javadir}/*.jar %files javadoc %defattr(0644,root,root,0755) %doc %{_javadocdir} %files manual %defattr(0644,root,root,0755) %doc %{_docdir}/%{name}-%{version} %{_docdir}/%{name}-%{version}/* # ----------------------------------------------------------------------------- %changelog * Thu Dec 9 2010 mc@suse.de - initial release