Package Init
This commit is contained in:
parent
506472c710
commit
ca76e7451a
141
eclipse-javax.persistence-template.pom.xml
Normal file
141
eclipse-javax.persistence-template.pom.xml
Normal file
@ -0,0 +1,141 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.eclipse.persistence</groupId>
|
||||
<artifactId>javax.persistence</artifactId>
|
||||
<version>@VERSION@</version>
|
||||
<packaging>jar</packaging>
|
||||
<name>EclipseLink Java Persistence API</name>
|
||||
<description>EclipseLink Javax Persistence API v@API_VERSION@</description>
|
||||
<url>http://www.eclipse.org/eclipselink</url>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.osgi</groupId>
|
||||
<artifactId>org.eclipse.osgi</artifactId>
|
||||
<version>3.6.0.v20100517</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<sourceDirectory>${basedir}/src</sourceDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>${basedir}/resource</directory>
|
||||
<includes>
|
||||
<include>**/*.html</include>
|
||||
</includes>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>${basedir}/src</directory>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
<exclude>**/.*</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>${basedir}/src</directory>
|
||||
<includes>
|
||||
<include>**/packageinfo</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>2.5</version>
|
||||
<configuration>
|
||||
<encoding>${project.build.sourceEncoding}</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.3.1</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<!-- add the generated manifest to the archive -->
|
||||
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.0.2</version>
|
||||
<configuration>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
<encoding>${project.build.sourceEncoding}</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.8</version>
|
||||
<configuration>
|
||||
<encoding>${project.build.sourceEncoding}</encoding>
|
||||
<nodeprecated>false</nodeprecated>
|
||||
<use>false</use>
|
||||
<author>true</author>
|
||||
<version>true</version>
|
||||
<doctitle><![CDATA[<h1>Java Persistence API @API_VERSION@</h1>]]>
|
||||
</doctitle>
|
||||
<header><![CDATA[${project.description}]]>
|
||||
</header>
|
||||
<bottom><![CDATA[<font size=-1>
|
||||
<p>Copyright © Eclipse.org - EclipseLink Project (2000, 2014). All Rights Reserved. Licensed under the Eclipse Public License v1.0.</font>]]>
|
||||
</bottom>
|
||||
<detectJavaApiLink>false</detectJavaApiLink>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<version>2.0.0</version>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Bundle-Activator>org.eclipse.persistence.javax.persistence.osgi.Activator</Bundle-Activator>
|
||||
<Bundle-ClassPath>.</Bundle-ClassPath>
|
||||
<Bundle-Name>Java Persistence API @API_VERSION@</Bundle-Name>
|
||||
<Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
|
||||
<Bundle-SymbolicName>javax.persistence</Bundle-SymbolicName>
|
||||
<Bundle-Vendor>Eclipse.org - EclipseLink Project</Bundle-Vendor>
|
||||
<Bundle-Version>${project.version}</Bundle-Version>
|
||||
<Extension-Name>javax.persistence</Extension-Name>
|
||||
<Export-Package>javax.persistence,
|
||||
javax.persistence.spi,
|
||||
javax.persistence.criteria,
|
||||
javax.persistence.metamodel</Export-Package>
|
||||
<Import-Package>javax.sql;resolution:=optional,
|
||||
org.osgi.framework;resolution:=optional,
|
||||
org.osgi.service.jpa</Import-Package>
|
||||
<Private-Package>.,org.eclipse.persistence.javax.persistence.osgi</Private-Package>
|
||||
<Implementation-Vendor>Eclipse.org - EclipseLink Project</Implementation-Vendor>
|
||||
<Implementation-Version>@IMPL_VERSION@</Implementation-Version>
|
||||
<Specification-Vendor>Oracle</Specification-Vendor>
|
||||
<Specification-Version>@API_VERSION@</Specification-Version>
|
||||
</instructions>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bundle-manifest</id>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
62
eclipselink-persistence-api.spec
Normal file
62
eclipselink-persistence-api.spec
Normal file
@ -0,0 +1,62 @@
|
||||
Name: eclipselink-persistence-api
|
||||
Version: 2.1.0
|
||||
Release: 7
|
||||
Summary: EclipseLink Java persistence api
|
||||
License: EPL and ASL 2.0
|
||||
URL: http://www.eclipse.org/eclipselink/
|
||||
Source0: http://git.eclipse.org/c/eclipselink/javax.persistence.git/snapshot/javax.persistence-2.1.0.v201304241213.tar.xz
|
||||
Source1: eclipse-javax.persistence-template.pom.xml
|
||||
|
||||
BuildRequires: java-javadoc maven-local mvn(org.apache.felix:maven-bundle-plugin) mvn(org.eclipse.osgi:org.eclipse.osgi)
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
EclipseLink delivers a comprehensive open-source Java persistence solution implemeting.
|
||||
This package provides Java Persistence 2.1 API.
|
||||
|
||||
%package help
|
||||
Summary: Documentation for eclipselink-persistence-api
|
||||
Provides: %{name}-javadoc = %{version}-%{release}
|
||||
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
||||
|
||||
%description help
|
||||
This package contains documentation files for eclipselink-persistence-api.
|
||||
|
||||
%prep
|
||||
%autosetup -n javax.persistence-2.1.0.v201304241213
|
||||
|
||||
cp -p %{SOURCE1} pom.xml
|
||||
sed -i "s|@VERSION@|%{version}|" pom.xml
|
||||
sed -i "s|@API_VERSION@|2.1|" pom.xml
|
||||
sed -i "s|@IMPL_VERSION@|2.1.0.v201304241213|" pom.xml
|
||||
|
||||
cp -p resource/about.html ./
|
||||
cp -p resource/license.html ./
|
||||
cp -p resource/readme.html ./
|
||||
|
||||
mkdir -p target/classes
|
||||
rm -r META-INF/MANIFEST.MF
|
||||
mv META-INF target/classes/
|
||||
|
||||
native2ascii -encoding UTF8 src/javax/persistence/EntityManager.java src/javax/persistence/EntityManager.java
|
||||
native2ascii -encoding UTF8 src/javax/persistence/MapsId.java src/javax/persistence/MapsId.java
|
||||
|
||||
%mvn_file :javax.persistence eclipselink-persistence-api
|
||||
|
||||
%build
|
||||
%mvn_build
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
%files -f .mfiles
|
||||
%doc about.html changes readme.html changes readme.txt
|
||||
%license license.html
|
||||
|
||||
%files help -f .mfiles-javadoc
|
||||
%license readme.txt
|
||||
|
||||
%changelog
|
||||
* Wed Feb 26 2020 lihao <lihao129@huawei.com> - 2.1.0-7
|
||||
- Package Init
|
||||
BIN
javax.persistence-2.1.0.v201304241213.tar.xz
Normal file
BIN
javax.persistence-2.1.0.v201304241213.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user