package init
This commit is contained in:
parent
4d7c54a3d1
commit
3fa6c5cf4b
31
castor-1.3.2-fix-unmappable-chars.patch
Normal file
31
castor-1.3.2-fix-unmappable-chars.patch
Normal file
@ -0,0 +1,31 @@
|
||||
--- ddlgen/src/main/java/org/castor/ddlgen/AbstractGenerator.java.orig 2013-08-09 13:12:45.724368108 +0100
|
||||
+++ ddlgen/src/main/java/org/castor/ddlgen/AbstractGenerator.java 2013-08-09 13:13:28.192362684 +0100
|
||||
@@ -52,7 +52,7 @@
|
||||
* The class SchemaObjectFactory who handles the SchemaObject creation must
|
||||
* be overwritten.
|
||||
* <li/> You must overwrite the TypeMapper if mapping between JDBC types and
|
||||
- * specific DBMS’s types is different among various DBMS.
|
||||
+ * specific DBMSs types is different among various DBMS.
|
||||
* <p/>The example bellow shows how to create a generator for DB2:
|
||||
* <li/> <b>Generator for DB2</b>
|
||||
* <pre>
|
||||
@@ -128,7 +128,7 @@
|
||||
* For example:
|
||||
* <pre>
|
||||
* Generator generator = GeneratorFactory.
|
||||
- * createDDLGenerator(“mysql”, “ddl.properties”, “mysql.properties”);
|
||||
+ * createDDLGenerator(mysql, ddl.properties, mysql.properties);
|
||||
* </pre>
|
||||
*
|
||||
* And to generate DDL, it should specify the printer and call generateDDL method.
|
||||
--- xml/src/main/java/org/exolab/castor/types/DateTimeBase.java.orig 2011-03-29 10:20:42.000000000 +0100
|
||||
+++ xml/src/main/java/org/exolab/castor/types/DateTimeBase.java 2013-08-09 13:16:50.296293006 +0100
|
||||
@@ -42,7 +42,7 @@
|
||||
*
|
||||
* $Id: DateTimeBase.java 8516 2010-01-25 12:14:04Z wguttmn $
|
||||
* Date Author Changes
|
||||
- * 08/30/2001 Arnaud Blandin added to Calendar() (patch from Sébastien Stormacq [S.Stormacq@aubay-si.lu])
|
||||
+ * 08/30/2001 Arnaud Blandin added to Calendar() (patch from Sebastien Stormacq [S.Stormacq@aubay-si.lu])
|
||||
* 05/29/2001 Arnaud Blandin Added order methods
|
||||
* 05/22/2001 Arnaud Blandin Created
|
||||
*/
|
||||
BIN
castor-1.3.3-src.tgz
Normal file
BIN
castor-1.3.3-src.tgz
Normal file
Binary file not shown.
70
castor.spec
Normal file
70
castor.spec
Normal file
@ -0,0 +1,70 @@
|
||||
Summary: An open source data binding framework for Java
|
||||
Name: castor
|
||||
Version: 1.3.3
|
||||
Release: 1
|
||||
License: BSD and ASL 2.0
|
||||
URL: http://castor-data-binding.github.io/castor/
|
||||
Source0: http://dist.codehaus.org/castor/%{version}/castor-%{version}-src.tgz
|
||||
Patch0: castor-1.3.2-fix-unmappable-chars.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: maven-local mvn(ant:ant) mvn(commons-cli:commons-cli)
|
||||
BuildRequires: mvn(commons-collections:commons-collections) mvn(commons-lang:commons-lang)
|
||||
BuildRequires: mvn(commons-logging:commons-logging) mvn(edu.umd.cs:multithreadedtc)
|
||||
BuildRequires: mvn(jakarta-regexp:jakarta-regexp) mvn(javax.inject:javax.inject)
|
||||
BuildRequires: mvn(junit:junit) mvn(ldapsdk:ldapsdk) mvn(log4j:log4j:1.2.16)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
||||
BuildRequires: mvn(org.codehaus.castor:castor-xml) mvn(org.codehaus:codehaus-parent:pom:)
|
||||
BuildRequires: mvn(org.codehaus.mojo:castor-maven-plugin) mvn(org.easymock:easymock)
|
||||
BuildRequires: mvn(org.springframework:spring-context) mvn(oro:oro) mvn(velocity:velocity)
|
||||
BuildRequires: mvn(xmlunit:xmlunit)
|
||||
Obsoletes: castor-demo < 1.3.2
|
||||
Obsoletes: castor-test < 1.3.2
|
||||
Obsoletes: castor-xml < 1.3.2
|
||||
Obsoletes: castor-doc < 1.3.2
|
||||
%description
|
||||
Castor is an open source data binding framework for Java. It's basically
|
||||
the shortest path between Java objects, XML documents and SQL tables.
|
||||
Castor provides Java to XML binding, Java to SQL persistence, and more.
|
||||
|
||||
%package javadoc
|
||||
Summary: API documentation for %{name}
|
||||
%description javadoc
|
||||
This package contains the API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
find . -name "*.jar" -exec rm -f {} \;
|
||||
find . -name "*.class" -exec rm -f {} \;
|
||||
%patch0 -p0 -b.orig
|
||||
%pom_disable_module anttask
|
||||
%pom_disable_module xmlctf-framework
|
||||
%pom_disable_module maven-plugins
|
||||
%pom_disable_module xml-annotations
|
||||
%pom_disable_module cpactf
|
||||
%pom_disable_module jpa-extensions-it
|
||||
%pom_disable_module xmlctf
|
||||
%pom_remove_dep tyrex:tyrex
|
||||
%pom_remove_dep tyrex:tyrex cpa
|
||||
%pom_remove_dep org.springframework:spring-test xml
|
||||
%pom_xpath_remove "pom:build/pom:extensions"
|
||||
sed -i 's@cglib-nodep@cglib@g' pom.xml cpa/pom.xml
|
||||
sed -i 's@edu.umd.cs.mtc@edu.umd.cs@g' pom.xml xml/pom.xml
|
||||
%pom_remove_dep "javax.xml.stream:stax-api" . xml
|
||||
%pom_remove_dep "stax:stax" . xml
|
||||
|
||||
%build
|
||||
%mvn_build -- -Dgpg.skip=true -Dmaven.test.skip=true
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
%files -f .mfiles
|
||||
%doc src/doc/license.txt src/doc/new-license.txt
|
||||
%dir %{_javadir}/%{name}
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%doc src/doc/license.txt src/doc/new-license.txt
|
||||
|
||||
%changelog
|
||||
* Wed Oct 28 2020 shaoqiang kang <kangshaoqiang1@huawei.com> - 1.3.3-1
|
||||
- Package init
|
||||
4
castor.yaml
Normal file
4
castor.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: castor-data-binding/castor
|
||||
tag_prefix: ""
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user