diff --git a/ehcache-core-2.6.11.tar.gz b/ehcache-core-2.6.11.tar.gz new file mode 100644 index 0000000..5a0f2d5 Binary files /dev/null and b/ehcache-core-2.6.11.tar.gz differ diff --git a/ehcache-core-2.6.7-java8.patch b/ehcache-core-2.6.7-java8.patch new file mode 100644 index 0000000..74d0d94 --- /dev/null +++ b/ehcache-core-2.6.7-java8.patch @@ -0,0 +1,29 @@ +--- a/src/main/java/net/sf/ehcache/config/CacheConfiguration.java 2013-01-17 08:54:30.000000000 +0100 ++++ b/src/main/java/net/sf/ehcache/config/CacheConfiguration.java-ebourg 2014-04-07 12:33:12.176458079 +0200 +@@ -2543,7 +2543,7 @@ + /** + * Accessor + */ +- public List getCacheEventListenerConfigurations() { ++ public List getCacheEventListenerConfigurations() { + return cacheEventListenerConfigurations; + } + +@@ -2552,7 +2552,7 @@ + * + * @return the configuration + */ +- public List getCacheExtensionConfigurations() { ++ public List getCacheExtensionConfigurations() { + return cacheExtensionConfigurations; + } + +@@ -2561,7 +2561,7 @@ + * + * @return the configuration + */ +- public List getCacheLoaderConfigurations() { ++ public List getCacheLoaderConfigurations() { + return cacheLoaderConfigurations; + } + diff --git a/ehcache-core.spec b/ehcache-core.spec new file mode 100644 index 0000000..661d20d --- /dev/null +++ b/ehcache-core.spec @@ -0,0 +1,76 @@ +Name: ehcache-core +Version: 2.6.11 +Release: 7 +Summary: Easy Hibernate Cache +License: ASL 2.0 +URL: http://ehcache.org/ +Source0: %{name}-%{version}.tar.gz + +BuildRequires: maven-local mvn(javax.servlet:javax.servlet-api) mvn(javax.transaction:jta) +BuildRequires: mvn(net.sf.ehcache:sizeof-agent) mvn(net.sf.ehcache:ehcache-parent:pom:) +BuildRequires: mvn(org.codehaus.mojo:rmic-maven-plugin) mvn(org.codehaus.mojo:xml-maven-plugin) +BuildRequires: mvn(org.codehaus.plexus:plexus-resources) mvn(org.hibernate:hibernate-core:3) +BuildRequires: mvn(org.slf4j:slf4j-api) mvn(org.slf4j:slf4j-jdk14) + +Requires: hibernate3 >= 3.6.10-7 + +Patch0000: ehcache-core-2.6.7-java8.patch + +BuildArch: noarch + +%description +Ehcache is an open source, standards-based cache that boosts performance, +offloads your database, and simplifies scalability. It's the most widely-used +Java-based cache because it's robust, proven, full-featured, and integrates with +other popular libraries and frameworks. Ehcache scales from in-process caching, all +the way to mixed in-process/out-of-process deployments with terabyte-sized caches. + +%package help +Summary: Documentation for ehcache-core +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} + +%description help +Documentation for ehcache-core. + +%prep +%autosetup -p1 +%pom_remove_parent +%pom_remove_plugin :maven-javadoc-plugin +%pom_xpath_inject "pom:project" "net.sf.ehcache" + +for file in gmaven-plugin lifecycle-mapping maven-checkstyle-plugin maven-source-plugin maven-assembly-plugin; do + %pom_remove_plugin :$file +done + +%pom_xpath_set "pom:dependency[pom:groupId = 'org.hibernate']/pom:version" 3 + +%pom_change_dep :servlet-api :javax.servlet-api:3.1.0 + +%pom_xpath_remove "pom:profiles/pom:profile[pom:id = 'buildnumber-git']" + +%pom_remove_dep net.sf.hibernate:hibernate +%pom_xpath_remove "pom:dependency[pom:scope = 'test']" + +%pom_xpath_remove "pom:dependency/pom:scope" + +%pom_remove_plugin :maven-dependency-plugin + +%mvn_file :%{name} %{name} +%mvn_alias :%{name} net.sf.ehcache:ehcache + +%build + +%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8 + +%install +%mvn_install + +%files -f .mfiles +%license src/assemble/EHCACHE-CORE-LICENSE.txt + +%files help -f .mfiles-javadoc + +%changelog +* Wed Feb 26 2020 lihao - 2.6.11-6 +- Package Init diff --git a/get_tgz.sh b/get_tgz.sh new file mode 100644 index 0000000..d9688c0 --- /dev/null +++ b/get_tgz.sh @@ -0,0 +1,5 @@ +#!/bin/sh +svn export http://svn.terracotta.org/svn/ehcache/tags/ehcache-core-2.6.11 --force +find ehcache-core-2.6.11/ -name '*.jar' -delete +find ehcache-core-2.6.11/ -name '*.class' -delete +tar --remove-files -zcf ehcache-core-2.6.11.tar.gz ehcache-core-2.6.11