79 lines
2.6 KiB
RPMSpec
79 lines
2.6 KiB
RPMSpec
#
|
||
# spec file for package apache-commons-crypto
|
||
#
|
||
# Copyright (c) 2023 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 base_name crypto
|
||
%global short_name commons-%{base_name}
|
||
Name: apache-%{short_name}
|
||
Version: 1.2.0
|
||
Release: 0
|
||
Summary: Apache Commons Crypto
|
||
License: Apache-2.0
|
||
Group: Development/Libraries/Java
|
||
URL: https://commons.apache.org/proper/%{short_name}
|
||
Source0: https://dlcdn.apache.org/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
||
Patch0: %{name}-riscv64.patch
|
||
BuildRequires: fdupes
|
||
BuildRequires: gcc-c++
|
||
BuildRequires: maven-local
|
||
BuildRequires: mvn(ant-contrib:ant-contrib)
|
||
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
|
||
BuildRequires: mvn(net.java.dev.jna:jna)
|
||
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
|
||
BuildRequires: pkgconfig
|
||
BuildRequires: pkgconfig(libcrypto)
|
||
|
||
%description
|
||
Apache Commons Crypto is a cryptographic library optimized with AES-NI
|
||
(Advanced Encryption Standard New Instructions). It provides Java API for both
|
||
cipher level and Java stream level. Developers can use it to implement high
|
||
performance AES encryption/decryption with the minimum code and effort. Please
|
||
note that Crypto doesn’t implement the cryptographic algorithm such as AES
|
||
directly. It wraps to Openssl or JCE which implement the algorithms.
|
||
|
||
%package javadoc
|
||
Summary: API documentation for %{name}
|
||
Group: Documentation/HTML
|
||
BuildArch: noarch
|
||
|
||
%description javadoc
|
||
API documentation for %{name}.
|
||
|
||
%prep
|
||
%autosetup -n %{short_name}-%{version}-src -p1
|
||
|
||
#the above empty line is necessary for sle12sp5
|
||
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
|
||
%pom_remove_plugin com.github.spotbugs:spotbugs-maven-plugin
|
||
%{mvn_file} : %{name}
|
||
|
||
%build
|
||
%{mvn_build} -f
|
||
|
||
%install
|
||
%mvn_install
|
||
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
||
|
||
%files -f .mfiles
|
||
%license {LICENSE,NOTICE}.txt
|
||
%doc {README,CONTRIBUTING}.md RELEASE-NOTES.txt
|
||
|
||
%files javadoc -f .mfiles-javadoc
|
||
%license {LICENSE,NOTICE}.txt
|
||
|
||
%changelog
|