Package Init

This commit is contained in:
qiegewala 2020-02-28 16:53:12 +08:00
parent 5cf2ef7c25
commit 1626142888
4 changed files with 110 additions and 0 deletions

BIN
ehcache-core-2.6.11.tar.gz Normal file

Binary file not shown.

View File

@ -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<CacheEventListenerFactoryConfiguration> getCacheEventListenerConfigurations() {
return cacheEventListenerConfigurations;
}
@@ -2552,7 +2552,7 @@
*
* @return the configuration
*/
- public List getCacheExtensionConfigurations() {
+ public List<CacheExtensionFactoryConfiguration> getCacheExtensionConfigurations() {
return cacheExtensionConfigurations;
}
@@ -2561,7 +2561,7 @@
*
* @return the configuration
*/
- public List getCacheLoaderConfigurations() {
+ public List<CacheLoaderFactoryConfiguration> getCacheLoaderConfigurations() {
return cacheLoaderConfigurations;
}

76
ehcache-core.spec Normal file
View File

@ -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" "<groupId>net.sf.ehcache</groupId>"
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 <lihao129@huawei.com> - 2.6.11-6
- Package Init

5
get_tgz.sh Normal file
View File

@ -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