commit 01adbdd53eb7ee1f606baf7b1c283f7bae5654a4 Author: Adam Samalik Date: Mon May 8 11:35:54 2023 +0200 import sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3aeddf3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/base64coder-2010-12-19-distribution.zip diff --git a/base64coder.spec b/base64coder.spec new file mode 100644 index 0000000..2428776 --- /dev/null +++ b/base64coder.spec @@ -0,0 +1,75 @@ +%global long_ver 2010-12-19 + +Name: base64coder +Version: 20101219 +Release: 25%{?dist} +Summary: Fast and compact Base64 encoder/decoder Java library +License: EPL-1.0 or EPL-2.0 or LGPLv2+ or GPLv2+ or ASL 2.0 or BSD +BuildArch: noarch +URL: http://www.source-code.biz/%{name}/java/ +Source0: http://repo2.maven.org/maven2/biz/source_code/%{name}/%{long_ver}/%{name}-%{long_ver}-distribution.zip + +BuildRequires: maven-local +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) + +%description +Base64Coder is a fast and compact Base64 encoder/decoder class. + +There is no Base64 encoder/decoder in the standard Java SDK class +library. The undocumented classes sun.misc.BASE64Encoder and +sun.misc.BASE64Decoder should not be used. + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +This package contains %{summary}. + +%package tests +Summary: Test jar for %{name} + +%description tests +This package contains %{summary}. + +%prep +%setup -q -n %{name}-%{long_ver} +sed -i 's/\r//g' README.txt CHANGES.txt +%mvn_file : %{name} +%pom_remove_plugin :maven-javadoc-plugin +%pom_xpath_inject pom:project/pom:build/pom:plugins ' + org.apache.maven.plugins + maven-jar-plugin + 3.1.2 + + + + test-jar + + + + ' +%mvn_package biz.source_code:base64coder:jar:tests:2010.12.19 tests +%mvn_artifact biz.source_code:base64coder:jar:tests:2010.12.19 target/%{name}-%{long_ver}-tests.jar + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc README.txt CHANGES.txt + +%files javadoc -f .mfiles-javadoc +%files tests -f .mfiles-tests + +%changelog +* Thu Oct 03 2019 Severin Gehwolf - 20101219-25 +- Add tests sub-package. + +* Thu Oct 03 2019 Severin Gehwolf - 20101219-24 +- Initial import from Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..9cc6b43 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (base64coder-2010-12-19-distribution.zip) = 241be1008836eccbb1621fe048006a69cd7245f44cd09fcb6d650da02898d6144355ee7069970b5f096811a579e5db18c41ba7a5008299067e129864da2b9747