package init

This commit is contained in:
maminjie 2020-08-25 14:12:03 +08:00
parent 8190f9a52d
commit 36ef0775c8
5 changed files with 92 additions and 0 deletions

7
time-api-0.6.3.pom Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>javax.time</groupId>
<artifactId>time-api</artifactId>
<version>0.6.3</version>
</project>

View File

@ -0,0 +1,26 @@
--- build.xml 2013-09-19 22:18:06.248541482 +0200
+++ build.xml-gil 2013-09-20 05:55:11.705972512 +0200
@@ -145,12 +145,12 @@
<delete file="${basedir}/tzdb.tar" />
</target>
- <target name="compile" depends="compile-core, compile-extra, compile-oracle, compile-openjdk, compile-tzdb" description="compile all sources" />
+ <target name="compile" depends="compile-core, compile-extra, compile-oracle, compile-tzdb" description="compile all sources" />
<!-- ==================================================================== -->
<target name="javadoc" depends="init" description="generates javadoc for the api">
<mkdir dir="${build.javadoc}"/>
- <javadoc sourcepath="${core.main};${ojdk.main};${oracle.main}" destdir="${build.javadoc}"
+ <javadoc sourcepath="${core.main};${extra.main};${oracle.main}" destdir="${build.javadoc}"
classpathref="main.path"
windowtitle="ThreeTen date and time API"
failonerror="true"
@@ -251,7 +251,7 @@
<jar jarfile="${build}/${jarAllName}">
<fileset dir="${core.main.classes}"/>
<fileset dir="${extra.main.classes}"/>
- <fileset dir="${ojdk.main.classes}"/>
+ <!--fileset dir="${ojdk.main.classes}"/-->
<fileset dir="${oracle.main.classes}"/>
</jar>
</target>

55
time-api.spec Normal file
View File

@ -0,0 +1,55 @@
%global oname threeten
%global pomversion 0.6.3
Name: time-api
Version: 0.6.4
Release: 1
Summary: JSR-310 - Date and Time API
License: BSD and GPLv2+ and Public Domain
URL: http://threeten.github.com/
Source0: https://github.com/ThreeTen/threeten/archive/v%{version}.tar.gz
Source1: https://www.datanucleus.org/downloads/maven2/javax/time/%{name}/%{pomversion}/%{name}-%{pomversion}.pom
Patch0: %{name}-0.6.4-dont-compile-openjdk-classes.patch
BuildRequires: java-devel jpackage-utils javapackages-tools maven-local
BuildRequires: ant emma testng
Requires: jpackage-utils
BuildArch: noarch
Provides: bundled(openjdk8-javax-time) = %{version}-%{release}
%description
This JSR will provide a new and improved date and
time API for Java.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{oname}-%{version}
sed -i 's|src="${maven.ibiblio.url}/@{group}/@{artifact}/@{version}/@{artifact}-@{version}@{variant}.jar"|src="file:///usr/share/java/@{artifact}.jar"|' build.xml
%patch0 -p0
cp -p %{SOURCE1} pom.xml
sed -i "s|%{pomversion}|%{version}|" pom.xml
sed -i 's/\r//' COPYRIGHT-ASSIGN.txt LICENSE.txt LICENSE_OpenJDK.txt LICENSE_Oracle.txt \
OpenJDKChallenge.txt README.txt RELEASE-NOTES.txt TODO.txt
%build
%mvn_build -f
%install
%mvn_install
mkdir -p %{buildroot}%{_javadir}/javax.time
ln -sf %{_javadir}/%{name}/%{name}.jar %{buildroot}%{_javadir}/javax.time/
%files -f .mfiles
%{_javadir}/javax.time/%{name}.jar
%doc COPYRIGHT-ASSIGN.txt LICENSE.txt LICENSE_OpenJDK.txt LICENSE_Oracle.txt
%doc OpenJDKChallenge.txt README.txt RELEASE-NOTES.txt TODO.txt
%files javadoc -f .mfiles-javadoc
%doc COPYRIGHT-ASSIGN.txt LICENSE.txt LICENSE_OpenJDK.txt LICENSE_Oracle.txt
%changelog
* Mon Aug 17 2020 maminjie <maminjie1@huawei.com> - 0.6.4-1
- package init

4
time-api.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: ThreeTen/threeten
tag_prefix: "^v"
seperator: "."

BIN
v0.6.4.tar.gz Normal file

Binary file not shown.