This commit is contained in:
parent
6a6c1eae24
commit
196e7a65e3
31
MANIFEST.MF
31
MANIFEST.MF
@ -1,31 +0,0 @@
|
|||||||
Manifest-Version: 1.0
|
|
||||||
Archiver-Version: Plexus Archiver
|
|
||||||
Created-By: 1.6.0_20 (Sun Microsystems Inc.)
|
|
||||||
Built-By: mockbuild
|
|
||||||
Build-Jdk: 1.6.0_20
|
|
||||||
Implementation-Title: Commons Codec
|
|
||||||
Implementation-Vendor: Apache Software Foundation
|
|
||||||
Implementation-Vendor-Id: org.apache
|
|
||||||
Implementation-Version: 1.4
|
|
||||||
Specification-Title: Commons Codec
|
|
||||||
Specification-Vendor: Apache Software Foundation
|
|
||||||
Specification-Version: 1.4
|
|
||||||
X-Compile-Source-JDK: 1.4
|
|
||||||
X-Compile-Target-JDK: 1.4
|
|
||||||
Export-Package: org.apache.commons.codec;version="1.4",org.apache.comm
|
|
||||||
ons.codec.net;version="1.4",org.apache.commons.codec.language;version
|
|
||||||
="1.4",org.apache.commons.codec.digest;version="1.4",org.apache.commo
|
|
||||||
ns.codec.binary;version="1.4"
|
|
||||||
Tool: Bnd-0.0.363
|
|
||||||
Bundle-Name: Commons Codec
|
|
||||||
Bundle-Vendor: Apache Software Foundation
|
|
||||||
Bundle-Version: 1.4
|
|
||||||
Bnd-LastModified: 1297297922505
|
|
||||||
Bundle-ManifestVersion: 2
|
|
||||||
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
|
|
||||||
Bundle-Description: The codec package contains simple encoder and deco
|
|
||||||
ders for various formats such as Base64 and Hexadecimal. In addi
|
|
||||||
tion to these widely used encoders and decoders, the codec packag
|
|
||||||
e also maintains a collection of phonetic encoding utilities.
|
|
||||||
Bundle-SymbolicName: org.apache.commons.codec
|
|
||||||
Bundle-DocURL: http://commons.apache.org/codec/
|
|
272
apache-commons-codec-build.xml
Normal file
272
apache-commons-codec-build.xml
Normal file
@ -0,0 +1,272 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<project name="commons-codec" default="package" basedir=".">
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Build environment properties -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<property file="build.properties"/>
|
||||||
|
|
||||||
|
<property name="project.groupId" value="commons-codec"/>
|
||||||
|
<property name="project.artifactId" value="commons-codec"/>
|
||||||
|
<property name="project.version" value="1.11"/>
|
||||||
|
<property name="project.name" value="Apache Commons Codec"/>
|
||||||
|
<property name="project.description" value="The Apache Commons Codec package
|
||||||
|
contains simple encoder and decoders for various formats such as Base64 and Hexadecimal.
|
||||||
|
In addition to these widely used encoders and decoders, the codec package also maintains a
|
||||||
|
collection of phonetic encoding utilities."/>
|
||||||
|
<property name="project.organization.name" value="The Apache Software Foundation"/>
|
||||||
|
<property name="project.organization.url" value="http://commons.apache.org/proper/commons-codec/"/>
|
||||||
|
|
||||||
|
<property name="bundle.version" value="${project.version}.0"/>
|
||||||
|
<property name="bundle.symbolicName" value="org.apache.commons.codec"/>
|
||||||
|
|
||||||
|
<property name="compiler.source" value="1.6"/>
|
||||||
|
<property name="compiler.target" value="${compiler.source}"/>
|
||||||
|
|
||||||
|
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
|
||||||
|
<property name="build.dir" value="target"/>
|
||||||
|
<property name="build.outputDir" value="${build.dir}/classes"/>
|
||||||
|
<property name="build.srcDir" value="src/main/java"/>
|
||||||
|
<property name="build.resourceDir.0" value="src/main/resources"/>
|
||||||
|
<property name="build.resourceDir.1" value="."/>
|
||||||
|
<property name="build.testOutputDir" value="${build.dir}/test-classes"/>
|
||||||
|
<property name="build.testDir" value="src/test/java"/>
|
||||||
|
<property name="build.testResourceDir.0" value="src/test/resources"/>
|
||||||
|
<property name="build.testResourceDir.1" value="."/>
|
||||||
|
<property name="test.reports" value="${build.dir}/test-reports"/>
|
||||||
|
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Defining classpaths -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<path id="build.classpath"/>
|
||||||
|
<path id="build.test.classpath">
|
||||||
|
<!-- junit-4.12 hamcrest-core-1.3 commons-lang3-3.5 -->
|
||||||
|
<fileset dir="lib">
|
||||||
|
<include name="**/*.jar"/>
|
||||||
|
</fileset>
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Cleaning up target -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="clean" description="Clean the output directory">
|
||||||
|
<delete dir="${build.dir}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Compilation target -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="compile" description="Compile the code">
|
||||||
|
<mkdir dir="${build.outputDir}"/>
|
||||||
|
<javac destdir="${build.outputDir}"
|
||||||
|
encoding="UTF-8"
|
||||||
|
nowarn="false"
|
||||||
|
debug="true"
|
||||||
|
optimize="false"
|
||||||
|
deprecation="true"
|
||||||
|
target="${compiler.target}"
|
||||||
|
verbose="false"
|
||||||
|
fork="false"
|
||||||
|
source="${compiler.source}">
|
||||||
|
<src>
|
||||||
|
<pathelement location="${build.srcDir}"/>
|
||||||
|
</src>
|
||||||
|
<classpath refid="build.classpath"/>
|
||||||
|
</javac>
|
||||||
|
<copy todir="${build.outputDir}">
|
||||||
|
<fileset dir="${build.resourceDir.0}"/>
|
||||||
|
</copy>
|
||||||
|
<mkdir dir="${build.outputDir}/META-INF"/>
|
||||||
|
<copy todir="${build.outputDir}/META-INF">
|
||||||
|
<fileset dir="${build.resourceDir.1}">
|
||||||
|
<include name="NOTICE.txt"/>
|
||||||
|
<include name="LICENSE.txt"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Test-compilation target -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="compile-tests"
|
||||||
|
depends="compile"
|
||||||
|
description="Compile the test code"
|
||||||
|
unless="test.skip">
|
||||||
|
<mkdir dir="${build.testOutputDir}"/>
|
||||||
|
<javac destdir="${build.testOutputDir}"
|
||||||
|
encoding="UTF-8"
|
||||||
|
nowarn="false"
|
||||||
|
debug="true"
|
||||||
|
optimize="false"
|
||||||
|
deprecation="true"
|
||||||
|
target="${compiler.target}"
|
||||||
|
verbose="false"
|
||||||
|
fork="false"
|
||||||
|
source="${compiler.source}">
|
||||||
|
<src>
|
||||||
|
<pathelement location="${build.testDir}"/>
|
||||||
|
</src>
|
||||||
|
<classpath>
|
||||||
|
<path refid="build.test.classpath"/>
|
||||||
|
<pathelement location="${build.outputDir}"/>
|
||||||
|
</classpath>
|
||||||
|
</javac>
|
||||||
|
<copy todir="${build.testOutputDir}">
|
||||||
|
<fileset dir="${build.testResourceDir.0}"/>
|
||||||
|
</copy>
|
||||||
|
<mkdir dir="${build.testOutputDir}/META-INF"/>
|
||||||
|
<copy todir="${build.testOutputDir}/META-INF">
|
||||||
|
<fileset dir="${build.testResourceDir.1}">
|
||||||
|
<include name="NOTICE.txt"/>
|
||||||
|
<include name="LICENSE.txt"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Run all tests -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="test"
|
||||||
|
depends="compile-tests, junit-missing"
|
||||||
|
unless="junit.skipped"
|
||||||
|
description="Run the test cases">
|
||||||
|
<mkdir dir="${test.reports}"/>
|
||||||
|
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
|
||||||
|
<sysproperty key="basedir" value="."/>
|
||||||
|
<formatter type="xml"/>
|
||||||
|
<formatter type="plain" usefile="false"/>
|
||||||
|
<classpath>
|
||||||
|
<path refid="build.test.classpath"/>
|
||||||
|
<pathelement location="${build.outputDir}"/>
|
||||||
|
<pathelement location="${build.testOutputDir}"/>
|
||||||
|
</classpath>
|
||||||
|
<batchtest todir="${test.reports}" unless="test">
|
||||||
|
<fileset dir="${build.testDir}">
|
||||||
|
<include name="**/Test*.java"/>
|
||||||
|
<include name="**/*Test.java"/>
|
||||||
|
<include name="**/*TestCase.java"/>
|
||||||
|
<exclude name="**/*AbstractTest.java"/>
|
||||||
|
<exclude name="**/*PerformanceTest.java"/>
|
||||||
|
</fileset>
|
||||||
|
</batchtest>
|
||||||
|
<batchtest todir="${test.reports}" if="test">
|
||||||
|
<fileset dir="${build.testDir}">
|
||||||
|
<include name="**/${test}.java"/>
|
||||||
|
<exclude name="**/*AbstractTest.java"/>
|
||||||
|
<exclude name="**/*PerformanceTest.java"/>
|
||||||
|
</fileset>
|
||||||
|
</batchtest>
|
||||||
|
</junit>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="test-junit-present">
|
||||||
|
<available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="test-junit-status"
|
||||||
|
depends="test-junit-present">
|
||||||
|
<condition property="junit.missing">
|
||||||
|
<and>
|
||||||
|
<isfalse value="${junit.present}"/>
|
||||||
|
<isfalse value="${test.skip}"/>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
<condition property="junit.skipped">
|
||||||
|
<or>
|
||||||
|
<isfalse value="${junit.present}"/>
|
||||||
|
<istrue value="${test.skip}"/>
|
||||||
|
</or>
|
||||||
|
</condition>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="junit-missing"
|
||||||
|
depends="test-junit-status"
|
||||||
|
if="junit.missing">
|
||||||
|
<echo>=================================== WARNING ===================================</echo>
|
||||||
|
<echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo>
|
||||||
|
<echo>===============================================================================</echo>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Javadoc target -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="javadoc" description="Generates the Javadoc of the application">
|
||||||
|
<javadoc sourcepath="${build.srcDir}"
|
||||||
|
packagenames="*"
|
||||||
|
destdir="${reporting.outputDirectory}/apidocs"
|
||||||
|
access="protected"
|
||||||
|
old="false"
|
||||||
|
verbose="false"
|
||||||
|
encoding="UTF-8"
|
||||||
|
version="true"
|
||||||
|
use="true"
|
||||||
|
author="true"
|
||||||
|
splitindex="false"
|
||||||
|
nodeprecated="false"
|
||||||
|
nodeprecatedlist="false"
|
||||||
|
notree="false"
|
||||||
|
noindex="false"
|
||||||
|
nohelp="false"
|
||||||
|
nonavbar="false"
|
||||||
|
serialwarn="false"
|
||||||
|
docencoding="UTF-8"
|
||||||
|
source="${compiler.source}"
|
||||||
|
linksource="true"
|
||||||
|
breakiterator="false">
|
||||||
|
</javadoc>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- Package target -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="package" depends="compile,test" description="Package the application">
|
||||||
|
<jar jarfile="${build.dir}/${build.finalName}.jar"
|
||||||
|
compress="true"
|
||||||
|
index="false"
|
||||||
|
basedir="${build.outputDir}"
|
||||||
|
excludes="**/package.html">
|
||||||
|
<manifest>
|
||||||
|
<attribute name="Automatic-Module-Name" value="${bundle.symbolicName}"/>
|
||||||
|
<attribute name="Bundle-Description" value="${project.description}"/>
|
||||||
|
<attribute name="Bundle-DocURL" value="${project.organization.url}"/>
|
||||||
|
<attribute name="Bundle-License" value="https://www.apache.org/licenses/LICENSE-2.0.txt"/>
|
||||||
|
<attribute name="Bundle-ManifestVersion" value="2"/>
|
||||||
|
<attribute name="Bundle-Name" value="${project.name}"/>
|
||||||
|
<attribute name="Bundle-SymbolicName" value="${bundle.symbolicName}"/>
|
||||||
|
<attribute name="Bundle-Vendor" value="${project.organization.name}"/>
|
||||||
|
<attribute name="Bundle-Version" value="${bundle.version}"/>
|
||||||
|
<attribute name="Export-Package" value="org.apache.commons.codec;version="${project.version}",org.apache.commons.codec.binary;version="${project.version}",org.apache.commons.codec.cli;version="${project.version}",org.apache.commons.codec.digest;version="${project.version}",org.apache.commons.codec.language;version="${project.version}",org.apache.commons.codec.language.bm;version="${project.version}",org.apache.commons.codec.net;version="${project.version}""/>
|
||||||
|
<attribute name="Implementation-Title" value="${project.name}"/>
|
||||||
|
<attribute name="Implementation-URL" value="${project.organization.url}"/>
|
||||||
|
<attribute name="Implementation-Vendor" value="${project.organization.name}"/>
|
||||||
|
<attribute name="Implementation-Vendor-Id" value="${project.groupId}"/>
|
||||||
|
<attribute name="Implementation-Version" value="${project.version}"/>
|
||||||
|
<attribute name="Import-Package" value="javax.crypto,javax.crypto.spec"/>
|
||||||
|
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId}"/>
|
||||||
|
<attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
|
||||||
|
<attribute name="JavaPackages-Version" value="${project.version}"/>
|
||||||
|
<attribute name="Require-Capability" value="osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=${compiler.target}))""/>
|
||||||
|
<attribute name="Specification-Title" value="${project.name}"/>
|
||||||
|
<attribute name="Specification-Vendor" value="${project.organization.name}"/>
|
||||||
|
<attribute name="Specification-Version" value="${project.version}"/>
|
||||||
|
</manifest>
|
||||||
|
</jar>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- A dummy target for the package named after the type it creates -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<target name="jar" depends="package" description="Builds the jar for the application"/>
|
||||||
|
|
||||||
|
</project>
|
@ -19,28 +19,27 @@
|
|||||||
|
|
||||||
%define base_name codec
|
%define base_name codec
|
||||||
%define short_name commons-%{base_name}
|
%define short_name commons-%{base_name}
|
||||||
|
%bcond_with tests
|
||||||
Name: apache-commons-codec
|
Name: apache-commons-codec
|
||||||
Version: 1.10
|
Version: 1.11
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Apache Commons Codec Package
|
Summary: Apache Commons Codec Package
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: http://commons.apache.org/codec/
|
URL: http://commons.apache.org/codec/
|
||||||
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
Source0: http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
||||||
Source4: MANIFEST.MF
|
Source1: %{name}-build.xml
|
||||||
|
# Data in DoubleMetaphoneTest.java originally has an inadmissible license.
|
||||||
|
# The author gives MIT in e-mail communication.
|
||||||
|
Source100: aspell-mail.txt
|
||||||
# PATCH-FIX-OPENSUSE Avoid spurious timeout in BeiderMorse tests
|
# PATCH-FIX-OPENSUSE Avoid spurious timeout in BeiderMorse tests
|
||||||
Patch0: timeout.patch
|
Patch0: timeout.patch
|
||||||
BuildRequires: ant >= 1.7
|
BuildRequires: ant
|
||||||
BuildRequires: ant-junit >= 1.7
|
|
||||||
BuildRequires: apache-commons-parent
|
BuildRequires: apache-commons-parent
|
||||||
|
BuildRequires: dos2unix
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: java-devel >= 1.8
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: javapackages-tools
|
|
||||||
# FIXME: mozilla-nss is necessary in order to use crypto, which is tested via junit tests
|
|
||||||
# this should be a dependency of openjdk itself
|
|
||||||
BuildRequires: junit
|
|
||||||
BuildRequires: mozilla-nss
|
|
||||||
Requires: apache-commons-parent
|
Requires: apache-commons-parent
|
||||||
Requires: java >= 1.8
|
Requires: java >= 1.8
|
||||||
Provides: jakarta-%{short_name} = %{version}
|
Provides: jakarta-%{short_name} = %{version}
|
||||||
@ -48,6 +47,13 @@ Obsoletes: jakarta-%{short_name} < %{version}
|
|||||||
Provides: %{short_name} = %{version}
|
Provides: %{short_name} = %{version}
|
||||||
Obsoletes: %{short_name} < %{version}
|
Obsoletes: %{short_name} < %{version}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: ant-junit >= 1.7
|
||||||
|
BuildRequires: apache-commons-lang3
|
||||||
|
BuildRequires: hamcrest-core
|
||||||
|
BuildRequires: junit
|
||||||
|
BuildRequires: mozilla-nss
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Commons Codec is an attempt to provide definitive implementations of
|
Commons Codec is an attempt to provide definitive implementations of
|
||||||
@ -55,8 +61,7 @@ commonly used encoders and decoders.
|
|||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
Group: Development/Libraries/Java
|
Group: Documentation/HTML
|
||||||
Requires: java-javadoc
|
|
||||||
Provides: jakarta-%{short_name}-javadoc = %{version}
|
Provides: jakarta-%{short_name}-javadoc = %{version}
|
||||||
Obsoletes: jakarta-%{short_name}-javadoc < %{version}
|
Obsoletes: jakarta-%{short_name}-javadoc < %{version}
|
||||||
Provides: %{short_name}-javadoc = %{version}
|
Provides: %{short_name}-javadoc = %{version}
|
||||||
@ -67,59 +72,51 @@ Javadoc for %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{short_name}-%{version}-src
|
%setup -q -n %{short_name}-%{version}-src
|
||||||
|
cp %{SOURCE1} build.xml
|
||||||
|
cp %{SOURCE100} aspell-mail.txt
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
#fixes eof encoding
|
#fixes eof encoding
|
||||||
sed -i 's/\r//' RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt
|
dos2unix RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CLASSPATH=$(build-classpath junit)
|
mkdir -p lib
|
||||||
ant -Dbuild.sysclasspath=first \
|
%if %{with tests}
|
||||||
-Dant.build.javac.source=8 -Dant.build.javac.target=8 \
|
build-jar-repository -s lib junit4 hamcrest/core commons-lang3
|
||||||
-Dcompile.source=8 -Dcompile.target=8 \
|
%endif
|
||||||
-Dconf.home=src/conf \
|
ant \
|
||||||
-Dbuild.home=build \
|
%if %{without tests}
|
||||||
-Dsource.home=src/main/java \
|
-Dtest.skip=true \
|
||||||
-Dtest.home=src/test/java \
|
%endif
|
||||||
-Ddist.home=dist \
|
-Dcompiler.source=1.8 -Dcompiler.target=1.8 \
|
||||||
-Dcomponent.title=%{short_name} \
|
|
||||||
-Dcomponent.version=%{version} \
|
|
||||||
-Dfinal.name=%{name}-%{version} \
|
|
||||||
-Dextension.name=%{short_name} \
|
|
||||||
jar javadoc
|
jar javadoc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jars
|
# jars
|
||||||
mkdir -p %{buildroot}%{_javadir}
|
install -dm 0755 %{buildroot}%{_javadir}
|
||||||
jar umf %{SOURCE4} dist/%{name}-%{version}.jar
|
install -pm 0644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{short_name}.jar
|
||||||
cp -p dist/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
ln -sf %{short_name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
# poms
|
||||||
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{short_name}-%{version}.jar
|
|
||||||
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{short_name}.jar
|
|
||||||
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/jakarta-%{short_name}-%{version}.jar
|
|
||||||
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/jakarta-%{short_name}.jar
|
|
||||||
|
|
||||||
# Install pom file
|
# Install pom file
|
||||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom
|
install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}.pom
|
||||||
%add_maven_depmap JPP-%{short_name}.pom %{short_name}.jar -a "%{short_name}:%{short_name}"
|
%add_maven_depmap %{short_name}.pom %{short_name}.jar -a "%{short_name}:%{short_name}"
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
|
||||||
%fdupes -s %{buildroot}%{_javadocdir}/%{name}-%{version}
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/jakarta-%{short_name}-%{version}
|
|
||||||
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/jakarta-%{short_name}
|
%pre javadoc
|
||||||
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
if [ -L %{_javadocdir}/%{name} ]; then
|
||||||
|
rm -f %{_javadocdir}/%{name};
|
||||||
|
fi
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc RELEASE-NOTES.txt
|
%doc RELEASE-NOTES.txt
|
||||||
%{_javadir}/*.jar
|
%{_javadir}/%{name}.jar
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(0644,root,root,0755)
|
%{_javadocdir}/%{name}
|
||||||
%{_javadocdir}/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
85
aspell-mail.txt
Normal file
85
aspell-mail.txt
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
Return-Path: kevina@misc.kevina.org
|
||||||
|
Received: from zmta06.collab.prod.int.phx2.redhat.com (LHLO
|
||||||
|
zmta06.collab.prod.int.phx2.redhat.com) (10.5.81.13) by
|
||||||
|
zmail15.collab.prod.int.phx2.redhat.com with LMTP; Tue, 21 Aug 2012
|
||||||
|
08:38:00 -0400 (EDT)
|
||||||
|
Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25])
|
||||||
|
by zmta06.collab.prod.int.phx2.redhat.com (Postfix) with ESMTP id D74A71609E2
|
||||||
|
for <tradej@mail.corp.redhat.com>; Tue, 21 Aug 2012 08:37:59 -0400 (EDT)
|
||||||
|
Received: from mx1.redhat.com (ext-mx15.extmail.prod.ext.phx2.redhat.com [10.5.110.20])
|
||||||
|
by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7LCbx5d031748
|
||||||
|
for <tradej@redhat.com>; Tue, 21 Aug 2012 08:37:59 -0400
|
||||||
|
Received: from misc.kevina.org (misc.kevina.org [96.126.107.114])
|
||||||
|
by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7LCbwlx024966
|
||||||
|
for <tradej@redhat.com>; Tue, 21 Aug 2012 08:37:58 -0400
|
||||||
|
Received: by misc.kevina.org (Postfix, from userid 1000)
|
||||||
|
id 576F124ED81; Tue, 21 Aug 2012 08:37:57 -0400 (EDT)
|
||||||
|
Date: Tue, 21 Aug 2012 14:37:57 +0200 (CEST)
|
||||||
|
From: Kevin Atkinson <k@kevina.org>
|
||||||
|
X-X-Sender: kevina@misc.kevina.org
|
||||||
|
To: Tomas Radej <tradej@redhat.com>
|
||||||
|
Subject: Re: Aspell results licensing
|
||||||
|
In-Reply-To: <20120821095056.266cfca47594ad0e03f332f8@redhat.com>
|
||||||
|
Message-ID: <alpine.DEB.2.02.1208211423550.7113@misc.kevina.org>
|
||||||
|
References: <20120816110627.3b433e1e1a2cfa2a3c29f8e2@redhat.com> <alpine.DEB.2.02.1208162006450.14875@misc.kevina.org> <20120821095056.266cfca47594ad0e03f332f8@redhat.com>
|
||||||
|
User-Agent: Alpine 2.02 (DEB 1266 2009-07-14)
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
|
||||||
|
X-RedHat-Spam-Score: -2.111 (BAYES_00,RP_MATCHES_RCVD)
|
||||||
|
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25
|
||||||
|
X-Scanned-By: MIMEDefang 2.68 on 10.5.110.20
|
||||||
|
|
||||||
|
|
||||||
|
How's this:
|
||||||
|
|
||||||
|
Copyright 2007 by Kevin Atkinson
|
||||||
|
|
||||||
|
Permission to use, copy, modify, distribute and sell the file
|
||||||
|
batch0.tab (available at http://aspell.net/test/cur/) is hereby
|
||||||
|
granted without fee, provided that the above copyright notice appears
|
||||||
|
in all copies and that both that copyright notice and this permission
|
||||||
|
notice appear in supporting documentation. Kevin Atkinson makes no
|
||||||
|
representations about the suitability of this array for any
|
||||||
|
purpose. It is provided "as is" without express or implied warranty.
|
||||||
|
|
||||||
|
2007 since that is the year I belive I last modified the data. Would 2012 be
|
||||||
|
better?
|
||||||
|
|
||||||
|
On Tue, 21 Aug 2012, Tomas Radej wrote:
|
||||||
|
|
||||||
|
> Hi,
|
||||||
|
>
|
||||||
|
> On Thu, 16 Aug 2012 20:12:27 +0200 (CEST)
|
||||||
|
> Kevin Atkinson <kevina@gnu.org> wrote:
|
||||||
|
>
|
||||||
|
>> If you are using the results than there shouldn't be a problem regardless of
|
||||||
|
>> what copyright I use.
|
||||||
|
>
|
||||||
|
> It's necessary to say that I'm not a maintainer in that project, I
|
||||||
|
> simply package it into Fedora.
|
||||||
|
>
|
||||||
|
>> If the original data file will some how be distributed
|
||||||
|
>> please let me know what your requirements are and I will see about
|
||||||
|
>> explicitly
|
||||||
|
>> assigning a compatible copyright.
|
||||||
|
>
|
||||||
|
> While checking the package, I found out that some of the data are
|
||||||
|
> actually embedded in the code [1], so yes, your data is actually being
|
||||||
|
> distributed. If I may, I would suggest you use either the MIT/X11
|
||||||
|
> licence or the 2 or 3 clause BSD licence, as both of these can be
|
||||||
|
> combined with both the ASL 2.0 licence and GPL v2+ [2].
|
||||||
|
>
|
||||||
|
> Thank you, TR
|
||||||
|
>
|
||||||
|
> [1]
|
||||||
|
> http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/DoubleMetaphoneTest.java?view=markup
|
||||||
|
> ,
|
||||||
|
> line 49 onwards
|
||||||
|
>
|
||||||
|
> [2] http://fedoraproject.org/wiki/Licensing:Main#Good_Licenses
|
||||||
|
>
|
||||||
|
> --
|
||||||
|
> Tomas Radej <tradej@redhat.com>
|
||||||
|
>
|
||||||
|
>
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c5e48eacc96b16478ff86c752c113ad6d1eb2991cf895ced431d68e2c17838f1
|
|
||||||
size 322874
|
|
3
commons-codec-1.11-src.tar.gz
Normal file
3
commons-codec-1.11-src.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b32302f8369677b4fb1dd41b5815577e0f6c1996a22a9ead9e824c1dcc64b817
|
||||||
|
size 369538
|
Loading…
Reference in New Issue
Block a user