diff --git a/hibernate-jpa-2.0-api-1.0.1.Final-encoding.patch b/hibernate-jpa-2.0-api-1.0.1.Final-encoding.patch new file mode 100644 index 0000000000000000000000000000000000000000..42ef22694736a5f954fedfaf177603dd013d3d0a --- /dev/null +++ b/hibernate-jpa-2.0-api-1.0.1.Final-encoding.patch @@ -0,0 +1,49 @@ +diff -Naur hibernate-jpa-2.0-api-1.0.1.Final/src/main/java/javax/persistence/EntityManager.java hibernate-jpa-2.0-api-1.0.1.Final-work/src/main/java/javax/persistence/EntityManager.java +--- hibernate-jpa-2.0-api-1.0.1.Final/src/main/java/javax/persistence/EntityManager.java 2011-06-13 05:58:51.000000000 -0400 ++++ hibernate-jpa-2.0-api-1.0.1.Final-work/src/main/java/javax/persistence/EntityManager.java 2012-01-15 09:49:01.036261572 -0500 +@@ -103,7 +103,7 @@ + * not exist + * @throws IllegalArgumentException if the first argument does + * not denote an entity type or the second argument is +- * is not a valid type for that entity’s primary key or ++ * is not a valid type for that entity's primary key or + * is null + */ + public T find(Class entityClass, Object primaryKey); +@@ -123,7 +123,7 @@ + * not exist + * @throws IllegalArgumentException if the first argument does + * not denote an entity type or the second argument is +- * is not a valid type for that entity’s primary key or ++ * is not a valid type for that entity's primary key or + * is null + * @since Java Persistence 2.0 + */ +@@ -244,7 +244,7 @@ + * @return the found entity instance + * @throws IllegalArgumentException if the first argument does + * not denote an entity type or the second argument is +- * not a valid type for that entity’s primary key or ++ * not a valid type for that entity's primary key or + * is null + * @throws EntityNotFoundException if the entity state + * cannot be accessed +@@ -722,4 +722,4 @@ + * @since Java Persistence 2.0 + */ + public Metamodel getMetamodel(); +-} +\ No newline at end of file ++} +diff -Naur hibernate-jpa-2.0-api-1.0.1.Final/src/main/java/javax/persistence/MapsId.java hibernate-jpa-2.0-api-1.0.1.Final-work/src/main/java/javax/persistence/MapsId.java +--- hibernate-jpa-2.0-api-1.0.1.Final/src/main/java/javax/persistence/MapsId.java 2011-06-13 05:58:51.000000000 -0400 ++++ hibernate-jpa-2.0-api-1.0.1.Final-work/src/main/java/javax/persistence/MapsId.java 2012-01-15 09:49:25.292274457 -0500 +@@ -72,7 +72,7 @@ + /** + * (Optional) The name of the attribute within the composite key + * to which the relationship attribute corresponds. If not +- * supplied, the relationship maps the entity’s primary ++ * supplied, the relationship maps the entity's primary + * key. + */ + String value() default ""; diff --git a/hibernate-jpa-2.0-api-1.0.1.Final-osgi-manifest.patch b/hibernate-jpa-2.0-api-1.0.1.Final-osgi-manifest.patch new file mode 100644 index 0000000000000000000000000000000000000000..440d9288d6671c5cd5bc98c9ccbf6f2e465b9005 --- /dev/null +++ b/hibernate-jpa-2.0-api-1.0.1.Final-osgi-manifest.patch @@ -0,0 +1,13 @@ +--- hibernate-jpa-2.0-api-1.0.1.Final/pom.xml.orig 2011-06-15 03:35:58.602491000 +0100 ++++ hibernate-jpa-2.0-api-1.0.1.Final/pom.xml 2012-06-19 13:50:00.920020067 +0100 +@@ -127,6 +127,10 @@ + ${pom.version} + hibernate.org + JPA API ++ hibernate-jpa-2.0-api ++ org.hibernate.javax.persistence ++ javax.persistence, javax.persistence.spi ++ ${pom.version} + + + diff --git a/hibernate-jpa-2.0-api-1.0.1.Final.tar.gz b/hibernate-jpa-2.0-api-1.0.1.Final.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9ab3571c863d4b773ae5590fe60891bf6d44936c Binary files /dev/null and b/hibernate-jpa-2.0-api-1.0.1.Final.tar.gz differ diff --git a/hibernate-jpa-2.0-api.spec b/hibernate-jpa-2.0-api.spec new file mode 100644 index 0000000000000000000000000000000000000000..fbf8aaac95126154d5a6679bef026e4b7ff2184e --- /dev/null +++ b/hibernate-jpa-2.0-api.spec @@ -0,0 +1,48 @@ +%global namedreltag .Final +%global namedversion %{version}%{?namedreltag} +Name: hibernate-jpa-2.0-api +Version: 1.0.1 +Release: 1 +Summary: Java Persistence 2.0 (JSR 317) API +License: EPL and BSD +URL: http://www.hibernate.org/ +# svn export http://anonsvn.jboss.org/repos/hibernate/jpa-api/tags/hibernate-jpa-2.0-api-1.0.1.Final/ hibernate-jpa-2.0-api-1.0.1.Final +# tar -zcvf hibernate-jpa-2.0-api-1.0.1.Final.tar.gz hibernate-jpa-2.0-api-1.0.1.Final +Source0: %{name}-%{namedversion}.tar.gz +Patch0: %{name}-%{namedversion}-encoding.patch +Patch1: %{name}-%{namedversion}-osgi-manifest.patch +BuildArch: noarch +BuildRequires: maven-local maven-release-plugin +%description +Hibernate definition of the Java Persistence 2.0 (JSR 317) API. + +%package javadoc +Summary: Javadoc for %{name} +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -n %{name}-%{namedversion} +%patch0 -p1 +%patch1 -p1 +%pom_xpath_remove pom:build/pom:extensions +%pom_remove_plugin :maven-source-plugin +sed -i 's/\r//' src/main/javadoc/jdstyle.css + +%build +%mvn_build + +%install +sed -i 's/\r//' target/site/apidocs/jdstyle.css +%mvn_install + +%files -f .mfiles +%doc readme.txt +%license license.txt + +%files javadoc -f .mfiles-javadoc +%license license.txt + +%changelog +* Sat Aug 22 2020 Jeffery.Gao - 1.0.1-1 +- package init diff --git a/hibernate-jpa-2.0-api.yaml b/hibernate-jpa-2.0-api.yaml new file mode 100644 index 0000000000000000000000000000000000000000..00bbaf050db91e87f0ad529e5c29027a1bf150ae --- /dev/null +++ b/hibernate-jpa-2.0-api.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA