diff --git a/.gitignore b/.gitignore index e69de29..8b734a8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/apfloat-1.8.2.zip diff --git a/ReApfloatJavalicenseheaders.eml b/ReApfloatJavalicenseheaders.eml new file mode 100644 index 0000000..c2bd8b4 --- /dev/null +++ b/ReApfloatJavalicenseheaders.eml @@ -0,0 +1,103 @@ +X-Account-Key: account1 +X-UIDL: 101950 +X-Mozilla-Status: 0011 +X-Mozilla-Status2: 00000000 +X-Mozilla-Keys: +Return-Path: +Received: from libero.it (10.248.25.135) by cpms265.iol.local (8.6.145) + id 573CB1540124D8C6 for puntogil@libero.it; Thu, 14 Jul 2016 17:34:13 +0200 +Received: from welho-filter4.welho.com ([83.102.41.26]) + by smtp-07.iol.local with SMTP + id NieTbbEOS9VWlNieTbULhm; Thu, 14 Jul 2016 17:34:13 +0200 +X-IOL-SEC: _SPFNO_NODKIM_NODMARC +x-libjamoibt: 2601 +Received-SPF: none +X-CNFS-Analysis: v=2.2 cv=U/bQNqju c=1 sm=1 tr=0 + a=gfU7l3Ycl00WdxPXiRcMFg==:117 a=gfU7l3Ycl00WdxPXiRcMFg==:17 + a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=cAmyUtKerLwA:10 + a=9kEXEyZ4AAAA:8 a=vTr9H3xdAAAA:8 a=20KFwNOVAAAA:8 a=IhR_K_aeYGT3MMe48cUA:9 + a=E7GD6XFFEOgA:10 a=qbvI5Q64jbvoTCH8-c8-:22 a=7PCjnrUJ-F5voXmZD6jJ:22 + a=e_O65bzb51kRm2y5VmPK:22 +Received: from localhost (localhost [127.0.0.1]) + by welho-filter4.welho.com (Postfix) with ESMTP id 3F8054D70 + for ; Thu, 14 Jul 2016 18:34:13 +0300 (EEST) +X-Virus-Scanned: Debian amavisd-new at pp.htv.fi +Received: from welho-smtp1.welho.com ([IPv6:::ffff:83.102.41.84]) + by localhost (welho-filter4.welho.com [::ffff:83.102.41.26]) (amavisd-new, port 10024) + with ESMTP id 5GG124vEV8Ch for ; + Thu, 14 Jul 2016 18:34:12 +0300 (EEST) +Received: from KOTIPC (87-100-232-5.bb.dnainternet.fi [87.100.232.5]) + by welho-smtp1.welho.com (Postfix) with SMTP id 8DED9C4 + for ; Thu, 14 Jul 2016 18:34:12 +0300 (EEST) +Message-ID: +From: "Mikko Tommila" +To: "gil" +References: <6bca465a-b0e9-f58c-acdb-c559c73f42c4@libero.it> +In-Reply-To: <6bca465a-b0e9-f58c-acdb-c559c73f42c4@libero.it> +Subject: Re: Apfloat Java license headers +Date: Thu, 14 Jul 2016 18:34:12 +0300 +MIME-Version: 1.0 +Content-Type: text/plain; + format=flowed; + charset="iso-8859-15"; + reply-type=response +Content-Transfer-Encoding: 7bit +X-Priority: 3 +X-MSMail-Priority: Normal +Importance: Normal +X-Mailer: Microsoft Windows Live Mail 16.4.3528.331 +X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 +X-CMAE-Envelope: MS4wfKsCWX9u7ZKzWLTeXvKT6zGRXOtnaxhYVGnGFqn6z+VwsCn4zdX8fNFNkl/LJxVB9w+A5jg2DWOvqipINn6ytww7X2yi8nC0SN0+Nib0X1azC9GSFv1v + XULZ6gCHQtwuxjj+JZYx+M8RGqwqnZG8PN9BYSV5frvLytMmZPwKKOdqPXun5RbqDzlMRn/laTFH8w== + +Hello, + +I apologize for not taking any action in this matter. You sent me a similar +message already last October. This has been on my "to-do" list since then +but I have not had the time to fix this problem. However it is still on my +to-do list and at some point of time I will fix it. + +For now, I can only confirm via this email that all of the Apfloat Java +version 1.8.2 source code is licensed under the GNU Lesser General Public +License, version 2.1 (or later, at your option). + +Best regards, +Mikko + +-----Original Message----- +From: gil +Sent: Thursday, July 7, 2016 6:09 PM +To: Mikko.Tommila@apfloat.org +Subject: Apfloat Java license headers + +Hi + +Fedora [1] is a popular distribution of the Linux operating system, and +we wish to include the latest version of Apfloat for Java [2] in our OS. +Fedora only contains Free and Open Source licensed works. + +All java source files in the source archive [3] are without license headers. +Please, confirm the licensing of code and/or content/s, and add license +headers. + +https://fedoraproject.org/wiki/Packaging:LicensingGuidelines?rd=Packaging/LicensingGuidelines#License_Clarification + + +I am a Fedora packager and i sent to You this email because i cant find +another + +way to signal to you to You this issues. + +Thanks in advance +Regards + +.g + +[1] https://fedoraproject.org/wiki/Fedora_Project_Wiki + +[2] https://bugzilla.redhat.com/show_bug.cgi?id=1353615 + +[3] http://www.apfloat.org/apfloat_java/apfloat-1.8.2.zip + + + diff --git a/apfloat-1.8.2.pom b/apfloat-1.8.2.pom new file mode 100644 index 0000000..3f8cfa6 --- /dev/null +++ b/apfloat-1.8.2.pom @@ -0,0 +1,217 @@ + + 4.0.0 + + + org.apfloat + apfloat-parent + 1.8.2 + + + org.apfloat + apfloat + 1.8.2 + jar + + apfloat + High performance arbitrary precision arithmetic library + http://www.apfloat.org + + + ISO-8859-1 + + + + + junit + junit + test + + + + + + src/main/resources/properties/serialver.properties + + + + org.apache.maven.plugins + maven-antrun-plugin + + + generate-sources + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + run + + + + + + maven-resources-plugin + 2.5 + + + generate-sources + + copy-resources + + + target/generated-sources/main + + + target/generated-sources/int + true + + + target/generated-sources/long + true + + + target/generated-sources/float + true + + + target/generated-sources/double + true + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + generate-sources + + add-source + + + + target/generated-sources/main + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + default-compile + + + * + + 1.5 + 1.5 + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + ISO-8859-1 + + http://docs.oracle.com/javase/8/docs/api/ + + 1.5 + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + sign-artifacts + verify + + sign + + + + + + + + src/main/resources + + META-INF/** + + + + + + diff --git a/apfloat-calc-1.8.2.pom b/apfloat-calc-1.8.2.pom new file mode 100644 index 0000000..7d2fc1a --- /dev/null +++ b/apfloat-calc-1.8.2.pom @@ -0,0 +1,108 @@ + + 4.0.0 + + + org.apfloat + apfloat-parent + 1.8.2 + + + org.apfloat + apfloat-calc + 1.8.2 + + apfloat-calc + Interactive arbitrary precision calculator application + http://www.apfloat.org + + + ISO-8859-1 + + + + + org.apfloat + apfloat + + + junit + junit + test + + + + + + + org.codehaus.mojo + javacc-maven-plugin + + + javacc + + javacc + + + src/main/java + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + default-compile + + 1.5 + 1.5 + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + ISO-8859-1 + + http://docs.oracle.com/javase/8/docs/api/ + http://www.apfloat.org/apfloat_java/docs/ + + 1.5 + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + true + custom + apfloat.jar calc.jar + org.apfloat.calc.CalculatorGUI + + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + sign-artifacts + verify + + sign + + + + + + + + diff --git a/apfloat-java.spec b/apfloat-java.spec new file mode 100644 index 0000000..7cf3eec --- /dev/null +++ b/apfloat-java.spec @@ -0,0 +1,178 @@ +Name: apfloat-java +Version: 1.8.2 +Release: 1%{?dist} +Summary: High performance arbitrary precision arithmetic library for Java +License: LGPLv2+ +URL: http://www.apfloat.org/apfloat_java/ +Source0: http://www.apfloat.org/apfloat_java/apfloat-%{version}.zip +Source1: http://repo1.maven.org/maven2/org/apfloat/apfloat/%{version}/apfloat-%{version}.pom +Source2: http://repo1.maven.org/maven2/org/apfloat/apfloat-calc/%{version}/apfloat-calc-%{version}.pom +Source3: http://repo1.maven.org/maven2/org/apfloat/apfloat-samples/%{version}/apfloat-samples-%{version}.pom +Source4: http://repo1.maven.org/maven2/org/apfloat/apfloat-parent/%{version}/apfloat-parent-%{version}.pom +# Apfloat Java all files without license headers +# Thise is the upstream reply +Source100: ReApfloatJavalicenseheaders.eml + +BuildRequires: maven-local +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) +BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin) + +BuildArch: noarch + +%description +Apfloat is a high performance arbitrary precision arithmetic library. +You can perform calculations with a precision of millions of digits +with it. It's as simple to use as Java's BigDecimal or BigInteger classes, +but performs a lot better with extreme precision numbers (more than a few +hundred digits). Also, a full suite of mathematical functions for arbitrary +precision numbers are available: all those existing in java.lang.Math and +more. + +%package calc +Summary: Apfloat Calc + +%description calc +Interactive arbitrary precision calculator application. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains javadoc for %{name}. + +%package parent +Summary: Apfloat Parent POM + +%description parent +Administrative Parent POM for Apfloat. + +%package samples +Summary: Apfloat Samples + +%description samples +Sample programs for apfloat for calculating pi. + +%prep +%setup -q -c +# Extract missing services resources +%jar -xf lib/apfloat.jar +# Cleanup +find . -name "*.jar" -print -delete +find . -name "*.class" -print -delete +rm -r applet docs org lib + +# Prepare source directories structures +mkdir -p apfloat/src/main/java/org/apfloat +mv source/org/apfloat/*.java apfloat/src/main/java/org/apfloat +mv source/org/apfloat/internal apfloat/src/main/java/org/apfloat +mv source/org/apfloat/spi apfloat/src/main/java/org/apfloat +mkdir -p apfloat/src/main/resources/META-INF +mv META-INF/services apfloat/src/main/resources/META-INF +rm -r META-INF + +mkdir -p apfloat-calc/src/main/java/org/apfloat +mv source/org/apfloat/calc apfloat-calc/src/main/java/org/apfloat +# re-generate +rm apfloat-calc/src/main/java/org/apfloat/calc/CalculatorParser.java +rm apfloat-calc/src/main/java/org/apfloat/calc/CalculatorParserConstants.java +rm apfloat-calc/src/main/java/org/apfloat/calc/CalculatorParserTokenManager.java +rm apfloat-calc/src/main/java/org/apfloat/calc/ParseException.java +rm apfloat-calc/src/main/java/org/apfloat/calc/SimpleCharStream.java +rm apfloat-calc/src/main/java/org/apfloat/calc/Token.java +rm apfloat-calc/src/main/java/org/apfloat/calc/TokenMgrError.java + +mkdir -p apfloat-samples/src/main/java/org/apfloat +mv source/org/apfloat/samples apfloat-samples/src/main/java/org/apfloat + +cp -p %SOURCE1 apfloat/pom.xml +cp -p %SOURCE2 apfloat-calc/pom.xml +cp -p %SOURCE3 apfloat-samples/pom.xml +cp -p %SOURCE4 pom.xml + +%pom_disable_module apfloat-applet +%pom_disable_module apfloat-jscience + +# Disable classpath entries in manifest files +%pom_xpath_remove -r "pom:addClasspath" apfloat-calc apfloat-samples +%pom_xpath_remove "pom:classpathLayoutType" apfloat-calc +%pom_xpath_remove "pom:customClasspathLayout" apfloat-calc +# Fix encoding +%pom_xpath_set -r "pom:properties/pom:project.build.sourceEncoding" UTF-8 +%pom_xpath_set -r "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration/pom:docencoding" UTF-8 apfloat-calc apfloat-samples +# Disable signatures +%pom_remove_plugin -r :maven-gpg-plugin +%pom_xpath_remove "pom:properties/pom:gpg.useagent" + +# Uanavailable resources +%pom_remove_plugin :maven-antrun-plugin apfloat +%pom_xpath_remove "pom:build/pom:filters" apfloat + +# OSGi support +%pom_xpath_set "pom:project/pom:packaging" bundle apfloat +%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 apfloat ' +true + + + ${project.version} + + + + + bundle-manifest + process-classes + + manifest + + +' + +for p in apfloat-calc \ + apfloat-samples; do +%pom_xpath_inject "pom:project" "bundle" ${p} +%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 ${p} ' +true + + + ${project.version} + + + + + bundle-manifest + process-classes + + manifest + + +' +done + +# fix non ASCII chars +native2ascii -encoding UTF8 apfloat/src/main/java/org/apfloat/GCDHelper.java \ + apfloat/src/main/java/org/apfloat/GCDHelper.java + +%build + +%mvn_build -s + +%install +%mvn_install + +%files -f .mfiles-apfloat +%doc readme.html +%license lgpl.txt + +%files calc -f .mfiles-apfloat-calc +%files javadoc -f .mfiles-javadoc +%license lgpl.txt + +%files parent -f .mfiles-apfloat-parent +%license lgpl.txt + +%files samples -f .mfiles-apfloat-samples + +%changelog +* Wed Oct 28 2015 gil cattaneo 1.8.2-1 +- initial rpm diff --git a/apfloat-parent-1.8.2.pom b/apfloat-parent-1.8.2.pom new file mode 100644 index 0000000..e73d95a --- /dev/null +++ b/apfloat-parent-1.8.2.pom @@ -0,0 +1,177 @@ + + 4.0.0 + + org.apfloat + apfloat-parent + 1.8.2 + pom + + apfloat-parent + Administrative parent pom for apfloat + http://www.apfloat.org + + + + GNU Lesser General Public License, Version 2.1 + http://www.gnu.org/licenses/lgpl-2.1.txt + repo + + + + + file:E:/Java/sources/apfloat_java/maven + scm:local|E:/Java/sources/apfloat_java|maven + + + + + mtommila + Mikko Tommila + mikko.tommila@apfloat.org + + + + + ISO-8859-1 + true + + + + apfloat + apfloat-samples + apfloat-applet + apfloat-calc + apfloat-jscience + + + + + + junit + junit + 3.8.2 + test + + + org.apfloat + apfloat + ${project.version} + + + org.apfloat + apfloat-samples + ${project.version} + + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.5 + + + org.codehaus.mojo + javacc-maven-plugin + 2.6 + + + org.apache.maven.plugins + maven-antrun-plugin + 1.6 + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.7 + + + org.apache.maven.plugins + maven-source-plugin + 2.1.2 + + + org.apache.maven.plugins + maven-resources-plugin + 2.5 + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.1 + + + org.apache.maven.plugins + maven-gpg-plugin + 1.4 + + + org.apache.maven.plugins + maven-scm-plugin + 1.5 + + + org.apache.maven.plugins + maven-release-plugin + 2.2.1 + + + org.apache.maven.scm + maven-scm-provider-local + 1.5 + + + + true + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + sign-artifacts + verify + + sign + + + + + + + + + + + sonatype-nexus-snapshots + Sonatype Nexus Snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + + + sonatype-nexus-staging + Nexus Release Repository + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + diff --git a/apfloat-samples-1.8.2.pom b/apfloat-samples-1.8.2.pom new file mode 100644 index 0000000..8c7bae7 --- /dev/null +++ b/apfloat-samples-1.8.2.pom @@ -0,0 +1,94 @@ + + 4.0.0 + + + org.apfloat + apfloat-parent + 1.8.2 + + + org.apfloat + apfloat-samples + 1.8.2 + + apfloat-samples + Sample programs for apfloat for calculating pi + http://www.apfloat.org + + + ISO-8859-1 + + + + + org.apfloat + apfloat + + + junit + junit + test + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + default-compile + + + * + + 1.5 + 1.5 + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + ISO-8859-1 + + http://docs.oracle.com/javase/8/docs/api/ + http://www.apfloat.org/apfloat_java/docs/ + + 1.5 + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + true + org.apfloat.samples.PiParallelGUI + + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + sign-artifacts + verify + + sign + + + + + + + + diff --git a/sources b/sources index e69de29..0cc09d9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4410533b80aad3728ac5f6ba45d2309c apfloat-1.8.2.zip