first commit
This commit is contained in:
parent
7e517b92e3
commit
06757a10fa
BIN
7.0.7.tar.gz
Normal file
BIN
7.0.7.tar.gz
Normal file
Binary file not shown.
88
fastutil-7.0.7-build.patch
Normal file
88
fastutil-7.0.7-build.patch
Normal file
@ -0,0 +1,88 @@
|
||||
diff -Nru fastutil-7.0.7/build.xml fastutil-7.0.7.build/build.xml
|
||||
--- fastutil-7.0.7/build.xml 2015-08-07 18:50:24.000000000 +0200
|
||||
+++ fastutil-7.0.7.build/build.xml 2015-10-27 11:37:23.197848395 +0100
|
||||
@@ -1,6 +1,4 @@
|
||||
-<project name="fastutil" default="jar" basedir="."
|
||||
- xmlns:artifact="antlib:org.apache.maven.artifact.ant"
|
||||
- xmlns:ivy="antlib:org.apache.ivy.ant">
|
||||
+<project name="fastutil" default="jar" basedir=".">
|
||||
|
||||
<property file="build.properties"/>
|
||||
|
||||
@@ -28,12 +26,15 @@
|
||||
|
||||
<!-- OSGi manifest generation -->
|
||||
<target name="resolve" description="run Ivy to fetch jars">
|
||||
- <ivy:retrieve />
|
||||
</target>
|
||||
|
||||
- <target name="osgi" depends="resolve,compile">
|
||||
+ <target name="osgi" depends="compile">
|
||||
<delete dir="${build}/*.class"/>
|
||||
- <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="lib/bnd-2.4.0.jar"/>
|
||||
+ <taskdef resource="aQute/bnd/ant/taskdef.properties" >
|
||||
+ <classpath>
|
||||
+ <fileset dir="/usr/share/java/aqute-bnd"/>
|
||||
+ </classpath>
|
||||
+ </taskdef>
|
||||
<bnd
|
||||
classpath="${build}"
|
||||
eclipse="false"
|
||||
@@ -57,55 +58,14 @@
|
||||
</target>
|
||||
|
||||
<target name="pom" depends="dist" description="insert version into pom">
|
||||
- <copy todir="${build}" file="pom.xml">
|
||||
- <filterset>
|
||||
- <filter token="version" value="${version}"/>
|
||||
- </filterset>
|
||||
- </copy>
|
||||
+ <copy tofile="${dist}/lib/pom.xml" file="pom-model.xml" />
|
||||
+ <replace file="${dist}/lib/pom.xml" token="VERSION" value="${version}"/>
|
||||
</target>
|
||||
|
||||
<target name="deploy" depends="pom" description="deploy snapshot version to Maven snapshot repository">
|
||||
- <artifact:mvn>
|
||||
- <arg value="org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy-file" />
|
||||
- <arg value="-Durl=${maven-snapshots-repository-url}" />
|
||||
- <arg value="-DrepositoryId=${maven-snapshots-repository-id}" />
|
||||
- <arg value="-DpomFile=${build}/pom.xml" />
|
||||
- <arg value="-Dfile=${maven-jar}" />
|
||||
- </artifact:mvn>
|
||||
</target>
|
||||
|
||||
<target name="stage" depends="dist" description="deploy release version to Maven staging repository">
|
||||
- <!-- sign and deploy the main artifact -->
|
||||
- <artifact:mvn>
|
||||
- <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
|
||||
- <arg value="-Durl=${maven-staging-repository-url}" />
|
||||
- <arg value="-DrepositoryId=${maven-staging-repository-id}" />
|
||||
- <arg value="-DpomFile=pom.xml" />
|
||||
- <arg value="-Dfile=${maven-jar}" />
|
||||
- <arg value="-Pgpg" />
|
||||
- </artifact:mvn>
|
||||
-
|
||||
- <!-- sign and deploy the sources artifact -->
|
||||
- <artifact:mvn>
|
||||
- <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
|
||||
- <arg value="-Durl=${maven-staging-repository-url}" />
|
||||
- <arg value="-DrepositoryId=${maven-staging-repository-id}" />
|
||||
- <arg value="-DpomFile=pom.xml" />
|
||||
- <arg value="-Dfile=${maven-sources-jar}" />
|
||||
- <arg value="-Dclassifier=sources" />
|
||||
- <arg value="-Pgpg" />
|
||||
- </artifact:mvn>
|
||||
-
|
||||
- <!-- sign and deploy the javadoc artifact -->
|
||||
- <artifact:mvn>
|
||||
- <arg value="org.apache.maven.plugins:maven-gpg-plugin:1.3:sign-and-deploy-file" />
|
||||
- <arg value="-Durl=${maven-staging-repository-url}" />
|
||||
- <arg value="-DrepositoryId=${maven-staging-repository-id}" />
|
||||
- <arg value="-DpomFile=pom.xml" />
|
||||
- <arg value="-Dfile=${maven-javadoc-jar}" />
|
||||
- <arg value="-Dclassifier=javadoc" />
|
||||
- <arg value="-Pgpg" />
|
||||
- </artifact:mvn>
|
||||
</target>
|
||||
|
||||
<!-- ************************************** END OF MAVEN SH*T ************************************** -->
|
||||
70
fastutil.spec
Normal file
70
fastutil.spec
Normal file
@ -0,0 +1,70 @@
|
||||
Name: fastutil
|
||||
Version: 7.0.7
|
||||
Release: 7
|
||||
Summary: Fast & compact type-specific collections for Java
|
||||
License: ASL 2.0 and LGPLv2+
|
||||
URL: http://fastutil.di.unimi.it/
|
||||
Source0: https://github.com/vigna/fastutil/archive/%{version}.tar.gz
|
||||
|
||||
Patch0001: fastutil-7.0.7-build.patch
|
||||
|
||||
BuildRequires: ant ant-junit aqute-bnd emma gcc java-javadoc javapackages-local make
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Fastutil extends the Java Collections Framework by providing type-specific maps, sets, lists and
|
||||
queues with a small memory footprint and fast access and insertion; provides also big (64-bit)
|
||||
arrays, sets and lists, and fast, practical I/O classes for binary and text files.
|
||||
|
||||
The classes implement their standard counterpart interface (e.g., Map for maps) and can be plugged
|
||||
into existing code. Moreover, they provide additional features (such as bidirectional iterators)
|
||||
that are not available in the standard classes.
|
||||
|
||||
Besides objects and primitive types, fastutil classes provide support for references, that is,
|
||||
objects that are compared using the equality operator rather than the equals() method.
|
||||
|
||||
%package help
|
||||
Summary: Help documents for %{name}
|
||||
Provides: %{name}-javadoc = %{version}-%{release}
|
||||
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
||||
|
||||
%description help
|
||||
Manauals of API and other help documents for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
find . -name "*.jar" -o -name "*.class" -print -delete
|
||||
|
||||
sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," \
|
||||
src/it/unimi/dsi/fastutil/io/InspectableFileCachedInputStream.java \
|
||||
test/it/unimi/dsi/fastutil/io/InspectableFileCachedInputStreamTest.java
|
||||
|
||||
%pom_xpath_remove "pom:dependencies" pom-model.xml
|
||||
|
||||
%build
|
||||
mkdir build
|
||||
make -s clean sources
|
||||
ant -Djar.base=%{_javadir}/emma -Dj2se.apiurl=%{_javadocdir}/java pom
|
||||
|
||||
%install
|
||||
%mvn_file it.unimi.dsi:%{name} %{name}
|
||||
%mvn_artifact dist/lib/pom.xml dist/lib/%{name}-%{version}.jar
|
||||
%mvn_install -J docs
|
||||
|
||||
%check
|
||||
mkdir reports
|
||||
ant -Djar.base=%{_javadir}/emma junit
|
||||
|
||||
%files
|
||||
%license LICENSE-2.0
|
||||
%_javadir/*
|
||||
%{_datadir}/maven*/*
|
||||
|
||||
%files help
|
||||
%doc CHANGES README.md
|
||||
%_javadocdir/%{name}
|
||||
|
||||
%changelog
|
||||
* Sat Dec 21 2019 zhouyihang <zhouyihang1@huawei.com> - 7.0.7-7
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user