commit
3b61df2e9e
12
MANIFEST-code.txt
Normal file
12
MANIFEST-code.txt
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
||||||
|
<manifestEntries>
|
||||||
|
<Implementation-Url>http://hibernate.org</Implementation-Url>
|
||||||
|
<Implementation-Vendor>Hibernate.org</Implementation-Vendor>
|
||||||
|
<Implementation-Vendor-Id>org.hibernate</Implementation-Vendor-Id>
|
||||||
|
<Implementation-Version>${project.version}</Implementation-Version>
|
||||||
|
<Main-Class>org.hibernate.annotations.common.Version</Main-Class>
|
||||||
|
</manifestEntries>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
19
OSGi-code.txt
Normal file
19
OSGi-code.txt
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<configuration>
|
||||||
|
<instructions>
|
||||||
|
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
|
||||||
|
<Bundle-Name>${project.artifactId}</Bundle-Name>
|
||||||
|
<Bundle-Vendor>Hibernate.org</Bundle-Vendor>
|
||||||
|
<Bundle-Version>${project.version}</Bundle-Version>
|
||||||
|
</instructions>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>bundle-manifest</id>
|
||||||
|
<phase>process-classes</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>manifest</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
4
encoding-code.txt
Normal file
4
encoding-code.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
|
</properties>
|
||||||
47
hibernate-commons-annotations-5.0.1.Final.pom
Normal file
47
hibernate-commons-annotations-5.0.1.Final.pom
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.hibernate.common</groupId>
|
||||||
|
<artifactId>hibernate-commons-annotations</artifactId>
|
||||||
|
<version>5.0.1.Final</version>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jboss.logging</groupId>
|
||||||
|
<artifactId>jboss-logging</artifactId>
|
||||||
|
<version>3.3.0.Final</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<name>Hibernate Commons Annotations</name>
|
||||||
|
<description>Common reflection code used in support of annotation processing</description>
|
||||||
|
<url>http://hibernate.org</url>
|
||||||
|
<organization>
|
||||||
|
<name>Hibernate.org</name>
|
||||||
|
<url>http://hibernate.org</url>
|
||||||
|
</organization>
|
||||||
|
<issueManagement>
|
||||||
|
<system>jira</system>
|
||||||
|
<url>https://hibernate.atlassian.net/browse/HCANN</url>
|
||||||
|
</issueManagement>
|
||||||
|
<scm>
|
||||||
|
<url>http://github.com/hibernate/hibernate-commons-annotations</url>
|
||||||
|
<connection>scm:git:http://github.com/hibernate/hibernate-commons-annotations.git</connection>
|
||||||
|
<developerConnection>scm:git:git@github.com:hibernate/hibernate-commons-annotations.git</developerConnection>
|
||||||
|
</scm>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>GNU Lesser General Public License</name>
|
||||||
|
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
||||||
|
<comments>See discussion at http://hibernate.org/license for more details.</comments>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<id>hibernate-team</id>
|
||||||
|
<name>The Hibernate Development Team</name>
|
||||||
|
<organization>Hibernate.org</organization>
|
||||||
|
<organizationUrl>http://hibernate.org</organizationUrl>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
</project>
|
||||||
BIN
hibernate-commons-annotations-5.0.1.Final.tar.gz
Normal file
BIN
hibernate-commons-annotations-5.0.1.Final.tar.gz
Normal file
Binary file not shown.
71
hibernate-commons-annotations.spec
Normal file
71
hibernate-commons-annotations.spec
Normal file
@ -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 <mengxian@huawei.com> - 5.0.1-7
|
||||||
|
- Add missing source files
|
||||||
|
|
||||||
|
* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 5.0.1-6
|
||||||
|
- Package init
|
||||||
|
|
||||||
22
logging-code.txt
Normal file
22
logging-code.txt
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<configuration>
|
||||||
|
<defaultOutputDirectory>${project.build.directory}/generated-sources/logging</defaultOutputDirectory>
|
||||||
|
<processors>
|
||||||
|
<processor>org.jboss.logging.processor.apt.LoggingToolsProcessor</processor>
|
||||||
|
</processors>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>process</id>
|
||||||
|
<phase>generate-sources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>process</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jboss.logging</groupId>
|
||||||
|
<artifactId>jboss-logging-processor</artifactId>
|
||||||
|
<version>2.0.1.Final</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
Loading…
x
Reference in New Issue
Block a user