Initial import (#1353615).
This commit is contained in:
parent
b01e95abab
commit
ac6d85cbb7
8 changed files with 879 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -0,0 +1 @@
|
|||
/apfloat-1.8.2.zip
|
||||
103
ReApfloatJavalicenseheaders.eml
Normal file
103
ReApfloatJavalicenseheaders.eml
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
X-Account-Key: account1
|
||||
X-UIDL: 101950
|
||||
X-Mozilla-Status: 0011
|
||||
X-Mozilla-Status2: 00000000
|
||||
X-Mozilla-Keys:
|
||||
Return-Path: <mikko.tommila@apfloat.org>
|
||||
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 <puntogil@libero.it>; 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 <puntogil@libero.it>;
|
||||
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 <puntogil@libero.it>; Thu, 14 Jul 2016 18:34:12 +0300 (EEST)
|
||||
Message-ID: <A3A64E2EB50F49A19F3BF7EA6758FA3C@KOTIPC>
|
||||
From: "Mikko Tommila" <mikko.tommila@apfloat.org>
|
||||
To: "gil" <puntogil@libero.it>
|
||||
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
|
||||
|
||||
|
||||
|
||||
217
apfloat-1.8.2.pom
Normal file
217
apfloat-1.8.2.pom
Normal file
|
|
@ -0,0 +1,217 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apfloat</groupId>
|
||||
<artifactId>apfloat-parent</artifactId>
|
||||
<version>1.8.2</version>
|
||||
</parent>
|
||||
|
||||
<groupId>org.apfloat</groupId>
|
||||
<artifactId>apfloat</artifactId>
|
||||
<version>1.8.2</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>apfloat</name>
|
||||
<description>High performance arbitrary precision arithmetic library</description>
|
||||
<url>http://www.apfloat.org</url>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<filters>
|
||||
<filter>src/main/resources/properties/serialver.properties</filter>
|
||||
</filters>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>generate-sources</phase>
|
||||
<configuration>
|
||||
<target>
|
||||
<copy todir="target/generated-sources/int">
|
||||
<fileset dir="src/main/template" />
|
||||
<mapper type="regexp" from="(.*)Rawtype(.*)" to="\1Int\2" />
|
||||
<filterchain>
|
||||
<tokenfilter>
|
||||
<replacestring from="sizeof(rawtype)" to="4" />
|
||||
<replacestring from="rawtype" to="int" />
|
||||
<replacestring from="Rawtype" to="Int" />
|
||||
<replacestring from="RawType" to="Integer" />
|
||||
</tokenfilter>
|
||||
<expandproperties />
|
||||
</filterchain>
|
||||
</copy>
|
||||
<copy todir="target/generated-sources/long">
|
||||
<fileset dir="src/main/template" />
|
||||
<mapper type="regexp" from="(.*)Rawtype(.*)" to="\1Long\2" />
|
||||
<filterchain>
|
||||
<tokenfilter>
|
||||
<replacestring from="sizeof(rawtype)" to="8" />
|
||||
<replacestring from="rawtype" to="long" />
|
||||
<replacestring from="Rawtype" to="Long" />
|
||||
<replacestring from="RawType" to="Long" />
|
||||
</tokenfilter>
|
||||
<expandproperties />
|
||||
</filterchain>
|
||||
</copy>
|
||||
<copy todir="target/generated-sources/float">
|
||||
<fileset dir="src/main/template" />
|
||||
<mapper type="regexp" from="(.*)Rawtype(.*)" to="\1Float\2" />
|
||||
<filterchain>
|
||||
<tokenfilter>
|
||||
<replacestring from="sizeof(rawtype)" to="4" />
|
||||
<replacestring from="rawtype" to="float" />
|
||||
<replacestring from="Rawtype" to="Float" />
|
||||
<replacestring from="RawType" to="Float" />
|
||||
</tokenfilter>
|
||||
<expandproperties />
|
||||
</filterchain>
|
||||
</copy>
|
||||
<copy todir="target/generated-sources/double">
|
||||
<fileset dir="src/main/template" />
|
||||
<mapper type="regexp" from="(.*)Rawtype(.*)" to="\1Double\2" />
|
||||
<filterchain>
|
||||
<tokenfilter>
|
||||
<replacestring from="sizeof(rawtype)" to="8" />
|
||||
<replacestring from="rawtype" to="double" />
|
||||
<replacestring from="Rawtype" to="Double" />
|
||||
<replacestring from="RawType" to="Double" />
|
||||
</tokenfilter>
|
||||
<expandproperties />
|
||||
</filterchain>
|
||||
</copy>
|
||||
</target>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>2.5</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>target/generated-sources/main</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>target/generated-sources/int</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>target/generated-sources/long</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>target/generated-sources/float</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>target/generated-sources/double</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>add-source</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<sources>
|
||||
<source>target/generated-sources/main</source>
|
||||
</sources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>default-compile</id>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>*</exclude>
|
||||
</excludes>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<configuration>
|
||||
<docencoding>ISO-8859-1</docencoding>
|
||||
<links>
|
||||
<link>http://docs.oracle.com/javase/8/docs/api/</link>
|
||||
</links>
|
||||
<source>1.5</source>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifest>
|
||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign-artifacts</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>sign</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>META-INF/**</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
108
apfloat-calc-1.8.2.pom
Normal file
108
apfloat-calc-1.8.2.pom
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apfloat</groupId>
|
||||
<artifactId>apfloat-parent</artifactId>
|
||||
<version>1.8.2</version>
|
||||
</parent>
|
||||
|
||||
<groupId>org.apfloat</groupId>
|
||||
<artifactId>apfloat-calc</artifactId>
|
||||
<version>1.8.2</version>
|
||||
|
||||
<name>apfloat-calc</name>
|
||||
<description>Interactive arbitrary precision calculator application</description>
|
||||
<url>http://www.apfloat.org</url>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apfloat</groupId>
|
||||
<artifactId>apfloat</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>javacc-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>javacc</id>
|
||||
<goals>
|
||||
<goal>javacc</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<sourceDirectory>src/main/java</sourceDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>default-compile</id>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<configuration>
|
||||
<docencoding>ISO-8859-1</docencoding>
|
||||
<links>
|
||||
<link>http://docs.oracle.com/javase/8/docs/api/</link>
|
||||
<link>http://www.apfloat.org/apfloat_java/docs/</link>
|
||||
</links>
|
||||
<source>1.5</source>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifest>
|
||||
<addClasspath>true</addClasspath>
|
||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
||||
<classpathLayoutType>custom</classpathLayoutType>
|
||||
<customClasspathLayout>apfloat.jar calc.jar</customClasspathLayout>
|
||||
<mainClass>org.apfloat.calc.CalculatorGUI</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign-artifacts</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>sign</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
178
apfloat-java.spec
Normal file
178
apfloat-java.spec
Normal file
|
|
@ -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 '
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Bundle-Version>${project.version}</Bundle-Version>
|
||||
</instructions>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bundle-manifest</id>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>'
|
||||
|
||||
for p in apfloat-calc \
|
||||
apfloat-samples; do
|
||||
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" ${p}
|
||||
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 ${p} '
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Bundle-Version>${project.version}</Bundle-Version>
|
||||
</instructions>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bundle-manifest</id>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>'
|
||||
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 <puntogil@libero.it> 1.8.2-1
|
||||
- initial rpm
|
||||
177
apfloat-parent-1.8.2.pom
Normal file
177
apfloat-parent-1.8.2.pom
Normal file
|
|
@ -0,0 +1,177 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.apfloat</groupId>
|
||||
<artifactId>apfloat-parent</artifactId>
|
||||
<version>1.8.2</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>apfloat-parent</name>
|
||||
<description>Administrative parent pom for apfloat</description>
|
||||
<url>http://www.apfloat.org</url>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License, Version 2.1</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl-2.1.txt</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<scm>
|
||||
<url>file:E:/Java/sources/apfloat_java/maven</url>
|
||||
<connection>scm:local|E:/Java/sources/apfloat_java|maven</connection>
|
||||
</scm>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>mtommila</id>
|
||||
<name>Mikko Tommila</name>
|
||||
<email>mikko.tommila@apfloat.org</email>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
|
||||
<gpg.useagent>true</gpg.useagent>
|
||||
</properties>
|
||||
|
||||
<modules>
|
||||
<module>apfloat</module>
|
||||
<module>apfloat-samples</module>
|
||||
<module>apfloat-applet</module>
|
||||
<module>apfloat-calc</module>
|
||||
<module>apfloat-jscience</module>
|
||||
</modules>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>3.8.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apfloat</groupId>
|
||||
<artifactId>apfloat</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apfloat</groupId>
|
||||
<artifactId>apfloat-samples</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>1.5</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>javacc-maven-plugin</artifactId>
|
||||
<version>2.6</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>1.6</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.7</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<version>2.1.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>2.5</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.3.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<version>1.4</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-scm-plugin</artifactId>
|
||||
<version>1.5</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-release-plugin</artifactId>
|
||||
<version>2.2.1</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.scm</groupId>
|
||||
<artifactId>maven-scm-provider-local</artifactId>
|
||||
<version>1.5</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<autoVersionSubmodules>true</autoVersionSubmodules>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign-artifacts</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>sign</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<distributionManagement>
|
||||
<!--
|
||||
<repository>
|
||||
<uniqueVersion>false</uniqueVersion>
|
||||
<id>www.apfloat.org</id>
|
||||
<name>Apfloat Repository</name>
|
||||
<url>file:../maven2</url>
|
||||
<layout>default</layout>
|
||||
</repository>
|
||||
-->
|
||||
<snapshotRepository>
|
||||
<id>sonatype-nexus-snapshots</id>
|
||||
<name>Sonatype Nexus Snapshots</name>
|
||||
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
|
||||
</snapshotRepository>
|
||||
<repository>
|
||||
<id>sonatype-nexus-staging</id>
|
||||
<name>Nexus Release Repository</name>
|
||||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
|
||||
</project>
|
||||
94
apfloat-samples-1.8.2.pom
Normal file
94
apfloat-samples-1.8.2.pom
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apfloat</groupId>
|
||||
<artifactId>apfloat-parent</artifactId>
|
||||
<version>1.8.2</version>
|
||||
</parent>
|
||||
|
||||
<groupId>org.apfloat</groupId>
|
||||
<artifactId>apfloat-samples</artifactId>
|
||||
<version>1.8.2</version>
|
||||
|
||||
<name>apfloat-samples</name>
|
||||
<description>Sample programs for apfloat for calculating pi</description>
|
||||
<url>http://www.apfloat.org</url>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apfloat</groupId>
|
||||
<artifactId>apfloat</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>default-compile</id>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>*</exclude>
|
||||
</excludes>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<configuration>
|
||||
<docencoding>ISO-8859-1</docencoding>
|
||||
<links>
|
||||
<link>http://docs.oracle.com/javase/8/docs/api/</link>
|
||||
<link>http://www.apfloat.org/apfloat_java/docs/</link>
|
||||
</links>
|
||||
<source>1.5</source>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifest>
|
||||
<addClasspath>true</addClasspath>
|
||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
||||
<mainClass>org.apfloat.samples.PiParallelGUI</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign-artifacts</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>sign</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
4410533b80aad3728ac5f6ba45d2309c apfloat-1.8.2.zip
|
||||
Reference in a new issue