diff --git a/7.0.7.tar.gz b/7.0.7.tar.gz new file mode 100644 index 0000000..b65423f Binary files /dev/null and b/7.0.7.tar.gz differ diff --git a/fastutil-7.0.7-build.patch b/fastutil-7.0.7-build.patch new file mode 100644 index 0000000..e78e0ee --- /dev/null +++ b/fastutil-7.0.7-build.patch @@ -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 @@ +- ++ + + + +@@ -28,12 +26,15 @@ + + + +- + + +- ++ + +- ++ ++ ++ ++ ++ + + + +- +- +- +- +- ++ ++ + + + +- +- +- +- +- +- +- + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + diff --git a/fastutil.spec b/fastutil.spec new file mode 100644 index 0000000..3057e1b --- /dev/null +++ b/fastutil.spec @@ -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 - 7.0.7-7 +- Package init