diff --git a/MANIFEST-code.txt b/MANIFEST-code.txt new file mode 100644 index 0000000..004e0c8 --- /dev/null +++ b/MANIFEST-code.txt @@ -0,0 +1,12 @@ + + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + http://hibernate.org + Hibernate.org + org.hibernate + ${project.version} + org.hibernate.annotations.common.Version + + + diff --git a/OSGi-code.txt b/OSGi-code.txt new file mode 100644 index 0000000..5aeeee9 --- /dev/null +++ b/OSGi-code.txt @@ -0,0 +1,19 @@ + +true + + + ${project.groupId}.${project.artifactId} + ${project.artifactId} + Hibernate.org + ${project.version} + + + + + bundle-manifest + process-classes + + manifest + + + diff --git a/encoding-code.txt b/encoding-code.txt new file mode 100644 index 0000000..613e3ca --- /dev/null +++ b/encoding-code.txt @@ -0,0 +1,4 @@ + + UTF-8 + UTF-8 + diff --git a/hibernate-commons-annotations-5.0.1.Final.pom b/hibernate-commons-annotations-5.0.1.Final.pom new file mode 100644 index 0000000..a32d97b --- /dev/null +++ b/hibernate-commons-annotations-5.0.1.Final.pom @@ -0,0 +1,47 @@ + + + 4.0.0 + org.hibernate.common + hibernate-commons-annotations + 5.0.1.Final + + + org.jboss.logging + jboss-logging + 3.3.0.Final + compile + + + Hibernate Commons Annotations + Common reflection code used in support of annotation processing + http://hibernate.org + + Hibernate.org + http://hibernate.org + + + jira + https://hibernate.atlassian.net/browse/HCANN + + + http://github.com/hibernate/hibernate-commons-annotations + scm:git:http://github.com/hibernate/hibernate-commons-annotations.git + scm:git:git@github.com:hibernate/hibernate-commons-annotations.git + + + + GNU Lesser General Public License + http://www.gnu.org/licenses/lgpl-2.1.html + See discussion at http://hibernate.org/license for more details. + repo + + + + + hibernate-team + The Hibernate Development Team + Hibernate.org + http://hibernate.org + + + diff --git a/hibernate-commons-annotations-5.0.1.Final.tar.gz b/hibernate-commons-annotations-5.0.1.Final.tar.gz new file mode 100644 index 0000000..751545c Binary files /dev/null and b/hibernate-commons-annotations-5.0.1.Final.tar.gz differ diff --git a/hibernate-commons-annotations.spec b/hibernate-commons-annotations.spec new file mode 100644 index 0000000..a97e1ce --- /dev/null +++ b/hibernate-commons-annotations.spec @@ -0,0 +1,71 @@ +%global finalversion %{version}.Final +%global name_finalver %{name}-%{finalversion} + +Name: hibernate-commons-annotations +Version: 5.0.1 +Release: 7 +Summary: Hibernate Commons Annotations +License: LGPLv2 +URL: http://www.hibernate.org/ + +Source0: https://github.com/hibernate/%{name}/archive/%{finalversion}/%{name_finalver}.tar.gz +Source1: https://repository.jboss.org/nexus/service/local/repositories/central/content/org/hibernate/common/%{name}/%{finalversion}/%{name_finalver}.pom +Source2: encoding-code.txt +Source3: logging-code.txt +Source4: MANIFEST-code.txt +Source5: OSGi-code.txt + +BuildArch: noarch + +BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.bsc.maven:maven-processor-plugin) mvn(org.jboss.logging:jboss-logging) +BuildRequires: mvn(org.jboss.logging:jboss-logging-annotations) +BuildRequires: mvn(org.jboss.logging:jboss-logging-processor) + +%description +Hibernate Commons Annotations is a utility project used by several +Hibernate projects; as a user of Hibernate libraries you probably +are not going to use this directly. + +It's first scope is to support Java Generics type discovery. +It's second scope is to support Java Annotations overriding +through XML files (mainly but not conceptually limited to). + +%package_help + + +%prep +%autosetup -n %{name_finalver} + +find . -name '*.class' -print -delete +find . -name '*.jar' -print -delete + +cp %{SOURCE1} pom.xml + +%pom_xpath_inject pom:project "`cat %{SOURCE2}`" +%pom_add_plugin org.bsc.maven:maven-processor-plugin:2.2.4 . "`cat %{SOURCE3}`" +%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.6 . "`cat %{SOURCE4}`" +%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . "`cat %{SOURCE5}`" +%pom_add_dep org.jboss.logging:jboss-logging-annotations:2.0.1.Final:compile +%pom_add_dep junit:junit:4.12:test + +%build + +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%license lgpl.txt + +%files help -f .mfiles-javadoc +%doc changelog.txt readme.txt + +%changelog +* Mon Dec 16 2019 mengxian - 5.0.1-7 +- Add missing source files + +* Tue Dec 10 2019 mengxian - 5.0.1-6 +- Package init + diff --git a/logging-code.txt b/logging-code.txt new file mode 100644 index 0000000..f5cfee0 --- /dev/null +++ b/logging-code.txt @@ -0,0 +1,22 @@ + + ${project.build.directory}/generated-sources/logging + + org.jboss.logging.processor.apt.LoggingToolsProcessor + + + + + process + generate-sources + + process + + + + + + org.jboss.logging + jboss-logging-processor + 2.0.1.Final + +