From 18feecf1f0951d7920812c12ec4940cc14c572c5 Mon Sep 17 00:00:00 2001 From: Jaromír Cápík Date: Jun 08 2011 12:19:20 +0000 Subject: Initial import (#709233). --- diff --git a/.gitignore b/.gitignore index e69de29..3aeddf3 100644 --- a/.gitignore +++ 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..72b8913 --- /dev/null +++ b/base64coder.spec @@ -0,0 +1,92 @@ + +%global group_id biz.source_code +%global long_ver 2010-12-19 + +Name: base64coder +Version: 20101219 +Release: 2%{?dist} +Summary: Fast and compact Base64 encoder/decoder Java library +License: EPL or LGPLv2+ or GPLv2+ or ASL 2.0+ or BSD +Group: Development/Libraries +# http://www.source-code.biz/base64coder/java/ +URL: http://www.source-code.biz/%{name}/java/ +# http://repo2.maven.org/maven2/biz/source_code/base64coder/2010-12-19/base64coder-2010-12-19-distribution.zip +Source0: http://repo2.maven.org/maven2/biz/source_code/%{name}/%{long_ver}/%{name}-%{long_ver}-distribution.zip + +BuildArch: noarch + +BuildRequires: java-devel +BuildRequires: jpackage-utils +BuildRequires: maven +BuildRequires: maven-surefire-provider-junit4 + +Requires: java +Requires: jpackage-utils +Requires(post): jpackage-utils +Requires(postun): jpackage-utils + +%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. + +Explanation: +http://java.sun.com/products/jdk/faq/faq-sun-packages.html + +%package javadoc +Summary: API documentation for %{name} +Group: Documentation +Requires: jpackage-utils + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -n %{name}-%{long_ver} + +# convert CR+LF to LF +sed -i 's/\r//g' README.txt CHANGES.txt + +%build +mvn-rpmbuild install + +%install +# jars +install -d -m 755 %{buildroot}%{_javadir} +install -p -m 644 target/%{name}-%{long_ver}.jar %{buildroot}%{_javadir}/%{name}.jar + +# pom +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom +%add_to_maven_depmap %{group_id} %{name} %{long_ver} JPP %{name} + +# javadoc +install -d -m 755 %{buildroot}%{_javadocdir}/%{name} +cp -pr target/apidocs/* %{buildroot}%{_javadocdir}/%{name} + +%post +%update_maven_depmap + +%postun +%update_maven_depmap + +%files +%doc README.txt CHANGES.txt +%{_javadir}/%{name}.jar +%{_mavenpomdir}/JPP-%{name}.pom +%{_mavendepmapfragdir}/%{name} + +%files javadoc +%doc %{_javadocdir}/%{name} + +%changelog +* Tue Jun 07 2011 Jaromir Capik - 20101219-2 +- Java suffix removed from the package name and put in the summary instead +- Version string added in the source URL (no need for manual renaming) +- POM file added in the source package -> Source1 removed (no need for copying) +- Removal of the target directory removed (not present anymore) + +* Mon May 30 2011 Jaromir Capik - 20101219-1 +- Initial version of the package diff --git a/sources b/sources index e69de29..f657bba 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8067a5a8ead6a88c20efe390e8e88ab8 base64coder-2010-12-19-distribution.zip