diff --git a/apache-commons-codec.spec b/apache-commons-codec.spec new file mode 100644 index 0000000000000000000000000000000000000000..ec59c9e8c4a91e16e484fd6157eb276d08c10c11 --- /dev/null +++ b/apache-commons-codec.spec @@ -0,0 +1,54 @@ +%define anolis_release 1 +%bcond_without bootstrap + +Name: apache-commons-codec +Version: 1.15 +Release: %{anolis_release}%{?dist} +Summary: Implementations of common encoders and decoders +License: ASL 2.0 +URL: https://commons.apache.org/codec/ +BuildArch: noarch +ExclusiveArch: %{java_arches} noarch + +Source0: https://archive.apache.org/dist/commons/codec/source/commons-codec-%{version}-src.tar.gz +# Data in DoubleMetaphoneTest.java originally has an inadmissible license. +# The author gives MIT in e-mail communication. +Source1: aspell-mail.txt + +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap-openjdk8 +%else +BuildRequires: maven-local-openjdk8 +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.commons:commons-lang3) +BuildRequires: mvn(org.apache.commons:commons-parent:pom:) +%endif + +%description +Commons Codec is an attempt to provide definitive implementations of +commonly used encoders and decoders. Examples include Base64, Hex, +Phonetic and URLs. + +%{?javadoc_package} + +%prep +%autosetup -n commons-codec-%{version}-src +cp %{SOURCE1} aspell-mail.txt +sed -i 's/\r//' RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt + +%mvn_file : commons-codec %{name} +%mvn_alias : commons-codec:commons-codec + +%build +%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.codec + +%install +%mvn_install + +%files -f .mfiles +%license LICENSE.txt NOTICE.txt aspell-mail.txt +%doc RELEASE-NOTES* + +%changelog +* Sat Apr 15 2023 Funda Wang - 1.15-1 +- Import package for anolis 23 diff --git a/aspell-mail.txt b/aspell-mail.txt new file mode 100644 index 0000000000000000000000000000000000000000..97dd72fe8f33e2b76f1886c3100b0f316b8d50a5 --- /dev/null +++ b/aspell-mail.txt @@ -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 ; 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 ; 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 ; 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 +X-X-Sender: kevina@misc.kevina.org +To: Tomas Radej +Subject: Re: Aspell results licensing +In-Reply-To: <20120821095056.266cfca47594ad0e03f332f8@redhat.com> +Message-ID: +References: <20120816110627.3b433e1e1a2cfa2a3c29f8e2@redhat.com> <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 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 +> +> + diff --git a/commons-codec-1.15-src.tar.gz b/commons-codec-1.15-src.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..46b253a699769f3fba5b043e33ce2a2ce363c5ca Binary files /dev/null and b/commons-codec-1.15-src.tar.gz differ