78 lines
2.7 KiB
RPMSpec
78 lines
2.7 KiB
RPMSpec
Name: glassfish-toplink-essentials
|
|
Version: 2.0.46
|
|
Release: 1
|
|
Summary: Glassfish JPA Toplink Essentials
|
|
License: CDDL or GPLv2 with exceptions
|
|
URL: http://glassfish.java.net/javaee5/persistence/
|
|
Source0: https://repo1.maven.org/maven2/toplink/essentials/toplink-essentials/2.0-46/toplink-essentials-2.0-46-sources.jar
|
|
Source1: https://repo1.maven.org/maven2/toplink/essentials/toplink-essentials/2.0-46/toplink-essentials-agent-2.0-46-sources.jar
|
|
Source2: https://repo1.maven.org/maven2/toplink/essentials/toplink-essentials/2.0-46/toplink-essentials-agent-2.0-46.pom
|
|
Source3: https://repo1.maven.org/maven2/toplink/essentials/toplink-essentials/2.0-46/toplink-essentials-2.0-46.pom
|
|
Source4: https://javaee.github.io/glassfish/LICENSE
|
|
Patch0: 0001-fix-toplink-essentials-pom.patch
|
|
Patch1: glassfish-persistence-2.0.41-use_system_antlr.patch
|
|
BuildRequires: java-devel jpackage-utils javapackages-local maven-local ant antlr-tool geronimo-jta geronimo-jpa
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin)
|
|
Requires: antlr-tool geronimo-jpa geronimo-jta jpackage-utils
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Glassfish Persistence Implementation.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name} Implementation
|
|
|
|
%description javadoc
|
|
This package contains javadoc for %{name}.
|
|
|
|
%prep
|
|
%setup -q -c
|
|
cp %{SOURCE1} .
|
|
cp %{SOURCE2} .
|
|
cp %{SOURCE3} .
|
|
cp %{SOURCE4} ./LICENSE.html
|
|
rm -rf ./persistence
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
cp ./toplink-essentials-2.0-46.pom ./pom.xml
|
|
|
|
|
|
%build
|
|
mkdir -p ./src/main/javadoc
|
|
cp -r ./oracle/ ./src/main/javadoc
|
|
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
|
rm -rf ./javax
|
|
rm -rf ./oracle
|
|
rm -rf ./src
|
|
unzip ./toplink-essentials-agent-2.0-46-sources.jar
|
|
rm -f ./pom.xml
|
|
cp ./toplink-essentials-agent-2.0-46.pom ./pom.xml
|
|
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_javadir}/glassfish
|
|
install -m 644 target/toplink-essentials-2.0-46.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
install -m 644 target/toplink-essentials-agent-2.0-46.jar %{buildroot}%{_javadir}/%{name}-agent.jar
|
|
|
|
mkdir -p %{buildroot}%{_mavenpomdir}
|
|
install -pm 644 ./toplink-essentials-2.0-46.pom %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
|
install -pm 644 ./toplink-essentials-agent-2.0-46.pom %{buildroot}%{_mavenpomdir}/JPP-%{name}-agent.pom
|
|
%add_maven_depmap JPP-%{name}-agent.pom %{name}-agent.jar
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
|
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%files -f .mfiles
|
|
%license ./LICENSE.html
|
|
|
|
%files javadoc
|
|
%{_javadocdir}/%{name}
|
|
%license ./LICENSE.html
|
|
|
|
%changelog
|
|
* Thu Aug 27 2020 Ge Wang <wangge20@huawei.com> - 2.0.46-1
|
|
- package init
|
|
|