forked from pool/base64coder
86 lines
2.8 KiB
RPMSpec
86 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package base64coder
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global long_ver 2010-12-19
|
|
%global short_ver 20101219
|
|
Name: base64coder
|
|
Version: %{short_ver}
|
|
Release: 0
|
|
Summary: Base64 encoder/decoder Java library
|
|
License: Apache-2.0 OR EPL-1.0 OR EPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later OR BSD-2-Clause
|
|
Group: Development/Libraries/Java
|
|
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
|
|
# Remove hardcoded source and target versions, so that we can specify them on command-line
|
|
Patch0: %{name}-sourcetarget.patch
|
|
# Don't postprocess javadoc by modifying and moving the html files
|
|
Patch1: %{name}-javadoc.patch
|
|
# Add bundle manifest to the jar file
|
|
Patch2: %{name}-manifest.patch
|
|
BuildRequires: ant
|
|
BuildRequires: dos2unix
|
|
BuildRequires: fdupes
|
|
BuildRequires: javapackages-local >= 6
|
|
BuildRequires: unzip
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Base64Coder is a 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}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
This package contains %{summary}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{long_ver}
|
|
%patch -P 0 -p1
|
|
%patch -P 1 -p1
|
|
%patch -P 2 -p1
|
|
dos2unix README.txt CHANGES.txt
|
|
|
|
%build
|
|
%{ant} -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 buildAll
|
|
|
|
%install
|
|
# jar
|
|
install -dm 0755 %{buildroot}%{_javadir}
|
|
install -pm 0644 target/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
# pom
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
|
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
|
%add_maven_depmap %{name}.pom %{name}.jar
|
|
# javadoc
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
cp -pr target/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%files -f .mfiles
|
|
%doc README.txt CHANGES.txt
|
|
|
|
%files javadoc
|
|
%{_javadocdir}/%{name}
|
|
|
|
%changelog
|