This commit is contained in:
hht8 2020-09-01 11:21:10 +08:00
parent 7864d16d3d
commit 888d4a3199
5 changed files with 15 additions and 66 deletions

View File

@ -6,8 +6,12 @@ Release: 1
Summary: Java persistence API implementation
License: ASL 2.0
URL: http://geronimo.apache.org/
Source0: https://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jpa_3.0_spec/1.1.1/geronimo-jpa_3.0_spec-1.1.1-javadoc.jar
Source1: http://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-jpa_3.0_spec-1.1.1/pom.xml
# Unfortunately no source release was created in
# http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jpa_3.0_spec/1.1.1/
# so we do:
# svn export http://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-jpa_3.0_spec-1.1.1
# tar caf geronimo-jpa_3.0_spec-1.1.1.tar.xz geronimo-jpa_3.0_spec-1.1.1
Source0: %{spec_name}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: maven-local mvn(org.apache.geronimo.specs:specs:pom:)
Provides: jpa_api = %{spec_ver}
@ -24,8 +28,7 @@ Summary: API documentation for %{name}
%{summary}.
%prep
%autosetup -c %{spec_name}-%{version}
cp %{SOURCE1} ./
%setup -q -n %{spec_name}-%{version}
%build
%mvn_file : %{name}/%{name} %{name} jpa
@ -36,18 +39,14 @@ cp %{SOURCE1} ./
%mvn_install
install -d -m 755 %{buildroot}%{_javadir}/javax.persistence/
ln -sf ../%{name}.jar %{buildroot}%{_javadir}/javax.persistence/
install -d %{_datadir}/%{name}-javadoc/html
cp %_builddir/%{name}-%{version}/*.html %{_datadir}/%{name}-javadoc/html
cp -r %_builddir/%{name}-%{version}/src-html %{_datadir}/%{name}-javadoc
%files -f .mfiles
%doc META-INF/{LICENSE,NOTICE}
%doc LICENSE.txt NOTICE.txt
%{_javadir}/javax.persistence/
%files javadoc
%doc META-INF/{LICENSE,NOTICE}
%{_datadir}/%{name}-javadoc/{html,src-html}
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt
%changelog
* Mon Jul 27 2020 huanghaitao <huanghaitao8@huawei.com> - 1.1.1-1
* Tue Sep 1 2020 huanghaitao <huanghaitao8@huawei.com> - 1.1.1-1
- package init

View File

@ -1,4 +1,4 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA
version_control: svn
src_repo: http://svn.apache.org/repos/asf/geronimo/specs
tag_prefix: "geronimo-jpa_3.0_spec-"
seperator: "."

Binary file not shown.

50
pom.xml
View File

@ -1,50 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!-- $Rev$ $Date$ -->
<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>
<parent>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>specs</artifactId>
<version>1.4</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>geronimo-jpa_3.0_spec</artifactId>
<packaging>jar</packaging>
<name>JPA 1.0</name>
<version>1.1.1</version>
<properties>
<geronimo.osgi.export.pkg>javax.persistence*</geronimo.osgi.export.pkg>
<geronimo.osgi.export.version>3.0</geronimo.osgi.export.version>
</properties>
<scm>
<connection>scm:svn:https://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-jpa_3.0_spec-1.1.1</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-jpa_3.0_spec-1.1.1</developerConnection>
<url>scm:svn:https://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-jpa_3.0_spec-1.1.1</url>
</scm>
</project>